1 /* This Source Code Form is subject to the terms of the Mozilla Public *
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #include "RemoteWebProgressRequest.h"
6
7 #include "nsIURI.h"
8
9 namespace mozilla::dom {
10
NS_IMPL_ISUPPORTS(RemoteWebProgressRequest,nsIRequest,nsIChannel,nsIClassifiedChannel)11 NS_IMPL_ISUPPORTS(RemoteWebProgressRequest, nsIRequest, nsIChannel,
12 nsIClassifiedChannel)
13
14 // nsIChannel methods
15
16 NS_IMETHODIMP RemoteWebProgressRequest::GetOriginalURI(nsIURI** aOriginalURI) {
17 NS_ENSURE_ARG_POINTER(aOriginalURI);
18 NS_ADDREF(*aOriginalURI = mOriginalURI);
19 return NS_OK;
20 }
21
SetOriginalURI(nsIURI * aOriginalURI)22 NS_IMETHODIMP RemoteWebProgressRequest::SetOriginalURI(nsIURI* aOriginalURI) {
23 return NS_ERROR_NOT_IMPLEMENTED;
24 }
25
GetURI(nsIURI ** aURI)26 NS_IMETHODIMP RemoteWebProgressRequest::GetURI(nsIURI** aURI) {
27 NS_ENSURE_ARG_POINTER(aURI);
28 NS_ADDREF(*aURI = mURI);
29 return NS_OK;
30 }
31
GetOwner(nsISupports ** aOwner)32 NS_IMETHODIMP RemoteWebProgressRequest::GetOwner(nsISupports** aOwner) {
33 return NS_ERROR_NOT_IMPLEMENTED;
34 }
35
SetOwner(nsISupports * aOwner)36 NS_IMETHODIMP RemoteWebProgressRequest::SetOwner(nsISupports* aOwner) {
37 return NS_ERROR_NOT_IMPLEMENTED;
38 }
39
GetNotificationCallbacks(nsIInterfaceRequestor ** aNotificationCallbacks)40 NS_IMETHODIMP RemoteWebProgressRequest::GetNotificationCallbacks(
41 nsIInterfaceRequestor** aNotificationCallbacks) {
42 return NS_ERROR_NOT_IMPLEMENTED;
43 }
44
SetNotificationCallbacks(nsIInterfaceRequestor * aNotificationCallbacks)45 NS_IMETHODIMP RemoteWebProgressRequest::SetNotificationCallbacks(
46 nsIInterfaceRequestor* aNotificationCallbacks) {
47 return NS_ERROR_NOT_IMPLEMENTED;
48 }
49
GetSecurityInfo(nsISupports ** aSecurityInfo)50 NS_IMETHODIMP RemoteWebProgressRequest::GetSecurityInfo(
51 nsISupports** aSecurityInfo) {
52 return NS_ERROR_NOT_IMPLEMENTED;
53 }
54
GetContentType(nsACString & aContentType)55 NS_IMETHODIMP RemoteWebProgressRequest::GetContentType(
56 nsACString& aContentType) {
57 return NS_ERROR_NOT_IMPLEMENTED;
58 }
59
SetContentType(const nsACString & aContentType)60 NS_IMETHODIMP RemoteWebProgressRequest::SetContentType(
61 const nsACString& aContentType) {
62 return NS_ERROR_NOT_IMPLEMENTED;
63 }
64
GetContentCharset(nsACString & aContentCharset)65 NS_IMETHODIMP RemoteWebProgressRequest::GetContentCharset(
66 nsACString& aContentCharset) {
67 return NS_ERROR_NOT_IMPLEMENTED;
68 }
69
SetContentCharset(const nsACString & aContentCharset)70 NS_IMETHODIMP RemoteWebProgressRequest::SetContentCharset(
71 const nsACString& aContentCharset) {
72 return NS_ERROR_NOT_IMPLEMENTED;
73 }
74
GetContentLength(int64_t * aContentLength)75 NS_IMETHODIMP RemoteWebProgressRequest::GetContentLength(
76 int64_t* aContentLength) {
77 return NS_ERROR_NOT_IMPLEMENTED;
78 }
79
SetContentLength(int64_t aContentLength)80 NS_IMETHODIMP RemoteWebProgressRequest::SetContentLength(
81 int64_t aContentLength) {
82 return NS_ERROR_NOT_IMPLEMENTED;
83 }
84
Open(nsIInputStream ** _retval)85 NS_IMETHODIMP RemoteWebProgressRequest::Open(nsIInputStream** _retval) {
86 return NS_ERROR_NOT_IMPLEMENTED;
87 }
88
AsyncOpen(nsIStreamListener * aListener)89 NS_IMETHODIMP RemoteWebProgressRequest::AsyncOpen(
90 nsIStreamListener* aListener) {
91 return NS_ERROR_NOT_IMPLEMENTED;
92 }
93
GetContentDisposition(uint32_t * aContentDisposition)94 NS_IMETHODIMP RemoteWebProgressRequest::GetContentDisposition(
95 uint32_t* aContentDisposition) {
96 return NS_ERROR_NOT_IMPLEMENTED;
97 }
98
SetContentDisposition(uint32_t aContentDisposition)99 NS_IMETHODIMP RemoteWebProgressRequest::SetContentDisposition(
100 uint32_t aContentDisposition) {
101 return NS_ERROR_NOT_IMPLEMENTED;
102 }
103
GetContentDispositionFilename(nsAString & aContentDispositionFilename)104 NS_IMETHODIMP RemoteWebProgressRequest::GetContentDispositionFilename(
105 nsAString& aContentDispositionFilename) {
106 return NS_ERROR_NOT_IMPLEMENTED;
107 }
108
SetContentDispositionFilename(const nsAString & aContentDispositionFilename)109 NS_IMETHODIMP RemoteWebProgressRequest::SetContentDispositionFilename(
110 const nsAString& aContentDispositionFilename) {
111 return NS_ERROR_NOT_IMPLEMENTED;
112 }
113
GetContentDispositionHeader(nsACString & aContentDispositionHeader)114 NS_IMETHODIMP RemoteWebProgressRequest::GetContentDispositionHeader(
115 nsACString& aContentDispositionHeader) {
116 return NS_ERROR_NOT_IMPLEMENTED;
117 }
118
GetLoadInfo(nsILoadInfo ** aLoadInfo)119 NS_IMETHODIMP RemoteWebProgressRequest::GetLoadInfo(nsILoadInfo** aLoadInfo) {
120 return NS_ERROR_NOT_IMPLEMENTED;
121 }
122
SetLoadInfo(nsILoadInfo * aLoadInfo)123 NS_IMETHODIMP RemoteWebProgressRequest::SetLoadInfo(nsILoadInfo* aLoadInfo) {
124 return NS_ERROR_NOT_IMPLEMENTED;
125 }
126
GetIsDocument(bool * aIsDocument)127 NS_IMETHODIMP RemoteWebProgressRequest::GetIsDocument(bool* aIsDocument) {
128 return NS_ERROR_NOT_IMPLEMENTED;
129 }
130
131 // nsIClassifiedChannel methods
132
SetMatchedInfo(const nsACString & aList,const nsACString & aProvider,const nsACString & aFullHash)133 NS_IMETHODIMP RemoteWebProgressRequest::SetMatchedInfo(
134 const nsACString& aList, const nsACString& aProvider,
135 const nsACString& aFullHash) {
136 return NS_ERROR_NOT_IMPLEMENTED;
137 }
138
GetMatchedList(nsACString & aMatchedList)139 NS_IMETHODIMP RemoteWebProgressRequest::GetMatchedList(
140 nsACString& aMatchedList) {
141 aMatchedList = mMatchedList;
142 return NS_OK;
143 }
144
GetMatchedProvider(nsACString & aMatchedProvider)145 NS_IMETHODIMP RemoteWebProgressRequest::GetMatchedProvider(
146 nsACString& aMatchedProvider) {
147 return NS_ERROR_NOT_IMPLEMENTED;
148 }
149
GetMatchedFullHash(nsACString & aMatchedFullHash)150 NS_IMETHODIMP RemoteWebProgressRequest::GetMatchedFullHash(
151 nsACString& aMatchedFullHash) {
152 return NS_ERROR_NOT_IMPLEMENTED;
153 }
154
SetMatchedTrackingInfo(const nsTArray<nsCString> & aLists,const nsTArray<nsCString> & aFullHashes)155 NS_IMETHODIMP RemoteWebProgressRequest::SetMatchedTrackingInfo(
156 const nsTArray<nsCString>& aLists, const nsTArray<nsCString>& aFullHashes) {
157 return NS_ERROR_NOT_IMPLEMENTED;
158 }
159
GetMatchedTrackingLists(nsTArray<nsCString> & aLists)160 NS_IMETHODIMP RemoteWebProgressRequest::GetMatchedTrackingLists(
161 nsTArray<nsCString>& aLists) {
162 return NS_ERROR_NOT_IMPLEMENTED;
163 }
164
GetMatchedTrackingFullHashes(nsTArray<nsCString> & aFullHashes)165 NS_IMETHODIMP RemoteWebProgressRequest::GetMatchedTrackingFullHashes(
166 nsTArray<nsCString>& aFullHashes) {
167 return NS_ERROR_NOT_IMPLEMENTED;
168 }
169 // nsIRequest methods
170
GetName(nsACString & aName)171 NS_IMETHODIMP RemoteWebProgressRequest::GetName(nsACString& aName) {
172 return NS_ERROR_NOT_IMPLEMENTED;
173 }
174
IsPending(bool * _retval)175 NS_IMETHODIMP RemoteWebProgressRequest::IsPending(bool* _retval) {
176 return NS_ERROR_NOT_IMPLEMENTED;
177 }
178
GetStatus(nsresult * aStatus)179 NS_IMETHODIMP RemoteWebProgressRequest::GetStatus(nsresult* aStatus) {
180 return NS_ERROR_NOT_IMPLEMENTED;
181 }
182
Cancel(nsresult aStatus)183 NS_IMETHODIMP RemoteWebProgressRequest::Cancel(nsresult aStatus) {
184 return NS_ERROR_NOT_IMPLEMENTED;
185 }
186
GetCanceled(bool * aCanceled)187 NS_IMETHODIMP RemoteWebProgressRequest::GetCanceled(bool* aCanceled) {
188 return NS_ERROR_NOT_IMPLEMENTED;
189 }
190
Suspend(void)191 NS_IMETHODIMP RemoteWebProgressRequest::Suspend(void) {
192 return NS_ERROR_NOT_IMPLEMENTED;
193 }
194
Resume(void)195 NS_IMETHODIMP RemoteWebProgressRequest::Resume(void) {
196 return NS_ERROR_NOT_IMPLEMENTED;
197 }
198
GetLoadGroup(nsILoadGroup ** aLoadGroup)199 NS_IMETHODIMP RemoteWebProgressRequest::GetLoadGroup(
200 nsILoadGroup** aLoadGroup) {
201 return NS_ERROR_NOT_IMPLEMENTED;
202 }
203
SetLoadGroup(nsILoadGroup * aLoadGroup)204 NS_IMETHODIMP RemoteWebProgressRequest::SetLoadGroup(nsILoadGroup* aLoadGroup) {
205 return NS_ERROR_NOT_IMPLEMENTED;
206 }
207
GetLoadFlags(nsLoadFlags * aLoadFlags)208 NS_IMETHODIMP RemoteWebProgressRequest::GetLoadFlags(nsLoadFlags* aLoadFlags) {
209 return NS_ERROR_NOT_IMPLEMENTED;
210 }
211
GetTRRMode(nsIRequest::TRRMode * aTRRMode)212 NS_IMETHODIMP RemoteWebProgressRequest::GetTRRMode(
213 nsIRequest::TRRMode* aTRRMode) {
214 return NS_ERROR_NOT_IMPLEMENTED;
215 }
216
SetTRRMode(nsIRequest::TRRMode aTRRMode)217 NS_IMETHODIMP RemoteWebProgressRequest::SetTRRMode(
218 nsIRequest::TRRMode aTRRMode) {
219 return NS_ERROR_NOT_IMPLEMENTED;
220 }
221
SetLoadFlags(nsLoadFlags aLoadFlags)222 NS_IMETHODIMP RemoteWebProgressRequest::SetLoadFlags(nsLoadFlags aLoadFlags) {
223 return NS_ERROR_NOT_IMPLEMENTED;
224 }
225
226 NS_IMETHODIMP
IsThirdPartyTrackingResource(bool * aIsTrackingResource)227 RemoteWebProgressRequest::IsThirdPartyTrackingResource(
228 bool* aIsTrackingResource) {
229 return NS_ERROR_NOT_IMPLEMENTED;
230 }
231
232 NS_IMETHODIMP
IsThirdPartySocialTrackingResource(bool * aIsThirdPartySocialTrackingResource)233 RemoteWebProgressRequest::IsThirdPartySocialTrackingResource(
234 bool* aIsThirdPartySocialTrackingResource) {
235 return NS_ERROR_NOT_IMPLEMENTED;
236 }
237
238 NS_IMETHODIMP
GetClassificationFlags(uint32_t * aClassificationFlags)239 RemoteWebProgressRequest::GetClassificationFlags(
240 uint32_t* aClassificationFlags) {
241 return NS_ERROR_NOT_IMPLEMENTED;
242 }
243
244 NS_IMETHODIMP
GetFirstPartyClassificationFlags(uint32_t * aClassificationFlags)245 RemoteWebProgressRequest::GetFirstPartyClassificationFlags(
246 uint32_t* aClassificationFlags) {
247 return NS_ERROR_NOT_IMPLEMENTED;
248 }
249
250 NS_IMETHODIMP
GetThirdPartyClassificationFlags(uint32_t * aClassificationFlags)251 RemoteWebProgressRequest::GetThirdPartyClassificationFlags(
252 uint32_t* aClassificationFlags) {
253 return NS_ERROR_NOT_IMPLEMENTED;
254 }
255
256 } // namespace mozilla::dom
257