DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/netwerk/protocol/http/nsIHttpChannelInternal.idl
 */

#ifndef __gen_nsIHttpChannelInternal_h__
#define __gen_nsIHttpChannelInternal_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

#include "mozilla/AlreadyAddRefed.h"
#include "mozilla/Assertions.h"
#include "mozilla/DebugOnly.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#include "nsStringFwd.h"
#include "nsTArrayForwardDeclare.h"
template<class T> class nsCOMArray;
namespace mozilla {
class TimeStamp;
}
class nsIAsyncInputStream; /* forward declaration */

class nsIAsyncOutputStream; /* forward declaration */

class nsIPrincipal; /* forward declaration */

class nsIProxyInfo; /* forward declaration */

class nsISecurityConsoleMessage; /* forward declaration */

class nsISocketTransport; /* forward declaration */

class nsIURI; /* forward declaration */


/* starting interface:    nsIHttpUpgradeListener */
#define NS_IHTTPUPGRADELISTENER_IID_STR "5b515449-ab64-4dba-b3cd-da8fc2f83064"

#define NS_IHTTPUPGRADELISTENER_IID \
  {0x5b515449, 0xab64, 0x4dba, \
    { 0xb3, 0xcd, 0xda, 0x8f, 0xc2, 0xf8, 0x30, 0x64 }}

class NS_NO_VTABLE nsIHttpUpgradeListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPUPGRADELISTENER_IID)

  /* [must_use] void onTransportAvailable (in nsISocketTransport aTransport, in nsIAsyncInputStream aSocketIn, in nsIAsyncOutputStream aSocketOut); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD OnTransportAvailable(nsISocketTransport *aTransport, nsIAsyncInputStream *aSocketIn, nsIAsyncOutputStream *aSocketOut) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpUpgradeListener, NS_IHTTPUPGRADELISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIHTTPUPGRADELISTENER \
  MOZ_MUST_USE NS_IMETHOD OnTransportAvailable(nsISocketTransport *aTransport, nsIAsyncInputStream *aSocketIn, nsIAsyncOutputStream *aSocketOut) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIHTTPUPGRADELISTENER \
  MOZ_MUST_USE nsresult OnTransportAvailable(nsISocketTransport *aTransport, nsIAsyncInputStream *aSocketIn, nsIAsyncOutputStream *aSocketOut); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIHTTPUPGRADELISTENER(_to) \
  MOZ_MUST_USE NS_IMETHOD OnTransportAvailable(nsISocketTransport *aTransport, nsIAsyncInputStream *aSocketIn, nsIAsyncOutputStream *aSocketOut) override { return _to OnTransportAvailable(aTransport, aSocketIn, aSocketOut); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIHTTPUPGRADELISTENER(_to) \
  MOZ_MUST_USE NS_IMETHOD OnTransportAvailable(nsISocketTransport *aTransport, nsIAsyncInputStream *aSocketIn, nsIAsyncOutputStream *aSocketOut) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnTransportAvailable(aTransport, aSocketIn, aSocketOut); } 


/* starting interface:    nsIHttpChannelInternal */
#define NS_IHTTPCHANNELINTERNAL_IID_STR "4e28263d-1e03-46f4-aa5c-9512f91957f9"

#define NS_IHTTPCHANNELINTERNAL_IID \
  {0x4e28263d, 0x1e03, 0x46f4, \
    { 0xaa, 0x5c, 0x95, 0x12, 0xf9, 0x19, 0x57, 0xf9 }}

