Bug 1936278 - Prevent search mode chiclet from being dismissed when clicking in page...
[gecko.git] / dom / ipc / RemoteWebProgressRequest.cpp
blob72c80b3e6b2d381da8acad842487744168828534
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/. */
5 #include "RemoteWebProgressRequest.h"
7 #include "nsIURI.h"
9 namespace mozilla::dom {
11 NS_IMPL_ISUPPORTS(RemoteWebProgressRequest, nsIRequest, nsIChannel,
12 nsIClassifiedChannel)
14 // nsIChannel methods
16 NS_IMETHODIMP RemoteWebProgressRequest::GetOriginalURI(nsIURI** aOriginalURI) {
17 NS_ENSURE_ARG_POINTER(aOriginalURI);
18 NS_ADDREF(*aOriginalURI = mOriginalURI);
19 return NS_OK;
22 NS_IMETHODIMP RemoteWebProgressRequest::SetOriginalURI(nsIURI* aOriginalURI) {
23 return NS_ERROR_NOT_IMPLEMENTED;
26 NS_IMETHODIMP RemoteWebProgressRequest::GetURI(nsIURI** aURI) {
27 NS_ENSURE_ARG_POINTER(aURI);
28 NS_ADDREF(*aURI = mURI);
29 return NS_OK;
32 NS_IMETHODIMP RemoteWebProgressRequest::GetOwner(nsISupports** aOwner) {
33 return NS_ERROR_NOT_IMPLEMENTED;
36 NS_IMETHODIMP RemoteWebProgressRequest::SetOwner(nsISupports* aOwner) {
37 return NS_ERROR_NOT_IMPLEMENTED;
40 NS_IMETHODIMP RemoteWebProgressRequest::GetNotificationCallbacks(
41 nsIInterfaceRequestor** aNotificationCallbacks) {
42 return NS_ERROR_NOT_IMPLEMENTED;
45 NS_IMETHODIMP RemoteWebProgressRequest::SetNotificationCallbacks(
46 nsIInterfaceRequestor* aNotificationCallbacks) {
47 return NS_ERROR_NOT_IMPLEMENTED;
50 NS_IMETHODIMP RemoteWebProgressRequest::GetSecurityInfo(
51 nsITransportSecurityInfo** aSecurityInfo) {
52 return NS_ERROR_NOT_IMPLEMENTED;
55 NS_IMETHODIMP RemoteWebProgressRequest::GetContentType(
56 nsACString& aContentType) {
57 return NS_ERROR_NOT_IMPLEMENTED;
60 NS_IMETHODIMP RemoteWebProgressRequest::SetContentType(
61 const nsACString& aContentType) {
62 return NS_ERROR_NOT_IMPLEMENTED;
65 NS_IMETHODIMP RemoteWebProgressRequest::GetContentCharset(
66 nsACString& aContentCharset) {
67 return NS_ERROR_NOT_IMPLEMENTED;
70 NS_IMETHODIMP RemoteWebProgressRequest::SetContentCharset(
71 const nsACString& aContentCharset) {
72 return NS_ERROR_NOT_IMPLEMENTED;
75 NS_IMETHODIMP RemoteWebProgressRequest::GetContentLength(
76 int64_t* aContentLength) {
77 return NS_ERROR_NOT_IMPLEMENTED;
80 NS_IMETHODIMP RemoteWebProgressRequest::SetContentLength(
81 int64_t aContentLength) {
82 return NS_ERROR_NOT_IMPLEMENTED;
85 NS_IMETHODIMP RemoteWebProgressRequest::Open(nsIInputStream** _retval) {
86 return NS_ERROR_NOT_IMPLEMENTED;
89 NS_IMETHODIMP RemoteWebProgressRequest::AsyncOpen(
90 nsIStreamListener* aListener) {
91 return NS_ERROR_NOT_IMPLEMENTED;
94 NS_IMETHODIMP RemoteWebProgressRequest::GetContentDisposition(
95 uint32_t* aContentDisposition) {
96 return NS_ERROR_NOT_IMPLEMENTED;
99 NS_IMETHODIMP RemoteWebProgressRequest::SetContentDisposition(
100 uint32_t aContentDisposition) {
101 return NS_ERROR_NOT_IMPLEMENTED;
104 NS_IMETHODIMP RemoteWebProgressRequest::GetContentDispositionFilename(
105 nsAString& aContentDispositionFilename) {
106 return NS_ERROR_NOT_IMPLEMENTED;
109 NS_IMETHODIMP RemoteWebProgressRequest::SetContentDispositionFilename(
110 const nsAString& aContentDispositionFilename) {
111 return NS_ERROR_NOT_IMPLEMENTED;
114 NS_IMETHODIMP RemoteWebProgressRequest::GetContentDispositionHeader(
115 nsACString& aContentDispositionHeader) {
116 return NS_ERROR_NOT_IMPLEMENTED;
119 NS_IMETHODIMP RemoteWebProgressRequest::GetLoadInfo(nsILoadInfo** aLoadInfo) {
120 return NS_ERROR_NOT_IMPLEMENTED;
123 NS_IMETHODIMP RemoteWebProgressRequest::SetLoadInfo(nsILoadInfo* aLoadInfo) {
124 return NS_ERROR_NOT_IMPLEMENTED;
127 NS_IMETHODIMP RemoteWebProgressRequest::GetIsDocument(bool* aIsDocument) {
128 return NS_ERROR_NOT_IMPLEMENTED;
131 // nsIClassifiedChannel methods
133 NS_IMETHODIMP RemoteWebProgressRequest::SetMatchedInfo(
134 const nsACString& aList, const nsACString& aProvider,
135 const nsACString& aFullHash) {
136 return NS_ERROR_NOT_IMPLEMENTED;
139 NS_IMETHODIMP RemoteWebProgressRequest::GetMatchedList(
140 nsACString& aMatchedList) {
141 aMatchedList = mMatchedList;
142 return NS_OK;
145 NS_IMETHODIMP RemoteWebProgressRequest::GetMatchedProvider(
146 nsACString& aMatchedProvider) {
147 return NS_ERROR_NOT_IMPLEMENTED;
150 NS_IMETHODIMP RemoteWebProgressRequest::GetMatchedFullHash(
151 nsACString& aMatchedFullHash) {
152 return NS_ERROR_NOT_IMPLEMENTED;
155 NS_IMETHODIMP RemoteWebProgressRequest::SetMatchedTrackingInfo(
156 const nsTArray<nsCString>& aLists, const nsTArray<nsCString>& aFullHashes) {
157 return NS_ERROR_NOT_IMPLEMENTED;
160 NS_IMETHODIMP RemoteWebProgressRequest::GetMatchedTrackingLists(
161 nsTArray<nsCString>& aLists) {
162 return NS_ERROR_NOT_IMPLEMENTED;
165 NS_IMETHODIMP RemoteWebProgressRequest::GetMatchedTrackingFullHashes(
166 nsTArray<nsCString>& aFullHashes) {
167 return NS_ERROR_NOT_IMPLEMENTED;
169 // nsIRequest methods
171 NS_IMETHODIMP RemoteWebProgressRequest::GetName(nsACString& aName) {
172 return NS_ERROR_NOT_IMPLEMENTED;
175 NS_IMETHODIMP RemoteWebProgressRequest::IsPending(bool* _retval) {
176 return NS_ERROR_NOT_IMPLEMENTED;
179 NS_IMETHODIMP RemoteWebProgressRequest::GetStatus(nsresult* aStatus) {
180 return NS_ERROR_NOT_IMPLEMENTED;
183 NS_IMETHODIMP RemoteWebProgressRequest::SetCanceledReason(
184 const nsACString& aReason) {
185 return SetCanceledReasonImpl(aReason);
188 NS_IMETHODIMP RemoteWebProgressRequest::GetCanceledReason(nsACString& aReason) {
189 return GetCanceledReasonImpl(aReason);
192 NS_IMETHODIMP RemoteWebProgressRequest::CancelWithReason(
193 nsresult aStatus, const nsACString& aReason) {
194 return CancelWithReasonImpl(aStatus, aReason);
197 NS_IMETHODIMP RemoteWebProgressRequest::Cancel(nsresult aStatus) {
198 return NS_ERROR_NOT_IMPLEMENTED;
201 NS_IMETHODIMP RemoteWebProgressRequest::GetCanceled(bool* aCanceled) {
202 return NS_ERROR_NOT_IMPLEMENTED;
205 NS_IMETHODIMP RemoteWebProgressRequest::Suspend(void) {
206 return NS_ERROR_NOT_IMPLEMENTED;
209 NS_IMETHODIMP RemoteWebProgressRequest::Resume(void) {
210 return NS_ERROR_NOT_IMPLEMENTED;
213 NS_IMETHODIMP RemoteWebProgressRequest::GetLoadGroup(
214 nsILoadGroup** aLoadGroup) {
215 return NS_ERROR_NOT_IMPLEMENTED;
218 NS_IMETHODIMP RemoteWebProgressRequest::SetLoadGroup(nsILoadGroup* aLoadGroup) {
219 return NS_ERROR_NOT_IMPLEMENTED;
222 NS_IMETHODIMP RemoteWebProgressRequest::GetLoadFlags(nsLoadFlags* aLoadFlags) {
223 return NS_ERROR_NOT_IMPLEMENTED;
226 NS_IMETHODIMP RemoteWebProgressRequest::GetTRRMode(
227 nsIRequest::TRRMode* aTRRMode) {
228 return NS_ERROR_NOT_IMPLEMENTED;
231 NS_IMETHODIMP RemoteWebProgressRequest::SetTRRMode(
232 nsIRequest::TRRMode aTRRMode) {
233 return NS_ERROR_NOT_IMPLEMENTED;
236 NS_IMETHODIMP RemoteWebProgressRequest::SetLoadFlags(nsLoadFlags aLoadFlags) {
237 return NS_ERROR_NOT_IMPLEMENTED;
240 NS_IMETHODIMP
241 RemoteWebProgressRequest::IsThirdPartyTrackingResource(
242 bool* aIsTrackingResource) {
243 return NS_ERROR_NOT_IMPLEMENTED;
246 NS_IMETHODIMP
247 RemoteWebProgressRequest::IsThirdPartySocialTrackingResource(
248 bool* aIsThirdPartySocialTrackingResource) {
249 return NS_ERROR_NOT_IMPLEMENTED;
252 NS_IMETHODIMP
253 RemoteWebProgressRequest::GetClassificationFlags(
254 uint32_t* aClassificationFlags) {
255 return NS_ERROR_NOT_IMPLEMENTED;
258 NS_IMETHODIMP
259 RemoteWebProgressRequest::GetFirstPartyClassificationFlags(
260 uint32_t* aClassificationFlags) {
261 return NS_ERROR_NOT_IMPLEMENTED;
264 NS_IMETHODIMP
265 RemoteWebProgressRequest::GetThirdPartyClassificationFlags(
266 uint32_t* aClassificationFlags) {
267 return NS_ERROR_NOT_IMPLEMENTED;
270 } // namespace mozilla::dom