/work/obj-fuzz/dist/include/nsIHttpChannelInternal.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/protocol/http/nsIHttpChannelInternal.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsIHttpChannelInternal_h__ |
6 | | #define __gen_nsIHttpChannelInternal_h__ |
7 | | |
8 | | |
9 | | #ifndef __gen_nsISupports_h__ |
10 | | #include "nsISupports.h" |
11 | | #endif |
12 | | |
13 | | #include "js/GCAnnotations.h" |
14 | | |
15 | | #include "mozilla/AlreadyAddRefed.h" |
16 | | #include "mozilla/Assertions.h" |
17 | | #include "mozilla/DebugOnly.h" |
18 | | |
19 | | /* For IDL files that don't want to include root IDL files. */ |
20 | | #ifndef NS_NO_VTABLE |
21 | | #define NS_NO_VTABLE |
22 | | #endif |
23 | | #include "nsStringFwd.h" |
24 | | #include "nsTArrayForwardDeclare.h" |
25 | | template<class T> class nsCOMArray; |
26 | | namespace mozilla { |
27 | | class TimeStamp; |
28 | | } |
29 | | class nsIAsyncInputStream; /* forward declaration */ |
30 | | |
31 | | class nsIAsyncOutputStream; /* forward declaration */ |
32 | | |
33 | | class nsIPrincipal; /* forward declaration */ |
34 | | |
35 | | class nsIProxyInfo; /* forward declaration */ |
36 | | |
37 | | class nsISecurityConsoleMessage; /* forward declaration */ |
38 | | |
39 | | class nsISocketTransport; /* forward declaration */ |
40 | | |
41 | | class nsIURI; /* forward declaration */ |
42 | | |
43 | | |
44 | | /* starting interface: nsIHttpUpgradeListener */ |
45 | | #define NS_IHTTPUPGRADELISTENER_IID_STR "5b515449-ab64-4dba-b3cd-da8fc2f83064" |
46 | | |
47 | | #define NS_IHTTPUPGRADELISTENER_IID \ |
48 | | {0x5b515449, 0xab64, 0x4dba, \ |
49 | | { 0xb3, 0xcd, 0xda, 0x8f, 0xc2, 0xf8, 0x30, 0x64 }} |
50 | | |
51 | | class NS_NO_VTABLE nsIHttpUpgradeListener : public nsISupports { |
52 | | public: |
53 | | |
54 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPUPGRADELISTENER_IID) |
55 | | |
56 | | /* [must_use] void onTransportAvailable (in nsISocketTransport aTransport, in nsIAsyncInputStream aSocketIn, in nsIAsyncOutputStream aSocketOut); */ |
57 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD OnTransportAvailable(nsISocketTransport *aTransport, nsIAsyncInputStream *aSocketIn, nsIAsyncOutputStream *aSocketOut) = 0; |
58 | | |
59 | | }; |
60 | | |
61 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpUpgradeListener, NS_IHTTPUPGRADELISTENER_IID) |
62 | | |
63 | | /* Use this macro when declaring classes that implement this interface. */ |
64 | | #define NS_DECL_NSIHTTPUPGRADELISTENER \ |
65 | | MOZ_MUST_USE NS_IMETHOD OnTransportAvailable(nsISocketTransport *aTransport, nsIAsyncInputStream *aSocketIn, nsIAsyncOutputStream *aSocketOut) override; |
66 | | |
67 | | /* Use this macro when declaring the members of this interface when the |
68 | | class doesn't implement the interface. This is useful for forwarding. */ |
69 | | #define NS_DECL_NON_VIRTUAL_NSIHTTPUPGRADELISTENER \ |
70 | | MOZ_MUST_USE nsresult OnTransportAvailable(nsISocketTransport *aTransport, nsIAsyncInputStream *aSocketIn, nsIAsyncOutputStream *aSocketOut); |
71 | | |
72 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
73 | | #define NS_FORWARD_NSIHTTPUPGRADELISTENER(_to) \ |
74 | | MOZ_MUST_USE NS_IMETHOD OnTransportAvailable(nsISocketTransport *aTransport, nsIAsyncInputStream *aSocketIn, nsIAsyncOutputStream *aSocketOut) override { return _to OnTransportAvailable(aTransport, aSocketIn, aSocketOut); } |
75 | | |
76 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
77 | | #define NS_FORWARD_SAFE_NSIHTTPUPGRADELISTENER(_to) \ |
78 | | MOZ_MUST_USE NS_IMETHOD OnTransportAvailable(nsISocketTransport *aTransport, nsIAsyncInputStream *aSocketIn, nsIAsyncOutputStream *aSocketOut) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnTransportAvailable(aTransport, aSocketIn, aSocketOut); } |
79 | | |
80 | | |
81 | | /* starting interface: nsIHttpChannelInternal */ |
82 | | #define NS_IHTTPCHANNELINTERNAL_IID_STR "4e28263d-1e03-46f4-aa5c-9512f91957f9" |
83 | | |
84 | | #define NS_IHTTPCHANNELINTERNAL_IID \ |
85 | | {0x4e28263d, 0x1e03, 0x46f4, \ |
86 | | { 0xaa, 0x5c, 0x95, 0x12, 0xf9, 0x19, 0x57, 0xf9 }} |
87 | | |
88 | | class NS_NO_VTABLE nsIHttpChannelInternal : public nsISupports { |
89 | | public: |
90 | | |
91 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPCHANNELINTERNAL_IID) |
92 | | |
93 | | /* [must_use] attribute nsIURI documentURI; */ |
94 | | MOZ_MUST_USE NS_IMETHOD GetDocumentURI(nsIURI **aDocumentURI) = 0; |
95 | | MOZ_MUST_USE NS_IMETHOD SetDocumentURI(nsIURI *aDocumentURI) = 0; |
96 | | |
97 | | /* [must_use] void getRequestVersion (out unsigned long major, out unsigned long minor); */ |
98 | | MOZ_MUST_USE NS_IMETHOD GetRequestVersion(uint32_t *major, uint32_t *minor) = 0; |
99 | | |
100 | | /* [must_use] void getResponseVersion (out unsigned long major, out unsigned long minor); */ |
101 | | MOZ_MUST_USE NS_IMETHOD GetResponseVersion(uint32_t *major, uint32_t *minor) = 0; |
102 | | |
103 | | /* [must_use,noscript] void takeAllSecurityMessages (in securityMessagesArray aMessages); */ |
104 | | MOZ_MUST_USE NS_IMETHOD TakeAllSecurityMessages(nsCOMArray<nsISecurityConsoleMessage> & aMessages) = 0; |
105 | | |
106 | | /* [must_use] void setCookie (in string aCookieHeader); */ |
107 | | MOZ_MUST_USE NS_IMETHOD SetCookie(const char * aCookieHeader) = 0; |
108 | | |
109 | | /* [must_use] void setupFallbackChannel (in string aFallbackKey); */ |
110 | | MOZ_MUST_USE NS_IMETHOD SetupFallbackChannel(const char * aFallbackKey) = 0; |
111 | | |
112 | | enum { |
113 | | THIRD_PARTY_FORCE_ALLOW = 1U |
114 | | }; |
115 | | |
116 | | /* [must_use] attribute unsigned long thirdPartyFlags; */ |
117 | | MOZ_MUST_USE NS_IMETHOD GetThirdPartyFlags(uint32_t *aThirdPartyFlags) = 0; |
118 | | MOZ_MUST_USE NS_IMETHOD SetThirdPartyFlags(uint32_t aThirdPartyFlags) = 0; |
119 | | |
120 | | /* [must_use] attribute boolean forceAllowThirdPartyCookie; */ |
121 | | MOZ_MUST_USE NS_IMETHOD GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie) = 0; |
122 | | MOZ_MUST_USE NS_IMETHOD SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie) = 0; |
123 | | |
124 | | /* [must_use] readonly attribute boolean canceled; */ |
125 | | MOZ_MUST_USE NS_IMETHOD GetCanceled(bool *aCanceled) = 0; |
126 | | |
127 | | /* [must_use] attribute boolean channelIsForDownload; */ |
128 | | MOZ_MUST_USE NS_IMETHOD GetChannelIsForDownload(bool *aChannelIsForDownload) = 0; |
129 | | MOZ_MUST_USE NS_IMETHOD SetChannelIsForDownload(bool aChannelIsForDownload) = 0; |
130 | | |
131 | | /* [must_use] readonly attribute AUTF8String localAddress; */ |
132 | | MOZ_MUST_USE NS_IMETHOD GetLocalAddress(nsACString& aLocalAddress) = 0; |
133 | | |
134 | | /* [must_use] readonly attribute int32_t localPort; */ |
135 | | MOZ_MUST_USE NS_IMETHOD GetLocalPort(int32_t *aLocalPort) = 0; |
136 | | |
137 | | /* [must_use] readonly attribute AUTF8String remoteAddress; */ |
138 | | MOZ_MUST_USE NS_IMETHOD GetRemoteAddress(nsACString& aRemoteAddress) = 0; |
139 | | |
140 | | /* [must_use] readonly attribute int32_t remotePort; */ |
141 | | MOZ_MUST_USE NS_IMETHOD GetRemotePort(int32_t *aRemotePort) = 0; |
142 | | |
143 | | /* [must_use,noscript] void setCacheKeysRedirectChain (in StringArray cacheKeys); */ |
144 | | MOZ_MUST_USE NS_IMETHOD SetCacheKeysRedirectChain(nsTArray<nsCString> * cacheKeys) = 0; |
145 | | |
146 | | /* [must_use] void HTTPUpgrade (in ACString aProtocolName, in nsIHttpUpgradeListener aListener); */ |
147 | | MOZ_MUST_USE NS_IMETHOD HTTPUpgrade(const nsACString& aProtocolName, nsIHttpUpgradeListener *aListener) = 0; |
148 | | |
149 | | /* [must_use] attribute boolean allowSpdy; */ |
150 | | MOZ_MUST_USE NS_IMETHOD GetAllowSpdy(bool *aAllowSpdy) = 0; |
151 | | MOZ_MUST_USE NS_IMETHOD SetAllowSpdy(bool aAllowSpdy) = 0; |
152 | | |
153 | | /* [must_use] attribute boolean responseTimeoutEnabled; */ |
154 | | MOZ_MUST_USE NS_IMETHOD GetResponseTimeoutEnabled(bool *aResponseTimeoutEnabled) = 0; |
155 | | MOZ_MUST_USE NS_IMETHOD SetResponseTimeoutEnabled(bool aResponseTimeoutEnabled) = 0; |
156 | | |
157 | | /* [must_use] attribute unsigned long initialRwin; */ |
158 | | MOZ_MUST_USE NS_IMETHOD GetInitialRwin(uint32_t *aInitialRwin) = 0; |
159 | | MOZ_MUST_USE NS_IMETHOD SetInitialRwin(uint32_t aInitialRwin) = 0; |
160 | | |
161 | | /* [must_use] readonly attribute nsIURI apiRedirectToURI; */ |
162 | | MOZ_MUST_USE NS_IMETHOD GetApiRedirectToURI(nsIURI **aApiRedirectToURI) = 0; |
163 | | |
164 | | /* [must_use] attribute boolean allowAltSvc; */ |
165 | | MOZ_MUST_USE NS_IMETHOD GetAllowAltSvc(bool *aAllowAltSvc) = 0; |
166 | | MOZ_MUST_USE NS_IMETHOD SetAllowAltSvc(bool aAllowAltSvc) = 0; |
167 | | |
168 | | /* [must_use] attribute boolean beConservative; */ |
169 | | MOZ_MUST_USE NS_IMETHOD GetBeConservative(bool *aBeConservative) = 0; |
170 | | MOZ_MUST_USE NS_IMETHOD SetBeConservative(bool aBeConservative) = 0; |
171 | | |
172 | | /* [must_use,noscript] attribute boolean trr; */ |
173 | | MOZ_MUST_USE NS_IMETHOD GetTrr(bool *aTrr) = 0; |
174 | | MOZ_MUST_USE NS_IMETHOD SetTrr(bool aTrr) = 0; |
175 | | |
176 | | /* [must_use] attribute unsigned long tlsFlags; */ |
177 | | MOZ_MUST_USE NS_IMETHOD GetTlsFlags(uint32_t *aTlsFlags) = 0; |
178 | | MOZ_MUST_USE NS_IMETHOD SetTlsFlags(uint32_t aTlsFlags) = 0; |
179 | | |
180 | | /* [must_use] readonly attribute PRTime lastModifiedTime; */ |
181 | | MOZ_MUST_USE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) = 0; |
182 | | |
183 | | /* [must_use] attribute boolean corsIncludeCredentials; */ |
184 | | MOZ_MUST_USE NS_IMETHOD GetCorsIncludeCredentials(bool *aCorsIncludeCredentials) = 0; |
185 | | MOZ_MUST_USE NS_IMETHOD SetCorsIncludeCredentials(bool aCorsIncludeCredentials) = 0; |
186 | | |
187 | | enum { |
188 | | CORS_MODE_SAME_ORIGIN = 0U, |
189 | | CORS_MODE_NO_CORS = 1U, |
190 | | CORS_MODE_CORS = 2U, |
191 | | CORS_MODE_NAVIGATE = 3U |
192 | | }; |
193 | | |
194 | | /* [must_use] attribute unsigned long corsMode; */ |
195 | | MOZ_MUST_USE NS_IMETHOD GetCorsMode(uint32_t *aCorsMode) = 0; |
196 | | MOZ_MUST_USE NS_IMETHOD SetCorsMode(uint32_t aCorsMode) = 0; |
197 | | |
198 | | enum { |
199 | | REDIRECT_MODE_FOLLOW = 0U, |
200 | | REDIRECT_MODE_ERROR = 1U, |
201 | | REDIRECT_MODE_MANUAL = 2U |
202 | | }; |
203 | | |
204 | | /* [must_use] attribute unsigned long redirectMode; */ |
205 | | MOZ_MUST_USE NS_IMETHOD GetRedirectMode(uint32_t *aRedirectMode) = 0; |
206 | | MOZ_MUST_USE NS_IMETHOD SetRedirectMode(uint32_t aRedirectMode) = 0; |
207 | | |
208 | | enum { |
209 | | FETCH_CACHE_MODE_DEFAULT = 0U, |
210 | | FETCH_CACHE_MODE_NO_STORE = 1U, |
211 | | FETCH_CACHE_MODE_RELOAD = 2U, |
212 | | FETCH_CACHE_MODE_NO_CACHE = 3U, |
213 | | FETCH_CACHE_MODE_FORCE_CACHE = 4U, |
214 | | FETCH_CACHE_MODE_ONLY_IF_CACHED = 5U |
215 | | }; |
216 | | |
217 | | /* [must_use] attribute unsigned long fetchCacheMode; */ |
218 | | MOZ_MUST_USE NS_IMETHOD GetFetchCacheMode(uint32_t *aFetchCacheMode) = 0; |
219 | | MOZ_MUST_USE NS_IMETHOD SetFetchCacheMode(uint32_t aFetchCacheMode) = 0; |
220 | | |
221 | | /* [must_use] readonly attribute nsIURI topWindowURI; */ |
222 | | MOZ_MUST_USE NS_IMETHOD GetTopWindowURI(nsIURI **aTopWindowURI) = 0; |
223 | | |
224 | | /* [must_use] void setTopWindowURIIfUnknown (in nsIURI topWindowURI); */ |
225 | | MOZ_MUST_USE NS_IMETHOD SetTopWindowURIIfUnknown(nsIURI *topWindowURI) = 0; |
226 | | |
227 | | /* [must_use] readonly attribute nsIURI proxyURI; */ |
228 | | MOZ_MUST_USE NS_IMETHOD GetProxyURI(nsIURI **aProxyURI) = 0; |
229 | | |
230 | | /* [noscript,nostdcall,notxpcom] void setCorsPreflightParameters (in StringArrayRef unsafeHeaders); */ |
231 | | virtual void SetCorsPreflightParameters(const nsTArray<nsCString> & unsafeHeaders) = 0; |
232 | | |
233 | | /* [noscript,nostdcall,notxpcom] void setAltDataForChild (in boolean aIsForChild); */ |
234 | | virtual void SetAltDataForChild(bool aIsForChild) = 0; |
235 | | |
236 | | /* [infallible] attribute boolean blockAuthPrompt; */ |
237 | | NS_IMETHOD GetBlockAuthPrompt(bool *aBlockAuthPrompt) = 0; |
238 | | inline bool GetBlockAuthPrompt() |
239 | 0 | { |
240 | 0 | bool result; |
241 | 0 | mozilla::DebugOnly<nsresult> rv = GetBlockAuthPrompt(&result); |
242 | 0 | MOZ_ASSERT(NS_SUCCEEDED(rv)); |
243 | 0 | return result; |
244 | 0 | } |
245 | | NS_IMETHOD SetBlockAuthPrompt(bool aBlockAuthPrompt) = 0; |
246 | | |
247 | | /* [must_use] attribute AString integrityMetadata; */ |
248 | | MOZ_MUST_USE NS_IMETHOD GetIntegrityMetadata(nsAString& aIntegrityMetadata) = 0; |
249 | | MOZ_MUST_USE NS_IMETHOD SetIntegrityMetadata(const nsAString& aIntegrityMetadata) = 0; |
250 | | |
251 | | /* [must_use] readonly attribute ACString connectionInfoHashKey; */ |
252 | | MOZ_MUST_USE NS_IMETHOD GetConnectionInfoHashKey(nsACString& aConnectionInfoHashKey) = 0; |
253 | | |
254 | | /* [infallible,noscript] attribute unsigned long lastRedirectFlags; */ |
255 | | NS_IMETHOD GetLastRedirectFlags(uint32_t *aLastRedirectFlags) = 0; |
256 | | inline uint32_t GetLastRedirectFlags() |
257 | 0 | { |
258 | 0 | uint32_t result; |
259 | 0 | mozilla::DebugOnly<nsresult> rv = GetLastRedirectFlags(&result); |
260 | 0 | MOZ_ASSERT(NS_SUCCEEDED(rv)); |
261 | 0 | return result; |
262 | 0 | } |
263 | | NS_IMETHOD SetLastRedirectFlags(uint32_t aLastRedirectFlags) = 0; |
264 | | |
265 | | /* [noscript] attribute TimeStamp navigationStartTimeStamp; */ |
266 | | NS_IMETHOD GetNavigationStartTimeStamp(mozilla::TimeStamp * aNavigationStartTimeStamp) = 0; |
267 | | NS_IMETHOD SetNavigationStartTimeStamp(mozilla::TimeStamp aNavigationStartTimeStamp) = 0; |
268 | | |
269 | | /* [noscript] void cancelForTrackingProtection (); */ |
270 | | NS_IMETHOD CancelForTrackingProtection(void) = 0; |
271 | | |
272 | | }; |
273 | | |
274 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpChannelInternal, NS_IHTTPCHANNELINTERNAL_IID) |
275 | | |
276 | | /* Use this macro when declaring classes that implement this interface. */ |
277 | | #define NS_DECL_NSIHTTPCHANNELINTERNAL \ |
278 | | MOZ_MUST_USE NS_IMETHOD GetDocumentURI(nsIURI **aDocumentURI) override; \ |
279 | | MOZ_MUST_USE NS_IMETHOD SetDocumentURI(nsIURI *aDocumentURI) override; \ |
280 | | MOZ_MUST_USE NS_IMETHOD GetRequestVersion(uint32_t *major, uint32_t *minor) override; \ |
281 | | MOZ_MUST_USE NS_IMETHOD GetResponseVersion(uint32_t *major, uint32_t *minor) override; \ |
282 | | MOZ_MUST_USE NS_IMETHOD TakeAllSecurityMessages(nsCOMArray<nsISecurityConsoleMessage> & aMessages) override; \ |
283 | | MOZ_MUST_USE NS_IMETHOD SetCookie(const char * aCookieHeader) override; \ |
284 | | MOZ_MUST_USE NS_IMETHOD SetupFallbackChannel(const char * aFallbackKey) override; \ |
285 | | MOZ_MUST_USE NS_IMETHOD GetThirdPartyFlags(uint32_t *aThirdPartyFlags) override; \ |
286 | | MOZ_MUST_USE NS_IMETHOD SetThirdPartyFlags(uint32_t aThirdPartyFlags) override; \ |
287 | | MOZ_MUST_USE NS_IMETHOD GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie) override; \ |
288 | | MOZ_MUST_USE NS_IMETHOD SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie) override; \ |
289 | | MOZ_MUST_USE NS_IMETHOD GetCanceled(bool *aCanceled) override; \ |
290 | | MOZ_MUST_USE NS_IMETHOD GetChannelIsForDownload(bool *aChannelIsForDownload) override; \ |
291 | | MOZ_MUST_USE NS_IMETHOD SetChannelIsForDownload(bool aChannelIsForDownload) override; \ |
292 | | MOZ_MUST_USE NS_IMETHOD GetLocalAddress(nsACString& aLocalAddress) override; \ |
293 | | MOZ_MUST_USE NS_IMETHOD GetLocalPort(int32_t *aLocalPort) override; \ |
294 | | MOZ_MUST_USE NS_IMETHOD GetRemoteAddress(nsACString& aRemoteAddress) override; \ |
295 | | MOZ_MUST_USE NS_IMETHOD GetRemotePort(int32_t *aRemotePort) override; \ |
296 | | MOZ_MUST_USE NS_IMETHOD SetCacheKeysRedirectChain(nsTArray<nsCString> * cacheKeys) override; \ |
297 | | MOZ_MUST_USE NS_IMETHOD HTTPUpgrade(const nsACString& aProtocolName, nsIHttpUpgradeListener *aListener) override; \ |
298 | | MOZ_MUST_USE NS_IMETHOD GetAllowSpdy(bool *aAllowSpdy) override; \ |
299 | | MOZ_MUST_USE NS_IMETHOD SetAllowSpdy(bool aAllowSpdy) override; \ |
300 | | MOZ_MUST_USE NS_IMETHOD GetResponseTimeoutEnabled(bool *aResponseTimeoutEnabled) override; \ |
301 | | MOZ_MUST_USE NS_IMETHOD SetResponseTimeoutEnabled(bool aResponseTimeoutEnabled) override; \ |
302 | | MOZ_MUST_USE NS_IMETHOD GetInitialRwin(uint32_t *aInitialRwin) override; \ |
303 | | MOZ_MUST_USE NS_IMETHOD SetInitialRwin(uint32_t aInitialRwin) override; \ |
304 | | MOZ_MUST_USE NS_IMETHOD GetApiRedirectToURI(nsIURI **aApiRedirectToURI) override; \ |
305 | | MOZ_MUST_USE NS_IMETHOD GetAllowAltSvc(bool *aAllowAltSvc) override; \ |
306 | | MOZ_MUST_USE NS_IMETHOD SetAllowAltSvc(bool aAllowAltSvc) override; \ |
307 | | MOZ_MUST_USE NS_IMETHOD GetBeConservative(bool *aBeConservative) override; \ |
308 | | MOZ_MUST_USE NS_IMETHOD SetBeConservative(bool aBeConservative) override; \ |
309 | | MOZ_MUST_USE NS_IMETHOD GetTrr(bool *aTrr) override; \ |
310 | | MOZ_MUST_USE NS_IMETHOD SetTrr(bool aTrr) override; \ |
311 | | MOZ_MUST_USE NS_IMETHOD GetTlsFlags(uint32_t *aTlsFlags) override; \ |
312 | | MOZ_MUST_USE NS_IMETHOD SetTlsFlags(uint32_t aTlsFlags) override; \ |
313 | | MOZ_MUST_USE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) override; \ |
314 | | MOZ_MUST_USE NS_IMETHOD GetCorsIncludeCredentials(bool *aCorsIncludeCredentials) override; \ |
315 | | MOZ_MUST_USE NS_IMETHOD SetCorsIncludeCredentials(bool aCorsIncludeCredentials) override; \ |
316 | | MOZ_MUST_USE NS_IMETHOD GetCorsMode(uint32_t *aCorsMode) override; \ |
317 | | MOZ_MUST_USE NS_IMETHOD SetCorsMode(uint32_t aCorsMode) override; \ |
318 | | MOZ_MUST_USE NS_IMETHOD GetRedirectMode(uint32_t *aRedirectMode) override; \ |
319 | | MOZ_MUST_USE NS_IMETHOD SetRedirectMode(uint32_t aRedirectMode) override; \ |
320 | | MOZ_MUST_USE NS_IMETHOD GetFetchCacheMode(uint32_t *aFetchCacheMode) override; \ |
321 | | MOZ_MUST_USE NS_IMETHOD SetFetchCacheMode(uint32_t aFetchCacheMode) override; \ |
322 | | MOZ_MUST_USE NS_IMETHOD GetTopWindowURI(nsIURI **aTopWindowURI) override; \ |
323 | | MOZ_MUST_USE NS_IMETHOD SetTopWindowURIIfUnknown(nsIURI *topWindowURI) override; \ |
324 | | MOZ_MUST_USE NS_IMETHOD GetProxyURI(nsIURI **aProxyURI) override; \ |
325 | | virtual void SetCorsPreflightParameters(const nsTArray<nsCString> & unsafeHeaders) override; \ |
326 | | virtual void SetAltDataForChild(bool aIsForChild) override; \ |
327 | | using nsIHttpChannelInternal::GetBlockAuthPrompt; \ |
328 | | NS_IMETHOD GetBlockAuthPrompt(bool *aBlockAuthPrompt) override; \ |
329 | | NS_IMETHOD SetBlockAuthPrompt(bool aBlockAuthPrompt) override; \ |
330 | | MOZ_MUST_USE NS_IMETHOD GetIntegrityMetadata(nsAString& aIntegrityMetadata) override; \ |
331 | | MOZ_MUST_USE NS_IMETHOD SetIntegrityMetadata(const nsAString& aIntegrityMetadata) override; \ |
332 | | MOZ_MUST_USE NS_IMETHOD GetConnectionInfoHashKey(nsACString& aConnectionInfoHashKey) override; \ |
333 | | using nsIHttpChannelInternal::GetLastRedirectFlags; \ |
334 | | NS_IMETHOD GetLastRedirectFlags(uint32_t *aLastRedirectFlags) override; \ |
335 | | NS_IMETHOD SetLastRedirectFlags(uint32_t aLastRedirectFlags) override; \ |
336 | | NS_IMETHOD GetNavigationStartTimeStamp(mozilla::TimeStamp * aNavigationStartTimeStamp) override; \ |
337 | | NS_IMETHOD SetNavigationStartTimeStamp(mozilla::TimeStamp aNavigationStartTimeStamp) override; \ |
338 | | NS_IMETHOD CancelForTrackingProtection(void) override; |
339 | | |
340 | | /* Use this macro when declaring the members of this interface when the |
341 | | class doesn't implement the interface. This is useful for forwarding. */ |
342 | | #define NS_DECL_NON_VIRTUAL_NSIHTTPCHANNELINTERNAL \ |
343 | | MOZ_MUST_USE nsresult GetDocumentURI(nsIURI **aDocumentURI); \ |
344 | | MOZ_MUST_USE nsresult SetDocumentURI(nsIURI *aDocumentURI); \ |
345 | | MOZ_MUST_USE nsresult GetRequestVersion(uint32_t *major, uint32_t *minor); \ |
346 | | MOZ_MUST_USE nsresult GetResponseVersion(uint32_t *major, uint32_t *minor); \ |
347 | | MOZ_MUST_USE nsresult TakeAllSecurityMessages(nsCOMArray<nsISecurityConsoleMessage> & aMessages); \ |
348 | | MOZ_MUST_USE nsresult SetCookie(const char * aCookieHeader); \ |
349 | | MOZ_MUST_USE nsresult SetupFallbackChannel(const char * aFallbackKey); \ |
350 | | MOZ_MUST_USE nsresult GetThirdPartyFlags(uint32_t *aThirdPartyFlags); \ |
351 | | MOZ_MUST_USE nsresult SetThirdPartyFlags(uint32_t aThirdPartyFlags); \ |
352 | | MOZ_MUST_USE nsresult GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie); \ |
353 | | MOZ_MUST_USE nsresult SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie); \ |
354 | | MOZ_MUST_USE nsresult GetCanceled(bool *aCanceled); \ |
355 | | MOZ_MUST_USE nsresult GetChannelIsForDownload(bool *aChannelIsForDownload); \ |
356 | | MOZ_MUST_USE nsresult SetChannelIsForDownload(bool aChannelIsForDownload); \ |
357 | | MOZ_MUST_USE nsresult GetLocalAddress(nsACString& aLocalAddress); \ |
358 | | MOZ_MUST_USE nsresult GetLocalPort(int32_t *aLocalPort); \ |
359 | | MOZ_MUST_USE nsresult GetRemoteAddress(nsACString& aRemoteAddress); \ |
360 | | MOZ_MUST_USE nsresult GetRemotePort(int32_t *aRemotePort); \ |
361 | | MOZ_MUST_USE nsresult SetCacheKeysRedirectChain(nsTArray<nsCString> * cacheKeys); \ |
362 | | MOZ_MUST_USE nsresult HTTPUpgrade(const nsACString& aProtocolName, nsIHttpUpgradeListener *aListener); \ |
363 | | MOZ_MUST_USE nsresult GetAllowSpdy(bool *aAllowSpdy); \ |
364 | | MOZ_MUST_USE nsresult SetAllowSpdy(bool aAllowSpdy); \ |
365 | | MOZ_MUST_USE nsresult GetResponseTimeoutEnabled(bool *aResponseTimeoutEnabled); \ |
366 | | MOZ_MUST_USE nsresult SetResponseTimeoutEnabled(bool aResponseTimeoutEnabled); \ |
367 | | MOZ_MUST_USE nsresult GetInitialRwin(uint32_t *aInitialRwin); \ |
368 | | MOZ_MUST_USE nsresult SetInitialRwin(uint32_t aInitialRwin); \ |
369 | | MOZ_MUST_USE nsresult GetApiRedirectToURI(nsIURI **aApiRedirectToURI); \ |
370 | | MOZ_MUST_USE nsresult GetAllowAltSvc(bool *aAllowAltSvc); \ |
371 | | MOZ_MUST_USE nsresult SetAllowAltSvc(bool aAllowAltSvc); \ |
372 | | MOZ_MUST_USE nsresult GetBeConservative(bool *aBeConservative); \ |
373 | | MOZ_MUST_USE nsresult SetBeConservative(bool aBeConservative); \ |
374 | | MOZ_MUST_USE nsresult GetTrr(bool *aTrr); \ |
375 | | MOZ_MUST_USE nsresult SetTrr(bool aTrr); \ |
376 | | MOZ_MUST_USE nsresult GetTlsFlags(uint32_t *aTlsFlags); \ |
377 | | MOZ_MUST_USE nsresult SetTlsFlags(uint32_t aTlsFlags); \ |
378 | | MOZ_MUST_USE nsresult GetLastModifiedTime(PRTime *aLastModifiedTime); \ |
379 | | MOZ_MUST_USE nsresult GetCorsIncludeCredentials(bool *aCorsIncludeCredentials); \ |
380 | | MOZ_MUST_USE nsresult SetCorsIncludeCredentials(bool aCorsIncludeCredentials); \ |
381 | | MOZ_MUST_USE nsresult GetCorsMode(uint32_t *aCorsMode); \ |
382 | | MOZ_MUST_USE nsresult SetCorsMode(uint32_t aCorsMode); \ |
383 | | MOZ_MUST_USE nsresult GetRedirectMode(uint32_t *aRedirectMode); \ |
384 | | MOZ_MUST_USE nsresult SetRedirectMode(uint32_t aRedirectMode); \ |
385 | | MOZ_MUST_USE nsresult GetFetchCacheMode(uint32_t *aFetchCacheMode); \ |
386 | | MOZ_MUST_USE nsresult SetFetchCacheMode(uint32_t aFetchCacheMode); \ |
387 | | MOZ_MUST_USE nsresult GetTopWindowURI(nsIURI **aTopWindowURI); \ |
388 | | MOZ_MUST_USE nsresult SetTopWindowURIIfUnknown(nsIURI *topWindowURI); \ |
389 | | MOZ_MUST_USE nsresult GetProxyURI(nsIURI **aProxyURI); \ |
390 | | void SetCorsPreflightParameters(const nsTArray<nsCString> & unsafeHeaders); \ |
391 | | void SetAltDataForChild(bool aIsForChild); \ |
392 | | using nsIHttpChannelInternal::GetBlockAuthPrompt; \ |
393 | | nsresult GetBlockAuthPrompt(bool *aBlockAuthPrompt); \ |
394 | | nsresult SetBlockAuthPrompt(bool aBlockAuthPrompt); \ |
395 | | MOZ_MUST_USE nsresult GetIntegrityMetadata(nsAString& aIntegrityMetadata); \ |
396 | | MOZ_MUST_USE nsresult SetIntegrityMetadata(const nsAString& aIntegrityMetadata); \ |
397 | | MOZ_MUST_USE nsresult GetConnectionInfoHashKey(nsACString& aConnectionInfoHashKey); \ |
398 | | using nsIHttpChannelInternal::GetLastRedirectFlags; \ |
399 | | nsresult GetLastRedirectFlags(uint32_t *aLastRedirectFlags); \ |
400 | | nsresult SetLastRedirectFlags(uint32_t aLastRedirectFlags); \ |
401 | | nsresult GetNavigationStartTimeStamp(mozilla::TimeStamp * aNavigationStartTimeStamp); \ |
402 | | nsresult SetNavigationStartTimeStamp(mozilla::TimeStamp aNavigationStartTimeStamp); \ |
403 | | nsresult CancelForTrackingProtection(void); |
404 | | |
405 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
406 | | #define NS_FORWARD_NSIHTTPCHANNELINTERNAL(_to) \ |
407 | 0 | MOZ_MUST_USE NS_IMETHOD GetDocumentURI(nsIURI **aDocumentURI) override { return _to GetDocumentURI(aDocumentURI); } \ |
408 | 0 | MOZ_MUST_USE NS_IMETHOD SetDocumentURI(nsIURI *aDocumentURI) override { return _to SetDocumentURI(aDocumentURI); } \ |
409 | 0 | MOZ_MUST_USE NS_IMETHOD GetRequestVersion(uint32_t *major, uint32_t *minor) override { return _to GetRequestVersion(major, minor); } \ |
410 | 0 | MOZ_MUST_USE NS_IMETHOD GetResponseVersion(uint32_t *major, uint32_t *minor) override { return _to GetResponseVersion(major, minor); } \ |
411 | 0 | MOZ_MUST_USE NS_IMETHOD TakeAllSecurityMessages(nsCOMArray<nsISecurityConsoleMessage> & aMessages) override { return _to TakeAllSecurityMessages(aMessages); } \ |
412 | 0 | MOZ_MUST_USE NS_IMETHOD SetCookie(const char * aCookieHeader) override { return _to SetCookie(aCookieHeader); } \ |
413 | 0 | MOZ_MUST_USE NS_IMETHOD SetupFallbackChannel(const char * aFallbackKey) override { return _to SetupFallbackChannel(aFallbackKey); } \ |
414 | 0 | MOZ_MUST_USE NS_IMETHOD GetThirdPartyFlags(uint32_t *aThirdPartyFlags) override { return _to GetThirdPartyFlags(aThirdPartyFlags); } \ |
415 | 0 | MOZ_MUST_USE NS_IMETHOD SetThirdPartyFlags(uint32_t aThirdPartyFlags) override { return _to SetThirdPartyFlags(aThirdPartyFlags); } \ |
416 | 0 | MOZ_MUST_USE NS_IMETHOD GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie) override { return _to GetForceAllowThirdPartyCookie(aForceAllowThirdPartyCookie); } \ |
417 | 0 | MOZ_MUST_USE NS_IMETHOD SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie) override { return _to SetForceAllowThirdPartyCookie(aForceAllowThirdPartyCookie); } \ |
418 | 0 | MOZ_MUST_USE NS_IMETHOD GetCanceled(bool *aCanceled) override { return _to GetCanceled(aCanceled); } \ |
419 | 0 | MOZ_MUST_USE NS_IMETHOD GetChannelIsForDownload(bool *aChannelIsForDownload) override { return _to GetChannelIsForDownload(aChannelIsForDownload); } \ |
420 | 0 | MOZ_MUST_USE NS_IMETHOD SetChannelIsForDownload(bool aChannelIsForDownload) override { return _to SetChannelIsForDownload(aChannelIsForDownload); } \ |
421 | 0 | MOZ_MUST_USE NS_IMETHOD GetLocalAddress(nsACString& aLocalAddress) override { return _to GetLocalAddress(aLocalAddress); } \ |
422 | 0 | MOZ_MUST_USE NS_IMETHOD GetLocalPort(int32_t *aLocalPort) override { return _to GetLocalPort(aLocalPort); } \ |
423 | 0 | MOZ_MUST_USE NS_IMETHOD GetRemoteAddress(nsACString& aRemoteAddress) override { return _to GetRemoteAddress(aRemoteAddress); } \ |
424 | 0 | MOZ_MUST_USE NS_IMETHOD GetRemotePort(int32_t *aRemotePort) override { return _to GetRemotePort(aRemotePort); } \ |
425 | 0 | MOZ_MUST_USE NS_IMETHOD SetCacheKeysRedirectChain(nsTArray<nsCString> * cacheKeys) override { return _to SetCacheKeysRedirectChain(cacheKeys); } \ |
426 | 0 | MOZ_MUST_USE NS_IMETHOD HTTPUpgrade(const nsACString& aProtocolName, nsIHttpUpgradeListener *aListener) override { return _to HTTPUpgrade(aProtocolName, aListener); } \ |
427 | 0 | MOZ_MUST_USE NS_IMETHOD GetAllowSpdy(bool *aAllowSpdy) override { return _to GetAllowSpdy(aAllowSpdy); } \ |
428 | 0 | MOZ_MUST_USE NS_IMETHOD SetAllowSpdy(bool aAllowSpdy) override { return _to SetAllowSpdy(aAllowSpdy); } \ |
429 | 0 | MOZ_MUST_USE NS_IMETHOD GetResponseTimeoutEnabled(bool *aResponseTimeoutEnabled) override { return _to GetResponseTimeoutEnabled(aResponseTimeoutEnabled); } \ |
430 | 0 | MOZ_MUST_USE NS_IMETHOD SetResponseTimeoutEnabled(bool aResponseTimeoutEnabled) override { return _to SetResponseTimeoutEnabled(aResponseTimeoutEnabled); } \ |
431 | 0 | MOZ_MUST_USE NS_IMETHOD GetInitialRwin(uint32_t *aInitialRwin) override { return _to GetInitialRwin(aInitialRwin); } \ |
432 | 0 | MOZ_MUST_USE NS_IMETHOD SetInitialRwin(uint32_t aInitialRwin) override { return _to SetInitialRwin(aInitialRwin); } \ |
433 | 0 | MOZ_MUST_USE NS_IMETHOD GetApiRedirectToURI(nsIURI **aApiRedirectToURI) override { return _to GetApiRedirectToURI(aApiRedirectToURI); } \ |
434 | 0 | MOZ_MUST_USE NS_IMETHOD GetAllowAltSvc(bool *aAllowAltSvc) override { return _to GetAllowAltSvc(aAllowAltSvc); } \ |
435 | 0 | MOZ_MUST_USE NS_IMETHOD SetAllowAltSvc(bool aAllowAltSvc) override { return _to SetAllowAltSvc(aAllowAltSvc); } \ |
436 | 0 | MOZ_MUST_USE NS_IMETHOD GetBeConservative(bool *aBeConservative) override { return _to GetBeConservative(aBeConservative); } \ |
437 | 0 | MOZ_MUST_USE NS_IMETHOD SetBeConservative(bool aBeConservative) override { return _to SetBeConservative(aBeConservative); } \ |
438 | 0 | MOZ_MUST_USE NS_IMETHOD GetTrr(bool *aTrr) override { return _to GetTrr(aTrr); } \ |
439 | 0 | MOZ_MUST_USE NS_IMETHOD SetTrr(bool aTrr) override { return _to SetTrr(aTrr); } \ |
440 | 0 | MOZ_MUST_USE NS_IMETHOD GetTlsFlags(uint32_t *aTlsFlags) override { return _to GetTlsFlags(aTlsFlags); } \ |
441 | 0 | MOZ_MUST_USE NS_IMETHOD SetTlsFlags(uint32_t aTlsFlags) override { return _to SetTlsFlags(aTlsFlags); } \ |
442 | 0 | MOZ_MUST_USE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) override { return _to GetLastModifiedTime(aLastModifiedTime); } \ |
443 | 0 | MOZ_MUST_USE NS_IMETHOD GetCorsIncludeCredentials(bool *aCorsIncludeCredentials) override { return _to GetCorsIncludeCredentials(aCorsIncludeCredentials); } \ |
444 | 0 | MOZ_MUST_USE NS_IMETHOD SetCorsIncludeCredentials(bool aCorsIncludeCredentials) override { return _to SetCorsIncludeCredentials(aCorsIncludeCredentials); } \ |
445 | 0 | MOZ_MUST_USE NS_IMETHOD GetCorsMode(uint32_t *aCorsMode) override { return _to GetCorsMode(aCorsMode); } \ |
446 | 0 | MOZ_MUST_USE NS_IMETHOD SetCorsMode(uint32_t aCorsMode) override { return _to SetCorsMode(aCorsMode); } \ |
447 | 0 | MOZ_MUST_USE NS_IMETHOD GetRedirectMode(uint32_t *aRedirectMode) override { return _to GetRedirectMode(aRedirectMode); } \ |
448 | 0 | MOZ_MUST_USE NS_IMETHOD SetRedirectMode(uint32_t aRedirectMode) override { return _to SetRedirectMode(aRedirectMode); } \ |
449 | 0 | MOZ_MUST_USE NS_IMETHOD GetFetchCacheMode(uint32_t *aFetchCacheMode) override { return _to GetFetchCacheMode(aFetchCacheMode); } \ |
450 | 0 | MOZ_MUST_USE NS_IMETHOD SetFetchCacheMode(uint32_t aFetchCacheMode) override { return _to SetFetchCacheMode(aFetchCacheMode); } \ |
451 | 0 | MOZ_MUST_USE NS_IMETHOD GetTopWindowURI(nsIURI **aTopWindowURI) override { return _to GetTopWindowURI(aTopWindowURI); } \ |
452 | 0 | MOZ_MUST_USE NS_IMETHOD SetTopWindowURIIfUnknown(nsIURI *topWindowURI) override { return _to SetTopWindowURIIfUnknown(topWindowURI); } \ |
453 | 0 | MOZ_MUST_USE NS_IMETHOD GetProxyURI(nsIURI **aProxyURI) override { return _to GetProxyURI(aProxyURI); } \ |
454 | 0 | virtual void SetCorsPreflightParameters(const nsTArray<nsCString> & unsafeHeaders) override { return _to SetCorsPreflightParameters(unsafeHeaders); } \ |
455 | 0 | virtual void SetAltDataForChild(bool aIsForChild) override { return _to SetAltDataForChild(aIsForChild); } \ |
456 | | using nsIHttpChannelInternal::GetBlockAuthPrompt; \ |
457 | 0 | NS_IMETHOD GetBlockAuthPrompt(bool *aBlockAuthPrompt) override { return _to GetBlockAuthPrompt(aBlockAuthPrompt); } \ |
458 | 0 | NS_IMETHOD SetBlockAuthPrompt(bool aBlockAuthPrompt) override { return _to SetBlockAuthPrompt(aBlockAuthPrompt); } \ |
459 | 0 | MOZ_MUST_USE NS_IMETHOD GetIntegrityMetadata(nsAString& aIntegrityMetadata) override { return _to GetIntegrityMetadata(aIntegrityMetadata); } \ |
460 | 0 | MOZ_MUST_USE NS_IMETHOD SetIntegrityMetadata(const nsAString& aIntegrityMetadata) override { return _to SetIntegrityMetadata(aIntegrityMetadata); } \ |
461 | 0 | MOZ_MUST_USE NS_IMETHOD GetConnectionInfoHashKey(nsACString& aConnectionInfoHashKey) override { return _to GetConnectionInfoHashKey(aConnectionInfoHashKey); } \ |
462 | | using nsIHttpChannelInternal::GetLastRedirectFlags; \ |
463 | 0 | NS_IMETHOD GetLastRedirectFlags(uint32_t *aLastRedirectFlags) override { return _to GetLastRedirectFlags(aLastRedirectFlags); } \ |
464 | 0 | NS_IMETHOD SetLastRedirectFlags(uint32_t aLastRedirectFlags) override { return _to SetLastRedirectFlags(aLastRedirectFlags); } \ |
465 | 0 | NS_IMETHOD GetNavigationStartTimeStamp(mozilla::TimeStamp * aNavigationStartTimeStamp) override { return _to GetNavigationStartTimeStamp(aNavigationStartTimeStamp); } \ |
466 | 0 | NS_IMETHOD SetNavigationStartTimeStamp(mozilla::TimeStamp aNavigationStartTimeStamp) override { return _to SetNavigationStartTimeStamp(aNavigationStartTimeStamp); } \ |
467 | 0 | NS_IMETHOD CancelForTrackingProtection(void) override { return _to CancelForTrackingProtection(); } |
468 | | |
469 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
470 | | #define NS_FORWARD_SAFE_NSIHTTPCHANNELINTERNAL(_to) \ |
471 | 0 | MOZ_MUST_USE NS_IMETHOD GetDocumentURI(nsIURI **aDocumentURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentURI(aDocumentURI); } \ |
472 | 0 | MOZ_MUST_USE NS_IMETHOD SetDocumentURI(nsIURI *aDocumentURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocumentURI(aDocumentURI); } \ |
473 | 0 | MOZ_MUST_USE NS_IMETHOD GetRequestVersion(uint32_t *major, uint32_t *minor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestVersion(major, minor); } \ |
474 | 0 | MOZ_MUST_USE NS_IMETHOD GetResponseVersion(uint32_t *major, uint32_t *minor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseVersion(major, minor); } \ |
475 | 0 | MOZ_MUST_USE NS_IMETHOD TakeAllSecurityMessages(nsCOMArray<nsISecurityConsoleMessage> & aMessages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TakeAllSecurityMessages(aMessages); } \ |
476 | 0 | MOZ_MUST_USE NS_IMETHOD SetCookie(const char * aCookieHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCookie(aCookieHeader); } \ |
477 | 0 | MOZ_MUST_USE NS_IMETHOD SetupFallbackChannel(const char * aFallbackKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetupFallbackChannel(aFallbackKey); } \ |
478 | 0 | MOZ_MUST_USE NS_IMETHOD GetThirdPartyFlags(uint32_t *aThirdPartyFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThirdPartyFlags(aThirdPartyFlags); } \ |
479 | 0 | MOZ_MUST_USE NS_IMETHOD SetThirdPartyFlags(uint32_t aThirdPartyFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThirdPartyFlags(aThirdPartyFlags); } \ |
480 | 0 | MOZ_MUST_USE NS_IMETHOD GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForceAllowThirdPartyCookie(aForceAllowThirdPartyCookie); } \ |
481 | 0 | MOZ_MUST_USE NS_IMETHOD SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetForceAllowThirdPartyCookie(aForceAllowThirdPartyCookie); } \ |
482 | 0 | MOZ_MUST_USE NS_IMETHOD GetCanceled(bool *aCanceled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanceled(aCanceled); } \ |
483 | 0 | MOZ_MUST_USE NS_IMETHOD GetChannelIsForDownload(bool *aChannelIsForDownload) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannelIsForDownload(aChannelIsForDownload); } \ |
484 | 0 | MOZ_MUST_USE NS_IMETHOD SetChannelIsForDownload(bool aChannelIsForDownload) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChannelIsForDownload(aChannelIsForDownload); } \ |
485 | 0 | MOZ_MUST_USE NS_IMETHOD GetLocalAddress(nsACString& aLocalAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalAddress(aLocalAddress); } \ |
486 | 0 | MOZ_MUST_USE NS_IMETHOD GetLocalPort(int32_t *aLocalPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalPort(aLocalPort); } \ |
487 | 0 | MOZ_MUST_USE NS_IMETHOD GetRemoteAddress(nsACString& aRemoteAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRemoteAddress(aRemoteAddress); } \ |
488 | 0 | MOZ_MUST_USE NS_IMETHOD GetRemotePort(int32_t *aRemotePort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRemotePort(aRemotePort); } \ |
489 | 0 | MOZ_MUST_USE NS_IMETHOD SetCacheKeysRedirectChain(nsTArray<nsCString> * cacheKeys) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCacheKeysRedirectChain(cacheKeys); } \ |
490 | 0 | MOZ_MUST_USE NS_IMETHOD HTTPUpgrade(const nsACString& aProtocolName, nsIHttpUpgradeListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HTTPUpgrade(aProtocolName, aListener); } \ |
491 | 0 | MOZ_MUST_USE NS_IMETHOD GetAllowSpdy(bool *aAllowSpdy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowSpdy(aAllowSpdy); } \ |
492 | 0 | MOZ_MUST_USE NS_IMETHOD SetAllowSpdy(bool aAllowSpdy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowSpdy(aAllowSpdy); } \ |
493 | 0 | MOZ_MUST_USE NS_IMETHOD GetResponseTimeoutEnabled(bool *aResponseTimeoutEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseTimeoutEnabled(aResponseTimeoutEnabled); } \ |
494 | 0 | MOZ_MUST_USE NS_IMETHOD SetResponseTimeoutEnabled(bool aResponseTimeoutEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResponseTimeoutEnabled(aResponseTimeoutEnabled); } \ |
495 | 0 | MOZ_MUST_USE NS_IMETHOD GetInitialRwin(uint32_t *aInitialRwin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInitialRwin(aInitialRwin); } \ |
496 | 0 | MOZ_MUST_USE NS_IMETHOD SetInitialRwin(uint32_t aInitialRwin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInitialRwin(aInitialRwin); } \ |
497 | 0 | MOZ_MUST_USE NS_IMETHOD GetApiRedirectToURI(nsIURI **aApiRedirectToURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApiRedirectToURI(aApiRedirectToURI); } \ |
498 | 0 | MOZ_MUST_USE NS_IMETHOD GetAllowAltSvc(bool *aAllowAltSvc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowAltSvc(aAllowAltSvc); } \ |
499 | 0 | MOZ_MUST_USE NS_IMETHOD SetAllowAltSvc(bool aAllowAltSvc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowAltSvc(aAllowAltSvc); } \ |
500 | 0 | MOZ_MUST_USE NS_IMETHOD GetBeConservative(bool *aBeConservative) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBeConservative(aBeConservative); } \ |
501 | 0 | MOZ_MUST_USE NS_IMETHOD SetBeConservative(bool aBeConservative) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBeConservative(aBeConservative); } \ |
502 | 0 | MOZ_MUST_USE NS_IMETHOD GetTrr(bool *aTrr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTrr(aTrr); } \ |
503 | 0 | MOZ_MUST_USE NS_IMETHOD SetTrr(bool aTrr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTrr(aTrr); } \ |
504 | 0 | MOZ_MUST_USE NS_IMETHOD GetTlsFlags(uint32_t *aTlsFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTlsFlags(aTlsFlags); } \ |
505 | 0 | MOZ_MUST_USE NS_IMETHOD SetTlsFlags(uint32_t aTlsFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTlsFlags(aTlsFlags); } \ |
506 | 0 | MOZ_MUST_USE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModifiedTime(aLastModifiedTime); } \ |
507 | 0 | MOZ_MUST_USE NS_IMETHOD GetCorsIncludeCredentials(bool *aCorsIncludeCredentials) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCorsIncludeCredentials(aCorsIncludeCredentials); } \ |
508 | 0 | MOZ_MUST_USE NS_IMETHOD SetCorsIncludeCredentials(bool aCorsIncludeCredentials) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCorsIncludeCredentials(aCorsIncludeCredentials); } \ |
509 | 0 | MOZ_MUST_USE NS_IMETHOD GetCorsMode(uint32_t *aCorsMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCorsMode(aCorsMode); } \ |
510 | 0 | MOZ_MUST_USE NS_IMETHOD SetCorsMode(uint32_t aCorsMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCorsMode(aCorsMode); } \ |
511 | 0 | MOZ_MUST_USE NS_IMETHOD GetRedirectMode(uint32_t *aRedirectMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRedirectMode(aRedirectMode); } \ |
512 | 0 | MOZ_MUST_USE NS_IMETHOD SetRedirectMode(uint32_t aRedirectMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRedirectMode(aRedirectMode); } \ |
513 | 0 | MOZ_MUST_USE NS_IMETHOD GetFetchCacheMode(uint32_t *aFetchCacheMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFetchCacheMode(aFetchCacheMode); } \ |
514 | 0 | MOZ_MUST_USE NS_IMETHOD SetFetchCacheMode(uint32_t aFetchCacheMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFetchCacheMode(aFetchCacheMode); } \ |
515 | 0 | MOZ_MUST_USE NS_IMETHOD GetTopWindowURI(nsIURI **aTopWindowURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTopWindowURI(aTopWindowURI); } \ |
516 | 0 | MOZ_MUST_USE NS_IMETHOD SetTopWindowURIIfUnknown(nsIURI *topWindowURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTopWindowURIIfUnknown(topWindowURI); } \ |
517 | 0 | MOZ_MUST_USE NS_IMETHOD GetProxyURI(nsIURI **aProxyURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProxyURI(aProxyURI); } \ |
518 | | virtual void SetCorsPreflightParameters(const nsTArray<nsCString> & unsafeHeaders) override; \ |
519 | | virtual void SetAltDataForChild(bool aIsForChild) override; \ |
520 | 0 | NS_IMETHOD GetBlockAuthPrompt(bool *aBlockAuthPrompt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBlockAuthPrompt(aBlockAuthPrompt); } \ |
521 | 0 | NS_IMETHOD SetBlockAuthPrompt(bool aBlockAuthPrompt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBlockAuthPrompt(aBlockAuthPrompt); } \ |
522 | 0 | MOZ_MUST_USE NS_IMETHOD GetIntegrityMetadata(nsAString& aIntegrityMetadata) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIntegrityMetadata(aIntegrityMetadata); } \ |
523 | 0 | MOZ_MUST_USE NS_IMETHOD SetIntegrityMetadata(const nsAString& aIntegrityMetadata) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIntegrityMetadata(aIntegrityMetadata); } \ |
524 | 0 | MOZ_MUST_USE NS_IMETHOD GetConnectionInfoHashKey(nsACString& aConnectionInfoHashKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConnectionInfoHashKey(aConnectionInfoHashKey); } \ |
525 | 0 | NS_IMETHOD GetLastRedirectFlags(uint32_t *aLastRedirectFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastRedirectFlags(aLastRedirectFlags); } \ |
526 | 0 | NS_IMETHOD SetLastRedirectFlags(uint32_t aLastRedirectFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastRedirectFlags(aLastRedirectFlags); } \ |
527 | 0 | NS_IMETHOD GetNavigationStartTimeStamp(mozilla::TimeStamp * aNavigationStartTimeStamp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNavigationStartTimeStamp(aNavigationStartTimeStamp); } \ |
528 | 0 | NS_IMETHOD SetNavigationStartTimeStamp(mozilla::TimeStamp aNavigationStartTimeStamp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNavigationStartTimeStamp(aNavigationStartTimeStamp); } \ |
529 | 0 | NS_IMETHOD CancelForTrackingProtection(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelForTrackingProtection(); } |
530 | | |
531 | | |
532 | | #endif /* __gen_nsIHttpChannelInternal_h__ */ |