class NS_NO_VTABLE nsIHttpChannelInternal : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPCHANNELINTERNAL_IID)

  /* [must_use] attribute nsIURI documentURI; */
  MOZ_MUST_USE NS_IMETHOD GetDocumentURI(nsIURI **aDocumentURI) = 0;
  MOZ_MUST_USE NS_IMETHOD SetDocumentURI(nsIURI *aDocumentURI) = 0;

  /* [must_use] void getRequestVersion (out unsigned long major, out unsigned long minor); */
  MOZ_MUST_USE NS_IMETHOD GetRequestVersion(uint32_t *major, uint32_t *minor) = 0;

  /* [must_use] void getResponseVersion (out unsigned long major, out unsigned long minor); */
  MOZ_MUST_USE NS_IMETHOD GetResponseVersion(uint32_t *major, uint32_t *minor) = 0;

  /* [must_use,noscript] void takeAllSecurityMessages (in securityMessagesArray aMessages); */
  MOZ_MUST_USE NS_IMETHOD TakeAllSecurityMessages(nsCOMArray<nsISecurityConsoleMessage> & aMessages) = 0;

  /* [must_use] void setCookie (in string aCookieHeader); */
  MOZ_MUST_USE NS_IMETHOD SetCookie(const char * aCookieHeader) = 0;

  /* [must_use] void setupFallbackChannel (in string aFallbackKey); */
  MOZ_MUST_USE NS_IMETHOD SetupFallbackChannel(const char * aFallbackKey) = 0;

  enum {
    THIRD_PARTY_FORCE_ALLOW = 1U
  };

  /* [must_use] attribute unsigned long thirdPartyFlags; */
  MOZ_MUST_USE NS_IMETHOD GetThirdPartyFlags(uint32_t *aThirdPartyFlags) = 0;
  MOZ_MUST_USE NS_IMETHOD SetThirdPartyFlags(uint32_t aThirdPartyFlags) = 0;

  /* [must_use] attribute boolean forceAllowThirdPartyCookie; */
  MOZ_MUST_USE NS_IMETHOD GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie) = 0;
  MOZ_MUST_USE NS_IMETHOD SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie) = 0;

  /* [must_use] readonly attribute boolean canceled; */
  MOZ_MUST_USE NS_IMETHOD GetCanceled(bool *aCanceled) = 0;

  /* [must_use] attribute boolean channelIsForDownload; */
  MOZ_MUST_USE NS_IMETHOD GetChannelIsForDownload(bool *aChannelIsForDownload) = 0;
  MOZ_MUST_USE NS_IMETHOD SetChannelIsForDownload(bool aChannelIsForDownload) = 0;

  /* [must_use] readonly attribute AUTF8String localAddress; */
  MOZ_MUST_USE NS_IMETHOD GetLocalAddress(nsACString& aLocalAddress) = 0;

  /* [must_use] readonly attribute int32_t localPort; */
  MOZ_MUST_USE NS_IMETHOD GetLocalPort(int32_t *aLocalPort) = 0;

  /* [must_use] readonly attribute AUTF8String remoteAddress; */
  MOZ_MUST_USE NS_IMETHOD GetRemoteAddress(nsACString& aRemoteAddress) = 0;

  /* [must_use] readonly attribute int32_t remotePort; */
  MOZ_MUST_USE NS_IMETHOD GetRemotePort(int32_t *aRemotePort) = 0;

  /* [must_use,noscript] void setCacheKeysRedirectChain (in StringArray cacheKeys); */
  MOZ_MUST_USE NS_IMETHOD SetCacheKeysRedirectChain(nsTArray<nsCString> * cacheKeys) = 0;

  /* [must_use] void HTTPUpgrade (in ACString aProtocolName, in nsIHttpUpgradeListener aListener); */
  MOZ_MUST_USE NS_IMETHOD HTTPUpgrade(const nsACString& aProtocolName, nsIHttpUpgradeListener *aListener) = 0;

  /* [must_use] attribute boolean allowSpdy; */
  MOZ_MUST_USE NS_IMETHOD GetAllowSpdy(bool *aAllowSpdy) = 0;
  MOZ_MUST_USE NS_IMETHOD SetAllowSpdy(bool aAllowSpdy) = 0;

  /* [must_use] attribute boolean responseTimeoutEnabled; */
  MOZ_MUST_USE NS_IMETHOD GetResponseTimeoutEnabled(bool *aResponseTimeoutEnabled) = 0;
  MOZ_MUST_USE NS_IMETHOD SetResponseTimeoutEnabled(bool aResponseTimeoutEnabled) = 0;

  /* [must_use] attribute unsigned long initialRwin; */
  MOZ_MUST_USE NS_IMETHOD GetInitialRwin(uint32_t *aInitialRwin) = 0;
  MOZ_MUST_USE NS_IMETHOD SetInitialRwin(uint32_t aInitialRwin) = 0;

  /* [must_use] readonly attribute nsIURI apiRedirectToURI; */
  MOZ_MUST_USE NS_IMETHOD GetApiRedirectToURI(nsIURI **aApiRedirectToURI) = 0;

  /* [must_use] attribute boolean allowAltSvc; */
  MOZ_MUST_USE NS_IMETHOD GetAllowAltSvc(bool *aAllowAltSvc) = 0;
  MOZ_MUST_USE NS_IMETHOD SetAllowAltSvc(bool aAllowAltSvc) = 0;

  /* [must_use] attribute boolean beConservative; */
  MOZ_MUST_USE NS_IMETHOD GetBeConservative(bool *aBeConservative) = 0;
  MOZ_MUST_USE NS_IMETHOD SetBeConservative(bool aBeConservative) = 0;

  /* [must_use,noscript] attribute boolean trr; */
  MOZ_MUST_USE NS_IMETHOD GetTrr(bool *aTrr) = 0;
  MOZ_MUST_USE NS_IMETHOD SetTrr(bool aTrr) = 0;

  /* [must_use] attribute unsigned long tlsFlags; */
  MOZ_MUST_USE NS_IMETHOD GetTlsFlags(uint32_t *aTlsFlags) = 0;
  MOZ_MUST_USE NS_IMETHOD SetTlsFlags(uint32_t aTlsFlags) = 0;

  /* [must_use] readonly attribute PRTime lastModifiedTime; */
  MOZ_MUST_USE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) = 0;

  /* [must_use] attribute boolean corsIncludeCredentials; */
  MOZ_MUST_USE NS_IMETHOD GetCorsIncludeCredentials(bool *aCorsIncludeCredentials) = 0;
  MOZ_MUST_USE NS_IMETHOD SetCorsIncludeCredentials(bool aCorsIncludeCredentials) = 0;

  enum {
    CORS_MODE_SAME_ORIGIN = 0U,
    CORS_MODE_NO_CORS = 1U,
    CORS_MODE_CORS = 2U,
    CORS_MODE_NAVIGATE = 3U
  };

  /* [must_use] attribute unsigned long corsMode; */
  MOZ_MUST_USE NS_IMETHOD GetCorsMode(uint32_t *aCorsMode) = 0;
  MOZ_MUST_USE NS_IMETHOD SetCorsMode(uint32_t aCorsMode) = 0;

  enum {
    REDIRECT_MODE_FOLLOW = 0U,
    REDIRECT_MODE_ERROR = 1U,
    REDIRECT_MODE_MANUAL = 2U
  };

  /* [must_use] attribute unsigned long redirectMode; */
  MOZ_MUST_USE NS_IMETHOD GetRedirectMode(uint32_t *aRedirectMode) = 0;
  MOZ_MUST_USE NS_IMETHOD SetRedirectMode(uint32_t aRedirectMode) = 0;

  enum {
    FETCH_CACHE_MODE_DEFAULT = 0U,
    FETCH_CACHE_MODE_NO_STORE = 1U,
    FETCH_CACHE_MODE_RELOAD = 2U,
    FETCH_CACHE_MODE_NO_CACHE = 3U,
    FETCH_CACHE_MODE_FORCE_CACHE = 4U,
    FETCH_CACHE_MODE_ONLY_IF_CACHED = 5U
  };

  /* [must_use] attribute unsigned long fetchCacheMode; */
  MOZ_MUST_USE NS_IMETHOD GetFetchCacheMode(uint32_t *aFetchCacheMode) = 0;
  MOZ_MUST_USE NS_IMETHOD SetFetchCacheMode(uint32_t aFetchCacheMode) = 0;

  /* [must_use] readonly attribute nsIURI topWindowURI; */
  MOZ_MUST_USE NS_IMETHOD GetTopWindowURI(nsIURI **aTopWindowURI) = 0;

  /* [must_use] void setTopWindowURIIfUnknown (in nsIURI topWindowURI); */
  MOZ_MUST_USE NS_IMETHOD SetTopWindowURIIfUnknown(nsIURI *topWindowURI) = 0;

  /* [must_use] readonly attribute nsIURI proxyURI; */
  MOZ_MUST_USE NS_IMETHOD GetProxyURI(nsIURI **aProxyURI) = 0;

  /* [noscript,nostdcall,notxpcom] void setCorsPreflightParameters (in StringArrayRef unsafeHeaders); */
  virtual void SetCorsPreflightParameters(const nsTArray<nsCString> & unsafeHeaders) = 0;

  /* [noscript,nostdcall,notxpcom] void setAltDataForChild (in boolean aIsForChild); */
  virtual void SetAltDataForChild(bool aIsForChild) = 0;

  /* [infallible] attribute boolean blockAuthPrompt; */
  NS_IMETHOD GetBlockAuthPrompt(bool *aBlockAuthPrompt) = 0;
  inline bool GetBlockAuthPrompt()
  {
    bool result;
    mozilla::DebugOnly<nsresult> rv = GetBlockAuthPrompt(&result);
    MOZ_ASSERT(NS_SUCCEEDED(rv));
    return result;
  }
  NS_IMETHOD SetBlockAuthPrompt(bool aBlockAuthPrompt) = 0;

  /* [must_use] attribute AString integrityMetadata; */
  MOZ_MUST_USE NS_IMETHOD GetIntegrityMetadata(nsAString& aIntegrityMetadata) = 0;
  MOZ_MUST_USE NS_IMETHOD SetIntegrityMetadata(const nsAString& aIntegrityMetadata) = 0;

  /* [must_use] readonly attribute ACString connectionInfoHashKey; */
  MOZ_MUST_USE NS_IMETHOD GetConnectionInfoHashKey(nsACString& aConnectionInfoHashKey) = 0;

  /* [infallible,noscript] attribute unsigned long lastRedirectFlags; */
  NS_IMETHOD GetLastRedirectFlags(uint32_t *aLastRedirectFlags) = 0;
  inline uint32_t GetLastRedirectFlags()
  {
    uint32_t result;
    mozilla::DebugOnly<nsresult> rv = GetLastRedirectFlags(&result);
    MOZ_ASSERT(NS_SUCCEEDED(rv));
    return result;
  }
  NS_IMETHOD SetLastRedirectFlags(uint32_t aLastRedirectFlags) = 0;

  /* [noscript] attribute TimeStamp navigationStartTimeStamp; */
  NS_IMETHOD GetNavigationStartTimeStamp(mozilla::TimeStamp * aNavigationStartTimeStamp) = 0;
  NS_IMETHOD SetNavigationStartTimeStamp(mozilla::TimeStamp aNavigationStartTimeStamp) = 0;

  /* [noscript] void cancelForTrackingProtection (); */
  NS_IMETHOD CancelForTrackingProtection(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpChannelInternal, NS_IHTTPCHANNELINTERNAL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIHTTPCHANNELINTERNAL \
  MOZ_MUST_USE NS_IMETHOD GetDocumentURI(nsIURI **aDocumentURI) override; \
  MOZ_MUST_USE NS_IMETHOD SetDocumentURI(nsIURI *aDocumentURI) override; \
  MOZ_MUST_USE NS_IMETHOD GetRequestVersion(uint32_t *major, uint32_t *minor) override; \
  MOZ_MUST_USE NS_IMETHOD GetResponseVersion(uint32_t *major, uint32_t *minor) override; \
  MOZ_MUST_USE NS_IMETHOD TakeAllSecurityMessages(nsCOMArray<nsISecurityConsoleMessage> & aMessages) override; \
  MOZ_MUST_USE NS_IMETHOD SetCookie(const char * aCookieHeader) override; \
  MOZ_MUST_USE NS_IMETHOD SetupFallbackChannel(const char * aFallbackKey) override; \
  MOZ_MUST_USE NS_IMETHOD GetThirdPartyFlags(uint32_t *aThirdPartyFlags) override; \
  MOZ_MUST_USE NS_IMETHOD SetThirdPartyFlags(uint32_t aThirdPartyFlags) override; \
  MOZ_MUST_USE NS_IMETHOD GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie) override; \
  MOZ_MUST_USE NS_IMETHOD SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie) override; \
  MOZ_MUST_USE NS_IMETHOD GetCanceled(bool *aCanceled) override; \
  MOZ_MUST_USE NS_IMETHOD GetChannelIsForDownload(bool *aChannelIsForDownload) override; \
  MOZ_MUST_USE NS_IMETHOD SetChannelIsForDownload(bool aChannelIsForDownload) override; \
  MOZ_MUST_USE NS_IMETHOD GetLocalAddress(nsACString& aLocalAddress) override; \
  MOZ_MUST_USE NS_IMETHOD GetLocalPort(int32_t *aLocalPort) override; \
  MOZ_MUST_USE NS_IMETHOD GetRemoteAddress(nsACString& aRemoteAddress) override; \
  MOZ_MUST_USE NS_IMETHOD GetRemotePort(int32_t *aRemotePort) override; \
  MOZ_MUST_USE NS_IMETHOD SetCacheKeysRedirectChain(nsTArray<nsCString> * cacheKeys) override; \
  MOZ_MUST_USE NS_IMETHOD HTTPUpgrade(const nsACString& aProtocolName, nsIHttpUpgradeListener *aListener) override; \
  MOZ_MUST_USE NS_IMETHOD GetAllowSpdy(bool *aAllowSpdy) override; \
  MOZ_MUST_USE NS_IMETHOD SetAllowSpdy(bool aAllowSpdy) override; \
  MOZ_MUST_USE NS_IMETHOD GetResponseTimeoutEnabled(bool *aResponseTimeoutEnabled) override; \
  MOZ_MUST_USE NS_IMETHOD SetResponseTimeoutEnabled(bool aResponseTimeoutEnabled) override; \
  MOZ_MUST_USE NS_IMETHOD GetInitialRwin(uint32_t *aInitialRwin) override; \
  MOZ_MUST_USE NS_IMETHOD SetInitialRwin(uint32_t aInitialRwin) override; \
  MOZ_MUST_USE NS_IMETHOD GetApiRedirectToURI(nsIURI **aApiRedirectToURI) override; \
  MOZ_MUST_USE NS_IMETHOD GetAllowAltSvc(bool *aAllowAltSvc) override; \
  MOZ_MUST_USE NS_IMETHOD SetAllowAltSvc(bool aAllowAltSvc) override; \
  MOZ_MUST_USE NS_IMETHOD GetBeConservative(bool *aBeConservative) override; \
  MOZ_MUST_USE NS_IMETHOD SetBeConservative(bool aBeConservative) override; \
  MOZ_MUST_USE NS_IMETHOD GetTrr(bool *aTrr) override; \
  MOZ_MUST_USE NS_IMETHOD SetTrr(bool aTrr) override; \
  MOZ_MUST_USE NS_IMETHOD GetTlsFlags(uint32_t *aTlsFlags) override; \
  MOZ_MUST_USE NS_IMETHOD SetTlsFlags(uint32_t aTlsFlags) override; \
  MOZ_MUST_USE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) override; \
  MOZ_MUST_USE NS_IMETHOD GetCorsIncludeCredentials(bool *aCorsIncludeCredentials) override; \
  MOZ_MUST_USE NS_IMETHOD SetCorsIncludeCredentials(bool aCorsIncludeCredentials) override; \
  MOZ_MUST_USE NS_IMETHOD GetCorsMode(uint32_t *aCorsMode) override; \
  MOZ_MUST_USE NS_IMETHOD SetCorsMode(uint32_t aCorsMode) override; \
  MOZ_MUST_USE NS_IMETHOD GetRedirectMode(uint32_t *aRedirectMode) override; \
  MOZ_MUST_USE NS_IMETHOD SetRedirectMode(uint32_t aRedirectMode) override; \
  MOZ_MUST_USE NS_IMETHOD GetFetchCacheMode(uint32_t *aFetchCacheMode) override; \
  MOZ_MUST_USE NS_IMETHOD SetFetchCacheMode(uint32_t aFetchCacheMode) override; \
  MOZ_MUST_USE NS_IMETHOD GetTopWindowURI(nsIURI **aTopWindowURI) override; \
  MOZ_MUST_USE NS_IMETHOD SetTopWindowURIIfUnknown(nsIURI *topWindowURI) override; \
  MOZ_MUST_USE NS_IMETHOD GetProxyURI(nsIURI **aProxyURI) override; \
  virtual void SetCorsPreflightParameters(const nsTArray<nsCString> & unsafeHeaders) override; \
  virtual void SetAltDataForChild(bool aIsForChild) override; \
  using nsIHttpChannelInternal::GetBlockAuthPrompt; \
  NS_IMETHOD GetBlockAuthPrompt(bool *aBlockAuthPrompt) override; \
  NS_IMETHOD SetBlockAuthPrompt(bool aBlockAuthPrompt) override; \
  MOZ_MUST_USE NS_IMETHOD GetIntegrityMetadata(nsAString& aIntegrityMetadata) override; \
  MOZ_MUST_USE NS_IMETHOD SetIntegrityMetadata(const nsAString& aIntegrityMetadata) override; \
  MOZ_MUST_USE NS_IMETHOD GetConnectionInfoHashKey(nsACString& aConnectionInfoHashKey) override; \
  using nsIHttpChannelInternal::GetLastRedirectFlags; \
  NS_IMETHOD GetLastRedirectFlags(uint32_t *aLastRedirectFlags) override; \
  NS_IMETHOD SetLastRedirectFlags(uint32_t aLastRedirectFlags) override; \
  NS_IMETHOD GetNavigationStartTimeStamp(mozilla::TimeStamp * aNavigationStartTimeStamp) override; \
  NS_IMETHOD SetNavigationStartTimeStamp(mozilla::TimeStamp aNavigationStartTimeStamp) override; \
  NS_IMETHOD CancelForTrackingProtection(void) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIHTTPCHANNELINTERNAL \
  MOZ_MUST_USE nsresult GetDocumentURI(nsIURI **aDocumentURI); \
  MOZ_MUST_USE nsresult SetDocumentURI(nsIURI *aDocumentURI); \
  MOZ_MUST_USE nsresult GetRequestVersion(uint32_t *major, uint32_t *minor); \
  MOZ_MUST_USE nsresult GetResponseVersion(uint32_t *major, uint32_t *minor); \
  MOZ_MUST_USE nsresult TakeAllSecurityMessages(nsCOMArray<nsISecurityConsoleMessage> & aMessages); \
  MOZ_MUST_USE nsresult SetCookie(const char * aCookieHeader); \
  MOZ_MUST_USE nsresult SetupFallbackChannel(const char * aFallbackKey); \
  MOZ_MUST_USE nsresult GetThirdPartyFlags(uint32_t *aThirdPartyFlags); \
  MOZ_MUST_USE nsresult SetThirdPartyFlags(uint32_t aThirdPartyFlags); \
  MOZ_MUST_USE nsresult GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie); \
  MOZ_MUST_USE nsresult SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie); \
  MOZ_MUST_USE nsresult GetCanceled(bool *aCanceled); \
  MOZ_MUST_USE nsresult GetChannelIsForDownload(bool *aChannelIsForDownload); \
  MOZ_MUST_USE nsresult SetChannelIsForDownload(bool aChannelIsForDownload); \
  MOZ_MUST_USE nsresult GetLocalAddress(nsACString& aLocalAddress); \
  MOZ_MUST_USE nsresult GetLocalPort(int32_t *aLocalPort); \
  MOZ_MUST_USE nsresult GetRemoteAddress(nsACString& aRemoteAddress); \
  MOZ_MUST_USE nsresult GetRemotePort(int32_t *aRemotePort); \
  MOZ_MUST_USE nsresult SetCacheKeysRedirectChain(nsTArray<nsCString> * cacheKeys); \
  MOZ_MUST_USE nsresult HTTPUpgrade(const nsACString& aProtocolName, nsIHttpUpgradeListener *aListener); \
  MOZ_MUST_USE nsresult GetAllowSpdy(bool *aAllowSpdy); \
  MOZ_MUST_USE nsresult SetAllowSpdy(bool aAllowSpdy); \
  MOZ_MUST_USE nsresult GetResponseTimeoutEnabled(bool *aResponseTimeoutEnabled); \
  MOZ_MUST_USE nsresult SetResponseTimeoutEnabled(bool aResponseTimeoutEnabled); \
  MOZ_MUST_USE nsresult GetInitialRwin(uint32_t *aInitialRwin); \
  MOZ_MUST_USE nsresult SetInitialRwin(uint32_t aInitialRwin); \
  MOZ_MUST_USE nsresult GetApiRedirectToURI(nsIURI **aApiRedirectToURI); \
  MOZ_MUST_USE nsresult GetAllowAltSvc(bool *aAllowAltSvc); \
  MOZ_MUST_USE nsresult SetAllowAltSvc(bool aAllowAltSvc); \
  MOZ_MUST_USE nsresult GetBeConservative(bool *aBeConservative); \
  MOZ_MUST_USE nsresult SetBeConservative(bool aBeConservative); \
  MOZ_MUST_USE nsresult GetTrr(bool *aTrr); \
  MOZ_MUST_USE nsresult SetTrr(bool aTrr); \
  MOZ_MUST_USE nsresult GetTlsFlags(uint32_t *aTlsFlags); \
  MOZ_MUST_USE nsresult SetTlsFlags(uint32_t aTlsFlags); \
  MOZ_MUST_USE nsresult GetLastModifiedTime(PRTime *aLastModifiedTime); \
  MOZ_MUST_USE nsresult GetCorsIncludeCredentials(bool *aCorsIncludeCredentials); \
  MOZ_MUST_USE nsresult SetCorsIncludeCredentials(bool aCorsIncludeCredentials); \
  MOZ_MUST_USE nsresult GetCorsMode(uint32_t *aCorsMode); \
  MOZ_MUST_USE nsresult SetCorsMode(uint32_t aCorsMode); \
  MOZ_MUST_USE nsresult GetRedirectMode(uint32_t *aRedirectMode); \
  MOZ_MUST_USE nsresult SetRedirectMode(uint32_t aRedirectMode); \
  MOZ_MUST_USE nsresult GetFetchCacheMode(uint32_t *aFetchCacheMode); \
  MOZ_MUST_USE nsresult SetFetchCacheMode(uint32_t aFetchCacheMode); \
  MOZ_MUST_USE nsresult GetTopWindowURI(nsIURI **aTopWindowURI); \
  MOZ_MUST_USE nsresult SetTopWindowURIIfUnknown(nsIURI *topWindowURI); \
  MOZ_MUST_USE nsresult GetProxyURI(nsIURI **aProxyURI); \
  void SetCorsPreflightParameters(const nsTArray<nsCString> & unsafeHeaders); \
  void SetAltDataForChild(bool aIsForChild); \
  using nsIHttpChannelInternal::GetBlockAuthPrompt; \
  nsresult GetBlockAuthPrompt(bool *aBlockAuthPrompt); \
  nsresult SetBlockAuthPrompt(bool aBlockAuthPrompt); \
  MOZ_MUST_USE nsresult GetIntegrityMetadata(nsAString& aIntegrityMetadata); \
  MOZ_MUST_USE nsresult SetIntegrityMetadata(const nsAString& aIntegrityMetadata); \
  MOZ_MUST_USE nsresult GetConnectionInfoHashKey(nsACString& aConnectionInfoHashKey); \
  using nsIHttpChannelInternal::GetLastRedirectFlags; \
  nsresult GetLastRedirectFlags(uint32_t *aLastRedirectFlags); \
  nsresult SetLastRedirectFlags(uint32_t aLastRedirectFlags); \
  nsresult GetNavigationStartTimeStamp(mozilla::TimeStamp * aNavigationStartTimeStamp); \
  nsresult SetNavigationStartTimeStamp(mozilla::TimeStamp aNavigationStartTimeStamp); \
  nsresult CancelForTrackingProtection(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIHTTPCHANNELINTERNAL(_to) \
  MOZ_MUST_USE NS_IMETHOD GetDocumentURI(nsIURI **aDocumentURI) override { return _to GetDocumentURI(aDocumentURI); } \
  MOZ_MUST_USE NS_IMETHOD SetDocumentURI(nsIURI *aDocumentURI) override { return _to SetDocumentURI(aDocumentURI); } \
  MOZ_MUST_USE NS_IMETHOD GetRequestVersion(uint32_t *major, uint32_t *minor) override { return _to GetRequestVersion(major, minor); } \
  MOZ_MUST_USE NS_IMETHOD GetResponseVersion(uint32_t *major, uint32_t *minor) override { return _to GetResponseVersion(major, minor); } \
  MOZ_MUST_USE NS_IMETHOD TakeAllSecurityMessages(nsCOMArray<nsISecurityConsoleMessage> & aMessages) override { return _to TakeAllSecurityMessages(aMessages); } \
  MOZ_MUST_USE NS_IMETHOD SetCookie(const char * aCookieHeader) override { return _to SetCookie(aCookieHeader); } \
  MOZ_MUST_USE NS_IMETHOD SetupFallbackChannel(const char * aFallbackKey) override { return _to SetupFallbackChannel(aFallbackKey); } \
  MOZ_MUST_USE NS_IMETHOD GetThirdPartyFlags(uint32_t *aThirdPartyFlags) override { return _to GetThirdPartyFlags(aThirdPartyFlags); } \
  MOZ_MUST_USE NS_IMETHOD SetThirdPartyFlags(uint32_t aThirdPartyFlags) override { return _to SetThirdPartyFlags(aThirdPartyFlags); } \
  MOZ_MUST_USE NS_IMETHOD GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie) override { return _to GetForceAllowThirdPartyCookie(aForceAllowThirdPartyCookie); } \
  MOZ_MUST_USE NS_IMETHOD SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie) override { return _to SetForceAllowThirdPartyCookie(aForceAllowThirdPartyCookie); } \
  MOZ_MUST_USE NS_IMETHOD GetCanceled(bool *aCanceled) override { return _to GetCanceled(aCanceled); } \
  MOZ_MUST_USE NS_IMETHOD GetChannelIsForDownload(bool *aChannelIsForDownload) override { return _to GetChannelIsForDownload(aChannelIsForDownload); } \
  MOZ_MUST_USE NS_IMETHOD SetChannelIsForDownload(bool aChannelIsForDownload) override { return _to SetChannelIsForDownload(aChannelIsForDownload); } \
  MOZ_MUST_USE NS_IMETHOD GetLocalAddress(nsACString& aLocalAddress) override { return _to GetLocalAddress(aLocalAddress); } \
  MOZ_MUST_USE NS_IMETHOD GetLocalPort(int32_t *aLocalPort) override { return _to GetLocalPort(aLocalPort); } \
  MOZ_MUST_USE NS_IMETHOD GetRemoteAddress(nsACString& aRemoteAddress) override { return _to GetRemoteAddress(aRemoteAddress); } \
  MOZ_MUST_USE NS_IMETHOD GetRemotePort(int32_t *aRemotePort) override { return _to GetRemotePort(aRemotePort); } \
  MOZ_MUST_USE NS_IMETHOD SetCacheKeysRedirectChain(nsTArray<nsCString> * cacheKeys) override { return _to SetCacheKeysRedirectChain(cacheKeys); } \
  MOZ_MUST_USE NS_IMETHOD HTTPUpgrade(const nsACString& aProtocolName, nsIHttpUpgradeListener *aListener) override { return _to HTTPUpgrade(aProtocolName, aListener); } \
  MOZ_MUST_USE NS_IMETHOD GetAllowSpdy(bool *aAllowSpdy) override { return _to GetAllowSpdy(aAllowSpdy); } \
  MOZ_MUST_USE NS_IMETHOD SetAllowSpdy(bool aAllowSpdy) override { return _to SetAllowSpdy(aAllowSpdy); } \
  MOZ_MUST_USE NS_IMETHOD GetResponseTimeoutEnabled(bool *aResponseTimeoutEnabled) override { return _to GetResponseTimeoutEnabled(aResponseTimeoutEnabled); } \
  MOZ_MUST_USE NS_IMETHOD SetResponseTimeoutEnabled(bool aResponseTimeoutEnabled) override { return _to SetResponseTimeoutEnabled(aResponseTimeoutEnabled); } \
  MOZ_MUST_USE NS_IMETHOD GetInitialRwin(uint32_t *aInitialRwin) override { return _to GetInitialRwin(aInitialRwin); } \
  MOZ_MUST_USE NS_IMETHOD SetInitialRwin(uint32_t aInitialRwin) override { return _to SetInitialRwin(aInitialRwin); } \
  MOZ_MUST_USE NS_IMETHOD GetApiRedirectToURI(nsIURI **aApiRedirectToURI) override { return _to GetApiRedirectToURI(aApiRedirectToURI); } \
  MOZ_MUST_USE NS_IMETHOD GetAllowAltSvc(bool *aAllowAltSvc) override { return _to GetAllowAltSvc(aAllowAltSvc); } \
  MOZ_MUST_USE NS_IMETHOD SetAllowAltSvc(bool aAllowAltSvc) override { return _to SetAllowAltSvc(aAllowAltSvc); } \
  MOZ_MUST_USE NS_IMETHOD GetBeConservative(bool *aBeConservative) override { return _to GetBeConservative(aBeConservative); } \
  MOZ_MUST_USE NS_IMETHOD SetBeConservative(bool aBeConservative) override { return _to SetBeConservative(aBeConservative); } \
  MOZ_MUST_USE NS_IMETHOD GetTrr(bool *aTrr) override { return _to GetTrr(aTrr); } \
  MOZ_MUST_USE NS_IMETHOD SetTrr(bool aTrr) override { return _to SetTrr(aTrr); } \
  MOZ_MUST_USE NS_IMETHOD GetTlsFlags(uint32_t *aTlsFlags) override { return _to GetTlsFlags(aTlsFlags); } \
  MOZ_MUST_USE NS_IMETHOD SetTlsFlags(uint32_t aTlsFlags) override { return _to SetTlsFlags(aTlsFlags); } \
  MOZ_MUST_USE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) override { return _to GetLastModifiedTime(aLastModifiedTime); } \
  MOZ_MUST_USE NS_IMETHOD GetCorsIncludeCredentials(bool *aCorsIncludeCredentials) override { return _to GetCorsIncludeCredentials(aCorsIncludeCredentials); } \
  MOZ_MUST_USE NS_IMETHOD SetCorsIncludeCredentials(bool aCorsIncludeCredentials) override { return _to SetCorsIncludeCredentials(aCorsIncludeCredentials); } \
  MOZ_MUST_USE NS_IMETHOD GetCorsMode(uint32_t *aCorsMode) override { return _to GetCorsMode(aCorsMode); } \
  MOZ_MUST_USE NS_IMETHOD SetCorsMode(uint32_t aCorsMode) override { return _to SetCorsMode(aCorsMode); } \
  MOZ_MUST_USE NS_IMETHOD GetRedirectMode(uint32_t *aRedirectMode) override { return _to GetRedirectMode(aRedirectMode); } \
  MOZ_MUST_USE NS_IMETHOD SetRedirectMode(uint32_t aRedirectMode) override { return _to SetRedirectMode(aRedirectMode); } \
  MOZ_MUST_USE NS_IMETHOD GetFetchCacheMode(uint32_t *aFetchCacheMode) override { return _to GetFetchCacheMode(aFetchCacheMode); } \
  MOZ_MUST_USE NS_IMETHOD SetFetchCacheMode(uint32_t aFetchCacheMode) override { return _to SetFetchCacheMode(aFetchCacheMode); } \
  MOZ_MUST_USE NS_IMETHOD GetTopWindowURI(nsIURI **aTopWindowURI) override { return _to GetTopWindowURI(aTopWindowURI); } \
  MOZ_MUST_USE NS_IMETHOD SetTopWindowURIIfUnknown(nsIURI *topWindowURI) override { return _to SetTopWindowURIIfUnknown(topWindowURI); } \
  MOZ_MUST_USE NS_IMETHOD GetProxyURI(nsIURI **aProxyURI) override { return _to GetProxyURI(aProxyURI); } \
  virtual void SetCorsPreflightParameters(const nsTArray<nsCString> & unsafeHeaders) override { return _to SetCorsPreflightParameters(unsafeHeaders); } \
  virtual void SetAltDataForChild(bool aIsForChild) override { return _to SetAltDataForChild(aIsForChild); } \
  using nsIHttpChannelInternal::GetBlockAuthPrompt; \
  NS_IMETHOD GetBlockAuthPrompt(bool *aBlockAuthPrompt) override { return _to GetBlockAuthPrompt(aBlockAuthPrompt); } \
  NS_IMETHOD SetBlockAuthPrompt(bool aBlockAuthPrompt) override { return _to SetBlockAuthPrompt(aBlockAuthPrompt); } \
  MOZ_MUST_USE NS_IMETHOD GetIntegrityMetadata(nsAString& aIntegrityMetadata) override { return _to GetIntegrityMetadata(aIntegrityMetadata); } \
  MOZ_MUST_USE NS_IMETHOD SetIntegrityMetadata(const nsAString& aIntegrityMetadata) override { return _to SetIntegrityMetadata(aIntegrityMetadata); } \
  MOZ_MUST_USE NS_IMETHOD GetConnectionInfoHashKey(nsACString& aConnectionInfoHashKey) override { return _to GetConnectionInfoHashKey(aConnectionInfoHashKey); } \
  using nsIHttpChannelInternal::GetLastRedirectFlags; \
  NS_IMETHOD GetLastRedirectFlags(uint32_t *aLastRedirectFlags) override { return _to GetLastRedirectFlags(aLastRedirectFlags); } \
  NS_IMETHOD SetLastRedirectFlags(uint32_t aLastRedirectFlags) override { return _to SetLastRedirectFlags(aLastRedirectFlags); } \
  NS_IMETHOD GetNavigationStartTimeStamp(mozilla::TimeStamp * aNavigationStartTimeStamp) override { return _to GetNavigationStartTimeStamp(aNavigationStartTimeStamp); } \
  NS_IMETHOD SetNavigationStartTimeStamp(mozilla::TimeStamp aNavigationStartTimeStamp) override { return _to SetNavigationStartTimeStamp(aNavigationStartTimeStamp); } \
  NS_IMETHOD CancelForTrackingProtection(void) override { return _to CancelForTrackingProtection(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIHTTPCHANNELINTERNAL(_to) \
  MOZ_MUST_USE NS_IMETHOD GetDocumentURI(nsIURI **aDocumentURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentURI(aDocumentURI); } \
  MOZ_MUST_USE NS_IMETHOD SetDocumentURI(nsIURI *aDocumentURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocumentURI(aDocumentURI); } \
  MOZ_MUST_USE NS_IMETHOD GetRequestVersion(uint32_t *major, uint32_t *minor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestVersion(major, minor); } \
  MOZ_MUST_USE NS_IMETHOD GetResponseVersion(uint32_t *major, uint32_t *minor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseVersion(major, minor); } \
  MOZ_MUST_USE NS_IMETHOD TakeAllSecurityMessages(nsCOMArray<nsISecurityConsoleMessage> & aMessages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TakeAllSecurityMessages(aMessages); } \
  MOZ_MUST_USE NS_IMETHOD SetCookie(const char * aCookieHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCookie(aCookieHeader); } \
  MOZ_MUST_USE NS_IMETHOD SetupFallbackChannel(const char * aFallbackKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetupFallbackChannel(aFallbackKey); } \
  MOZ_MUST_USE NS_IMETHOD GetThirdPartyFlags(uint32_t *aThirdPartyFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThirdPartyFlags(aThirdPartyFlags); } \
  MOZ_MUST_USE NS_IMETHOD SetThirdPartyFlags(uint32_t aThirdPartyFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThirdPartyFlags(aThirdPartyFlags); } \
  MOZ_MUST_USE NS_IMETHOD GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForceAllowThirdPartyCookie(aForceAllowThirdPartyCookie); } \
  MOZ_MUST_USE NS_IMETHOD SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetForceAllowThirdPartyCookie(aForceAllowThirdPartyCookie); } \
  MOZ_MUST_USE NS_IMETHOD GetCanceled(bool *aCanceled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanceled(aCanceled); } \
  MOZ_MUST_USE NS_IMETHOD GetChannelIsForDownload(bool *aChannelIsForDownload) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannelIsForDownload(aChannelIsForDownload); } \
  MOZ_MUST_USE NS_IMETHOD SetChannelIsForDownload(bool aChannelIsForDownload) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChannelIsForDownload(aChannelIsForDownload); } \
  MOZ_MUST_USE NS_IMETHOD GetLocalAddress(nsACString& aLocalAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalAddress(aLocalAddress); } \
  MOZ_MUST_USE NS_IMETHOD GetLocalPort(int32_t *aLocalPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalPort(aLocalPort); } \
  MOZ_MUST_USE NS_IMETHOD GetRemoteAddress(nsACString& aRemoteAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRemoteAddress(aRemoteAddress); } \
  MOZ_MUST_USE NS_IMETHOD GetRemotePort(int32_t *aRemotePort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRemotePort(aRemotePort); } \
  MOZ_MUST_USE NS_IMETHOD SetCacheKeysRedirectChain(nsTArray<nsCString> * cacheKeys) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCacheKeysRedirectChain(cacheKeys); } \
  MOZ_MUST_USE NS_IMETHOD HTTPUpgrade(const nsACString& aProtocolName, nsIHttpUpgradeListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HTTPUpgrade(aProtocolName, aListener); } \
  MOZ_MUST_USE NS_IMETHOD GetAllowSpdy(bool *aAllowSpdy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowSpdy(aAllowSpdy); } \
  MOZ_MUST_USE NS_IMETHOD SetAllowSpdy(bool aAllowSpdy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowSpdy(aAllowSpdy); } \
  MOZ_MUST_USE NS_IMETHOD GetResponseTimeoutEnabled(bool *aResponseTimeoutEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseTimeoutEnabled(aResponseTimeoutEnabled); } \
  MOZ_MUST_USE NS_IMETHOD SetResponseTimeoutEnabled(bool aResponseTimeoutEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResponseTimeoutEnabled(aResponseTimeoutEnabled); } \
  MOZ_MUST_USE NS_IMETHOD GetInitialRwin(uint32_t *aInitialRwin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInitialRwin(aInitialRwin); } \
  MOZ_MUST_USE NS_IMETHOD SetInitialRwin(uint32_t aInitialRwin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInitialRwin(aInitialRwin); } \
  MOZ_MUST_USE NS_IMETHOD GetApiRedirectToURI(nsIURI **aApiRedirectToURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApiRedirectToURI(aApiRedirectToURI); } \
  MOZ_MUST_USE NS_IMETHOD GetAllowAltSvc(bool *aAllowAltSvc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowAltSvc(aAllowAltSvc); } \
  MOZ_MUST_USE NS_IMETHOD SetAllowAltSvc(bool aAllowAltSvc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowAltSvc(aAllowAltSvc); } \
  MOZ_MUST_USE NS_IMETHOD GetBeConservative(bool *aBeConservative) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBeConservative(aBeConservative); } \
  MOZ_MUST_USE NS_IMETHOD SetBeConservative(bool aBeConservative) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBeConservative(aBeConservative); } \
  MOZ_MUST_USE NS_IMETHOD GetTrr(bool *aTrr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTrr(aTrr); } \
  MOZ_MUST_USE NS_IMETHOD SetTrr(bool aTrr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTrr(aTrr); } \
  MOZ_MUST_USE NS_IMETHOD GetTlsFlags(uint32_t *aTlsFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTlsFlags(aTlsFlags); } \
  MOZ_MUST_USE NS_IMETHOD SetTlsFlags(uint32_t aTlsFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTlsFlags(aTlsFlags); } \
  MOZ_MUST_USE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModifiedTime(aLastModifiedTime); } \
  MOZ_MUST_USE NS_IMETHOD GetCorsIncludeCredentials(bool *aCorsIncludeCredentials) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCorsIncludeCredentials(aCorsIncludeCredentials); } \
  MOZ_MUST_USE NS_IMETHOD SetCorsIncludeCredentials(bool aCorsIncludeCredentials) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCorsIncludeCredentials(aCorsIncludeCredentials); } \
  MOZ_MUST_USE NS_IMETHOD GetCorsMode(uint32_t *aCorsMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCorsMode(aCorsMode); } \
  MOZ_MUST_USE NS_IMETHOD SetCorsMode(uint32_t aCorsMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCorsMode(aCorsMode); } \
  MOZ_MUST_USE NS_IMETHOD GetRedirectMode(uint32_t *aRedirectMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRedirectMode(aRedirectMode); } \
  MOZ_MUST_USE NS_IMETHOD SetRedirectMode(uint32_t aRedirectMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRedirectMode(aRedirectMode); } \
  MOZ_MUST_USE NS_IMETHOD GetFetchCacheMode(uint32_t *aFetchCacheMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFetchCacheMode(aFetchCacheMode); } \
  MOZ_MUST_USE NS_IMETHOD SetFetchCacheMode(uint32_t aFetchCacheMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFetchCacheMode(aFetchCacheMode); } \
  MOZ_MUST_USE NS_IMETHOD GetTopWindowURI(nsIURI **aTopWindowURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTopWindowURI(aTopWindowURI); } \
  MOZ_MUST_USE NS_IMETHOD SetTopWindowURIIfUnknown(nsIURI *topWindowURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTopWindowURIIfUnknown(topWindowURI); } \
  MOZ_MUST_USE NS_IMETHOD GetProxyURI(nsIURI **aProxyURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProxyURI(aProxyURI); } \
  virtual void SetCorsPreflightParameters(const nsTArray<nsCString> & unsafeHeaders) override; \
  virtual void SetAltDataForChild(bool aIsForChild) override; \
  NS_IMETHOD GetBlockAuthPrompt(bool *aBlockAuthPrompt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBlockAuthPrompt(aBlockAuthPrompt); } \
  NS_IMETHOD SetBlockAuthPrompt(bool aBlockAuthPrompt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBlockAuthPrompt(aBlockAuthPrompt); } \
  MOZ_MUST_USE NS_IMETHOD GetIntegrityMetadata(nsAString& aIntegrityMetadata) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIntegrityMetadata(aIntegrityMetadata); } \
  MOZ_MUST_USE NS_IMETHOD SetIntegrityMetadata(const nsAString& aIntegrityMetadata) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIntegrityMetadata(aIntegrityMetadata); } \
  MOZ_MUST_USE NS_IMETHOD GetConnectionInfoHashKey(nsACString& aConnectionInfoHashKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConnectionInfoHashKey(aConnectionInfoHashKey); } \
  NS_IMETHOD GetLastRedirectFlags(uint32_t *aLastRedirectFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastRedirectFlags(aLastRedirectFlags); } \
  NS_IMETHOD SetLastRedirectFlags(uint32_t aLastRedirectFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastRedirectFlags(aLastRedirectFlags); } \
  NS_IMETHOD GetNavigationStartTimeStamp(mozilla::TimeStamp * aNavigationStartTimeStamp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNavigationStartTimeStamp(aNavigationStartTimeStamp); } \
  NS_IMETHOD SetNavigationStartTimeStamp(mozilla::TimeStamp aNavigationStartTimeStamp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNavigationStartTimeStamp(aNavigationStartTimeStamp); } \
  NS_IMETHOD CancelForTrackingProtection(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelForTrackingProtection(); } 


#endif /* __gen_nsIHttpChannelInternal_h__ */