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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/netwerk/protocol/http/nsIHttpChannel.idl
 */

#ifndef __gen_nsIHttpChannel_h__
#define __gen_nsIHttpChannel_h__


#ifndef __gen_nsIChannel_h__
#include "nsIChannel.h"
#endif

#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
class nsIHttpHeaderVisitor; /* forward declaration */


/* starting interface:    nsIHttpChannel */
#define NS_IHTTPCHANNEL_IID_STR "c5a4a073-4539-49c7-a3f2-cec3f0619c6c"

#define NS_IHTTPCHANNEL_IID \
  {0xc5a4a073, 0x4539, 0x49c7, \
    { 0xa3, 0xf2, 0xce, 0xc3, 0xf0, 0x61, 0x9c, 0x6c }}

class NS_NO_VTABLE nsIHttpChannel : public nsIChannel {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPCHANNEL_IID)

  /* [must_use] attribute ACString requestMethod; */
  MOZ_MUST_USE NS_IMETHOD GetRequestMethod(nsACString& aRequestMethod) = 0;
  MOZ_MUST_USE NS_IMETHOD SetRequestMethod(const nsACString& aRequestMethod) = 0;

  /* [must_use] attribute nsIURI referrer; */
  MOZ_MUST_USE NS_IMETHOD GetReferrer(nsIURI **aReferrer) = 0;
  MOZ_MUST_USE NS_IMETHOD SetReferrer(nsIURI *aReferrer) = 0;

  enum {
    REFERRER_POLICY_UNSET = 0U,
    REFERRER_POLICY_NO_REFERRER_WHEN_DOWNGRADE = 1U,
    REFERRER_POLICY_NO_REFERRER = 2U,
    REFERRER_POLICY_ORIGIN = 3U,
    REFERRER_POLICY_ORIGIN_WHEN_XORIGIN = 4U,
    REFERRER_POLICY_UNSAFE_URL = 5U,
    REFERRER_POLICY_SAME_ORIGIN = 6U,
    REFERRER_POLICY_STRICT_ORIGIN = 7U,
    REFERRER_POLICY_STRICT_ORIGIN_WHEN_XORIGIN = 8U
  };

  /* [must_use] readonly attribute unsigned long referrerPolicy; */
  MOZ_MUST_USE NS_IMETHOD GetReferrerPolicy(uint32_t *aReferrerPolicy) = 0;

  /* [must_use] void setReferrerWithPolicy (in nsIURI referrer, in unsigned long referrerPolicy); */
  MOZ_MUST_USE NS_IMETHOD SetReferrerWithPolicy(nsIURI *referrer, uint32_t referrerPolicy) = 0;

  /* [must_use] readonly attribute ACString protocolVersion; */
  MOZ_MUST_USE NS_IMETHOD GetProtocolVersion(nsACString& aProtocolVersion) = 0;

  /* [must_use] readonly attribute uint64_t transferSize; */
  MOZ_MUST_USE NS_IMETHOD GetTransferSize(uint64_t *aTransferSize) = 0;

  /* [must_use] readonly attribute uint64_t decodedBodySize; */
  MOZ_MUST_USE NS_IMETHOD GetDecodedBodySize(uint64_t *aDecodedBodySize) = 0;

  /* [must_use] readonly attribute uint64_t encodedBodySize; */
  MOZ_MUST_USE NS_IMETHOD GetEncodedBodySize(uint64_t *aEncodedBodySize) = 0;

  /* [must_use] ACString getRequestHeader (in ACString aHeader); */
  MOZ_MUST_USE NS_IMETHOD GetRequestHeader(const nsACString& aHeader, nsACString& _retval) = 0;

  /* [must_use] void setRequestHeader (in ACString aHeader, in ACString aValue, in boolean aMerge); */
  MOZ_MUST_USE NS_IMETHOD SetRequestHeader(const nsACString& aHeader, const nsACString& aValue, bool aMerge) = 0;

  /* [must_use] void setEmptyRequestHeader (in ACString aHeader); */
  MOZ_MUST_USE NS_IMETHOD SetEmptyRequestHeader(const nsACString& aHeader) = 0;

  /* [must_use] void visitRequestHeaders (in nsIHttpHeaderVisitor aVisitor); */
  MOZ_MUST_USE NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor) = 0;

  /* [must_use] void visitNonDefaultRequestHeaders (in nsIHttpHeaderVisitor aVisitor); */
  MOZ_MUST_USE NS_IMETHOD VisitNonDefaultRequestHeaders(nsIHttpHeaderVisitor *aVisitor) = 0;

  /* [must_use] attribute boolean allowPipelining; */
  MOZ_MUST_USE NS_IMETHOD GetAllowPipelining(bool *aAllowPipelining) = 0;
  MOZ_MUST_USE NS_IMETHOD SetAllowPipelining(bool aAllowPipelining) = 0;

  /* [must_use] attribute boolean allowSTS; */
  MOZ_MUST_USE NS_IMETHOD GetAllowSTS(bool *aAllowSTS) = 0;
  MOZ_MUST_USE NS_IMETHOD SetAllowSTS(bool aAllowSTS) = 0;

  /* [must_use] attribute unsigned long redirectionLimit; */
  MOZ_MUST_USE NS_IMETHOD GetRedirectionLimit(uint32_t *aRedirectionLimit) = 0;
  MOZ_MUST_USE NS_IMETHOD SetRedirectionLimit(uint32_t aRedirectionLimit) = 0;

  /* [must_use] readonly attribute unsigned long responseStatus; */
  MOZ_MUST_USE NS_IMETHOD GetResponseStatus(uint32_t *aResponseStatus) = 0;

  /* [must_use] readonly attribute ACString responseStatusText; */
  MOZ_MUST_USE NS_IMETHOD GetResponseStatusText(nsACString& aResponseStatusText) = 0;

  /* [must_use] readonly attribute boolean requestSucceeded; */
  MOZ_MUST_USE NS_IMETHOD GetRequestSucceeded(bool *aRequestSucceeded) = 0;

  /* [must_use] attribute boolean isMainDocumentChannel; */
  MOZ_MUST_USE NS_IMETHOD GetIsMainDocumentChannel(bool *aIsMainDocumentChannel) = 0;
  MOZ_MUST_USE NS_IMETHOD SetIsMainDocumentChannel(bool aIsMainDocumentChannel) = 0;

  /* [must_use] ACString getResponseHeader (in ACString header); */
  MOZ_MUST_USE NS_IMETHOD GetResponseHeader(const nsACString& header, nsACString& _retval) = 0;

  /* [must_use] void setResponseHeader (in ACString header, in ACString value, in boolean merge); */
  MOZ_MUST_USE NS_IMETHOD SetResponseHeader(const nsACString& header, const nsACString& value, bool merge) = 0;

  /* [must_use] void visitResponseHeaders (in nsIHttpHeaderVisitor aVisitor); */
  MOZ_MUST_USE NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor) = 0;

  /* [must_use] void getOriginalResponseHeader (in ACString aHeader, in nsIHttpHeaderVisitor aVisitor); */
  MOZ_MUST_USE NS_IMETHOD GetOriginalResponseHeader(const nsACString& aHeader, nsIHttpHeaderVisitor *aVisitor) = 0;

  /* [must_use] void visitOriginalResponseHeaders (in nsIHttpHeaderVisitor aVisitor); */
  MOZ_MUST_USE NS_IMETHOD VisitOriginalResponseHeaders(nsIHttpHeaderVisitor *aVisitor) = 0;

  /* [must_use] boolean isNoStoreResponse (); */
  MOZ_MUST_USE NS_IMETHOD IsNoStoreResponse(bool *_retval) = 0;

  /* [must_use] boolean isNoCacheResponse (); */
  MOZ_MUST_USE NS_IMETHOD IsNoCacheResponse(bool *_retval) = 0;

  /* [must_use] boolean isPrivateResponse (); */
  MOZ_MUST_USE NS_IMETHOD IsPrivateResponse(bool *_retval) = 0;

  /* [must_use] void redirectTo (in nsIURI aTargetURI); */
  MOZ_MUST_USE NS_IMETHOD RedirectTo(nsIURI *aTargetURI) = 0;

  /* [must_use] void upgradeToSecure (); */
  MOZ_MUST_USE NS_IMETHOD UpgradeToSecure(void) = 0;

  /* [must_use,noscript] attribute uint64_t requestContextID; */
  MOZ_MUST_USE NS_IMETHOD GetRequestContextID(uint64_t *aRequestContextID) = 0;
  MOZ_MUST_USE NS_IMETHOD SetRequestContextID(uint64_t aRequestContextID) = 0;

  /* [must_use] attribute uint64_t channelId; */
  MOZ_MUST_USE NS_IMETHOD GetChannelId(uint64_t *aChannelId) = 0;
  MOZ_MUST_USE NS_IMETHOD SetChannelId(uint64_t aChannelId) = 0;

  /* [must_use] attribute uint64_t topLevelContentWindowId; */
  MOZ_MUST_USE NS_IMETHOD GetTopLevelContentWindowId(uint64_t *aTopLevelContentWindowId) = 0;
  MOZ_MUST_USE NS_IMETHOD SetTopLevelContentWindowId(uint64_t aTopLevelContentWindowId) = 0;

  /* [infallible] readonly attribute boolean isTrackingResource; */
  NS_IMETHOD GetIsTrackingResource(bool *aIsTrackingResource) = 0;
  inline bool GetIsTrackingResource()
  {
    bool result;
    mozilla::DebugOnly<nsresult> rv = GetIsTrackingResource(&result);
    MOZ_ASSERT(NS_SUCCEEDED(rv));
    return result;
  }

  /* [infallible] readonly attribute boolean isThirdPartyTrackingResource; */
  NS_IMETHOD GetIsThirdPartyTrackingResource(bool *aIsThirdPartyTrackingResource) = 0;
  inline bool GetIsThirdPartyTrackingResource()
  {
    bool result;
    mozilla::DebugOnly<nsresult> rv = GetIsThirdPartyTrackingResource(&result);
    MOZ_ASSERT(NS_SUCCEEDED(rv));
    return result;
  }

  /* [noscript] void overrideTrackingFlagsForDocumentCookieAccessor (in nsIHttpChannel aDocumentChannel); */
  NS_IMETHOD OverrideTrackingFlagsForDocumentCookieAccessor(nsIHttpChannel *aDocumentChannel) = 0;

  /* [must_use] attribute uint64_t topLevelOuterContentWindowId; */
  MOZ_MUST_USE NS_IMETHOD GetTopLevelOuterContentWindowId(uint64_t *aTopLevelOuterContentWindowId) = 0;
  MOZ_MUST_USE NS_IMETHOD SetTopLevelOuterContentWindowId(uint64_t aTopLevelOuterContentWindowId) = 0;

  /* void logBlockedCORSRequest (in AString aMessage, in ACString aCategory); */
  NS_IMETHOD LogBlockedCORSRequest(const nsAString& aMessage, const nsACString& aCategory) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpChannel, NS_IHTTPCHANNEL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIHTTPCHANNEL \
  MOZ_MUST_USE NS_IMETHOD GetRequestMethod(nsACString& aRequestMethod) override; \
  MOZ_MUST_USE NS_IMETHOD SetRequestMethod(const nsACString& aRequestMethod) override; \
  MOZ_MUST_USE NS_IMETHOD GetReferrer(nsIURI **aReferrer) override; \
  MOZ_MUST_USE NS_IMETHOD SetReferrer(nsIURI *aReferrer) override; \
  MOZ_MUST_USE NS_IMETHOD GetReferrerPolicy(uint32_t *aReferrerPolicy) override; \
  MOZ_MUST_USE NS_IMETHOD SetReferrerWithPolicy(nsIURI *referrer, uint32_t referrerPolicy) override; \
  MOZ_MUST_USE NS_IMETHOD GetProtocolVersion(nsACString& aProtocolVersion) override; \
  MOZ_MUST_USE NS_IMETHOD GetTransferSize(uint64_t *aTransferSize) override; \
  MOZ_MUST_USE NS_IMETHOD GetDecodedBodySize(uint64_t *aDecodedBodySize) override; \
  MOZ_MUST_USE NS_IMETHOD GetEncodedBodySize(uint64_t *aEncodedBodySize) override; \
  MOZ_MUST_USE NS_IMETHOD GetRequestHeader(const nsACString& aHeader, nsACString& _retval) override; \
  MOZ_MUST_USE NS_IMETHOD SetRequestHeader(const nsACString& aHeader, const nsACString& aValue, bool aMerge) override; \
  MOZ_MUST_USE NS_IMETHOD SetEmptyRequestHeader(const nsACString& aHeader) override; \
  MOZ_MUST_USE NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor) override; \
  MOZ_MUST_USE NS_IMETHOD VisitNonDefaultRequestHeaders(nsIHttpHeaderVisitor *aVisitor) override; \
  MOZ_MUST_USE NS_IMETHOD GetAllowPipelining(bool *aAllowPipelining) override; \
  MOZ_MUST_USE NS_IMETHOD SetAllowPipelining(bool aAllowPipelining) override; \
  MOZ_MUST_USE NS_IMETHOD GetAllowSTS(bool *aAllowSTS) override; \
  MOZ_MUST_USE NS_IMETHOD SetAllowSTS(bool aAllowSTS) override; \
  MOZ_MUST_USE NS_IMETHOD GetRedirectionLimit(uint32_t *aRedirectionLimit) override; \
  MOZ_MUST_USE NS_IMETHOD SetRedirectionLimit(uint32_t aRedirectionLimit) override; \
  MOZ_MUST_USE NS_IMETHOD GetResponseStatus(uint32_t *aResponseStatus) override; \
  MOZ_MUST_USE NS_IMETHOD GetResponseStatusText(nsACString& aResponseStatusText) override; \
  MOZ_MUST_USE NS_IMETHOD GetRequestSucceeded(bool *aRequestSucceeded) override; \
  MOZ_MUST_USE NS_IMETHOD GetIsMainDocumentChannel(bool *aIsMainDocumentChannel) override; \
  MOZ_MUST_USE NS_IMETHOD SetIsMainDocumentChannel(bool aIsMainDocumentChannel) override; \
  MOZ_MUST_USE NS_IMETHOD GetResponseHeader(const nsACString& header, nsACString& _retval) override; \
  MOZ_MUST_USE NS_IMETHOD SetResponseHeader(const nsACString& header, const nsACString& value, bool merge) override; \
  MOZ_MUST_USE NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor) override; \
  MOZ_MUST_USE NS_IMETHOD GetOriginalResponseHeader(const nsACString& aHeader, nsIHttpHeaderVisitor *aVisitor) override; \
  MOZ_MUST_USE NS_IMETHOD VisitOriginalResponseHeaders(nsIHttpHeaderVisitor *aVisitor) override; \
  MOZ_MUST_USE NS_IMETHOD IsNoStoreResponse(bool *_retval) override; \
  MOZ_MUST_USE NS_IMETHOD IsNoCacheResponse(bool *_retval) override; \
  MOZ_MUST_USE NS_IMETHOD IsPrivateResponse(bool *_retval) override; \
  MOZ_MUST_USE NS_IMETHOD RedirectTo(nsIURI *aTargetURI) override; \
  MOZ_MUST_USE NS_IMETHOD UpgradeToSecure(void) override; \
  MOZ_MUST_USE NS_IMETHOD GetRequestContextID(uint64_t *aRequestContextID) override; \
  MOZ_MUST_USE NS_IMETHOD SetRequestContextID(uint64_t aRequestContextID) override; \
  MOZ_MUST_USE NS_IMETHOD GetChannelId(uint64_t *aChannelId) override; \
  MOZ_MUST_USE NS_IMETHOD SetChannelId(uint64_t aChannelId) override; \
  MOZ_MUST_USE NS_IMETHOD GetTopLevelContentWindowId(uint64_t *aTopLevelContentWindowId) override; \
  MOZ_MUST_USE NS_IMETHOD SetTopLevelContentWindowId(uint64_t aTopLevelContentWindowId) override; \
  using nsIHttpChannel::GetIsTrackingResource; \
  NS_IMETHOD GetIsTrackingResource(bool *aIsTrackingResource) override; \
  using nsIHttpChannel::GetIsThirdPartyTrackingResource; \
  NS_IMETHOD GetIsThirdPartyTrackingResource(bool *aIsThirdPartyTrackingResource) override; \
  NS_IMETHOD OverrideTrackingFlagsForDocumentCookieAccessor(nsIHttpChannel *aDocumentChannel) override; \
  MOZ_MUST_USE NS_IMETHOD GetTopLevelOuterContentWindowId(uint64_t *aTopLevelOuterContentWindowId) override; \
  MOZ_MUST_USE NS_IMETHOD SetTopLevelOuterContentWindowId(uint64_t aTopLevelOuterContentWindowId) override; \
  NS_IMETHOD LogBlockedCORSRequest(const nsAString& aMessage, const nsACString& aCategory) 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_NSIHTTPCHANNEL \
  MOZ_MUST_USE nsresult GetRequestMethod(nsACString& aRequestMethod); \
  MOZ_MUST_USE nsresult SetRequestMethod(const nsACString& aRequestMethod); \
  MOZ_MUST_USE nsresult GetReferrer(nsIURI **aReferrer); \
  MOZ_MUST_USE nsresult SetReferrer(nsIURI *aReferrer); \
  MOZ_MUST_USE nsresult GetReferrerPolicy(uint32_t *aReferrerPolicy); \
  MOZ_MUST_USE nsresult SetReferrerWithPolicy(nsIURI *referrer, uint32_t referrerPolicy); \
  MOZ_MUST_USE nsresult GetProtocolVersion(nsACString& aProtocolVersion); \
  MOZ_MUST_USE nsresult GetTransferSize(uint64_t *aTransferSize); \
  MOZ_MUST_USE nsresult GetDecodedBodySize(uint64_t *aDecodedBodySize); \
  MOZ_MUST_USE nsresult GetEncodedBodySize(uint64_t *aEncodedBodySize); \
  MOZ_MUST_USE nsresult GetRequestHeader(const nsACString& aHeader, nsACString& _retval); \
  MOZ_MUST_USE nsresult SetRequestHeader(const nsACString& aHeader, const nsACString& aValue, bool aMerge); \
  MOZ_MUST_USE nsresult SetEmptyRequestHeader(const nsACString& aHeader); \
  MOZ_MUST_USE nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor); \
  MOZ_MUST_USE nsresult VisitNonDefaultRequestHeaders(nsIHttpHeaderVisitor *aVisitor); \
  MOZ_MUST_USE nsresult GetAllowPipelining(bool *aAllowPipelining); \
  MOZ_MUST_USE nsresult SetAllowPipelining(bool aAllowPipelining); \
  MOZ_MUST_USE nsresult GetAllowSTS(bool *aAllowSTS); \
  MOZ_MUST_USE nsresult SetAllowSTS(bool aAllowSTS); \
  MOZ_MUST_USE nsresult GetRedirectionLimit(uint32_t *aRedirectionLimit); \
  MOZ_MUST_USE nsresult SetRedirectionLimit(uint32_t aRedirectionLimit); \
  MOZ_MUST_USE nsresult GetResponseStatus(uint32_t *aResponseStatus); \
  MOZ_MUST_USE nsresult GetResponseStatusText(nsACString& aResponseStatusText); \
  MOZ_MUST_USE nsresult GetRequestSucceeded(bool *aRequestSucceeded); \
  MOZ_MUST_USE nsresult GetIsMainDocumentChannel(bool *aIsMainDocumentChannel); \
  MOZ_MUST_USE nsresult SetIsMainDocumentChannel(bool aIsMainDocumentChannel); \
  MOZ_MUST_USE nsresult GetResponseHeader(const nsACString& header, nsACString& _retval); \
  MOZ_MUST_USE nsresult SetResponseHeader(const nsACString& header, const nsACString& value, bool merge); \
  MOZ_MUST_USE nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor); \
  MOZ_MUST_USE nsresult GetOriginalResponseHeader(const nsACString& aHeader, nsIHttpHeaderVisitor *aVisitor); \
  MOZ_MUST_USE nsresult VisitOriginalResponseHeaders(nsIHttpHeaderVisitor *aVisitor); \
  MOZ_MUST_USE nsresult IsNoStoreResponse(bool *_retval); \
  MOZ_MUST_USE nsresult IsNoCacheResponse(bool *_retval); \
  MOZ_MUST_USE nsresult IsPrivateResponse(bool *_retval); \
  MOZ_MUST_USE nsresult RedirectTo(nsIURI *aTargetURI); \
  MOZ_MUST_USE nsresult UpgradeToSecure(void); \
  MOZ_MUST_USE nsresult GetRequestContextID(uint64_t *aRequestContextID); \
  MOZ_MUST_USE nsresult SetRequestContextID(uint64_t aRequestContextID); \
  MOZ_MUST_USE nsresult GetChannelId(uint64_t *aChannelId); \
  MOZ_MUST_USE nsresult SetChannelId(uint64_t aChannelId); \
  MOZ_MUST_USE nsresult GetTopLevelContentWindowId(uint64_t *aTopLevelContentWindowId); \
  MOZ_MUST_USE nsresult SetTopLevelContentWindowId(uint64_t aTopLevelContentWindowId); \
  using nsIHttpChannel::GetIsTrackingResource; \
  nsresult GetIsTrackingResource(bool *aIsTrackingResource); \
  using nsIHttpChannel::GetIsThirdPartyTrackingResource; \
  nsresult GetIsThirdPartyTrackingResource(bool *aIsThirdPartyTrackingResource); \
  nsresult OverrideTrackingFlagsForDocumentCookieAccessor(nsIHttpChannel *aDocumentChannel); \
  MOZ_MUST_USE nsresult GetTopLevelOuterContentWindowId(uint64_t *aTopLevelOuterContentWindowId); \
  MOZ_MUST_USE nsresult SetTopLevelOuterContentWindowId(uint64_t aTopLevelOuterContentWindowId); \
  nsresult LogBlockedCORSRequest(const nsAString& aMessage, const nsACString& aCategory); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIHTTPCHANNEL(_to) \
  MOZ_MUST_USE NS_IMETHOD GetRequestMethod(nsACString& aRequestMethod) override { return _to GetRequestMethod(aRequestMethod); } \
  MOZ_MUST_USE NS_IMETHOD SetRequestMethod(const nsACString& aRequestMethod) override { return _to SetRequestMethod(aRequestMethod); } \
  MOZ_MUST_USE NS_IMETHOD GetReferrer(nsIURI **aReferrer) override { return _to GetReferrer(aReferrer); } \
  MOZ_MUST_USE NS_IMETHOD SetReferrer(nsIURI *aReferrer) override { return _to SetReferrer(aReferrer); } \
  MOZ_MUST_USE NS_IMETHOD GetReferrerPolicy(uint32_t *aReferrerPolicy) override { return _to GetReferrerPolicy(aReferrerPolicy); } \
  MOZ_MUST_USE NS_IMETHOD SetReferrerWithPolicy(nsIURI *referrer, uint32_t referrerPolicy) override { return _to SetReferrerWithPolicy(referrer, referrerPolicy); } \
  MOZ_MUST_USE NS_IMETHOD GetProtocolVersion(nsACString& aProtocolVersion) override { return _to GetProtocolVersion(aProtocolVersion); } \
  MOZ_MUST_USE NS_IMETHOD GetTransferSize(uint64_t *aTransferSize) override { return _to GetTransferSize(aTransferSize); } \
  MOZ_MUST_USE NS_IMETHOD GetDecodedBodySize(uint64_t *aDecodedBodySize) override { return _to GetDecodedBodySize(aDecodedBodySize); } \
  MOZ_MUST_USE NS_IMETHOD GetEncodedBodySize(uint64_t *aEncodedBodySize) override { return _to GetEncodedBodySize(aEncodedBodySize); } \
  MOZ_MUST_USE NS_IMETHOD GetRequestHeader(const nsACString& aHeader, nsACString& _retval) override { return _to GetRequestHeader(aHeader, _retval); } \
  MOZ_MUST_USE NS_IMETHOD SetRequestHeader(const nsACString& aHeader, const nsACString& aValue, bool aMerge) override { return _to SetRequestHeader(aHeader, aValue, aMerge); } \
  MOZ_MUST_USE NS_IMETHOD SetEmptyRequestHeader(const nsACString& aHeader) override { return _to SetEmptyRequestHeader(aHeader); } \
  MOZ_MUST_USE NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor) override { return _to VisitRequestHeaders(aVisitor); } \
  MOZ_MUST_USE NS_IMETHOD VisitNonDefaultRequestHeaders(nsIHttpHeaderVisitor *aVisitor) override { return _to VisitNonDefaultRequestHeaders(aVisitor); } \
  MOZ_MUST_USE NS_IMETHOD GetAllowPipelining(bool *aAllowPipelining) override { return _to GetAllowPipelining(aAllowPipelining); } \
  MOZ_MUST_USE NS_IMETHOD SetAllowPipelining(bool aAllowPipelining) override { return _to SetAllowPipelining(aAllowPipelining); } \
  MOZ_MUST_USE NS_IMETHOD GetAllowSTS(bool *aAllowSTS) override { return _to GetAllowSTS(aAllowSTS); } \
  MOZ_MUST_USE NS_IMETHOD SetAllowSTS(bool aAllowSTS) override { return _to SetAllowSTS(aAllowSTS); } \
  MOZ_MUST_USE NS_IMETHOD GetRedirectionLimit(uint32_t *aRedirectionLimit) override { return _to GetRedirectionLimit(aRedirectionLimit); } \
  MOZ_MUST_USE NS_IMETHOD SetRedirectionLimit(uint32_t aRedirectionLimit) override { return _to SetRedirectionLimit(aRedirectionLimit); } \
  MOZ_MUST_USE NS_IMETHOD GetResponseStatus(uint32_t *aResponseStatus) override { return _to GetResponseStatus(aResponseStatus); } \
  MOZ_MUST_USE NS_IMETHOD GetResponseStatusText(nsACString& aResponseStatusText) override { return _to GetResponseStatusText(aResponseStatusText); } \
  MOZ_MUST_USE NS_IMETHOD GetRequestSucceeded(bool *aRequestSucceeded) override { return _to GetRequestSucceeded(aRequestSucceeded); } \
  MOZ_MUST_USE NS_IMETHOD GetIsMainDocumentChannel(bool *aIsMainDocumentChannel) override { return _to GetIsMainDocumentChannel(aIsMainDocumentChannel); } \
  MOZ_MUST_USE NS_IMETHOD SetIsMainDocumentChannel(bool aIsMainDocumentChannel) override { return _to SetIsMainDocumentChannel(aIsMainDocumentChannel); } \
  MOZ_MUST_USE NS_IMETHOD GetResponseHeader(const nsACString& header, nsACString& _retval) override { return _to GetResponseHeader(header, _retval); } \
  MOZ_MUST_USE NS_IMETHOD SetResponseHeader(const nsACString& header, const nsACString& value, bool merge) override { return _to SetResponseHeader(header, value, merge); } \
  MOZ_MUST_USE NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor) override { return _to VisitResponseHeaders(aVisitor); } \
  MOZ_MUST_USE NS_IMETHOD GetOriginalResponseHeader(const nsACString& aHeader, nsIHttpHeaderVisitor *aVisitor) override { return _to GetOriginalResponseHeader(aHeader, aVisitor); } \
  MOZ_MUST_USE NS_IMETHOD VisitOriginalResponseHeaders(nsIHttpHeaderVisitor *aVisitor) override { return _to VisitOriginalResponseHeaders(aVisitor); } \
  MOZ_MUST_USE NS_IMETHOD IsNoStoreResponse(bool *_retval) override { return _to IsNoStoreResponse(_retval); } \
  MOZ_MUST_USE NS_IMETHOD IsNoCacheResponse(bool *_retval) override { return _to IsNoCacheResponse(_retval); } \
  MOZ_MUST_USE NS_IMETHOD IsPrivateResponse(bool *_retval) override { return _to IsPrivateResponse(_retval); } \
  MOZ_MUST_USE NS_IMETHOD RedirectTo(nsIURI *aTargetURI) override { return _to RedirectTo(aTargetURI); } \
  MOZ_MUST_USE NS_IMETHOD UpgradeToSecure(void) override { return _to UpgradeToSecure(); } \
  MOZ_MUST_USE NS_IMETHOD GetRequestContextID(uint64_t *aRequestContextID) override { return _to GetRequestContextID(aRequestContextID); } \
  MOZ_MUST_USE NS_IMETHOD SetRequestContextID(uint64_t aRequestContextID) override { return _to SetRequestContextID(aRequestContextID); } \
  MOZ_MUST_USE NS_IMETHOD GetChannelId(uint64_t *aChannelId) override { return _to GetChannelId(aChannelId); } \
  MOZ_MUST_USE NS_IMETHOD SetChannelId(uint64_t aChannelId) override { return _to SetChannelId(aChannelId); } \
  MOZ_MUST_USE NS_IMETHOD GetTopLevelContentWindowId(uint64_t *aTopLevelContentWindowId) override { return _to GetTopLevelContentWindowId(aTopLevelContentWindowId); } \
  MOZ_MUST_USE NS_IMETHOD SetTopLevelContentWindowId(uint64_t aTopLevelContentWindowId) override { return _to SetTopLevelContentWindowId(aTopLevelContentWindowId); } \
  using nsIHttpChannel::GetIsTrackingResource; \
  NS_IMETHOD GetIsTrackingResource(bool *aIsTrackingResource) override { return _to GetIsTrackingResource(aIsTrackingResource); } \
  using nsIHttpChannel::GetIsThirdPartyTrackingResource; \
  NS_IMETHOD GetIsThirdPartyTrackingResource(bool *aIsThirdPartyTrackingResource) override { return _to GetIsThirdPartyTrackingResource(aIsThirdPartyTrackingResource); } \
  NS_IMETHOD OverrideTrackingFlagsForDocumentCookieAccessor(nsIHttpChannel *aDocumentChannel) override { return _to OverrideTrackingFlagsForDocumentCookieAccessor(aDocumentChannel); } \
  MOZ_MUST_USE NS_IMETHOD GetTopLevelOuterContentWindowId(uint64_t *aTopLevelOuterContentWindowId) override { return _to GetTopLevelOuterContentWindowId(aTopLevelOuterContentWindowId); } \
  MOZ_MUST_USE NS_IMETHOD SetTopLevelOuterContentWindowId(uint64_t aTopLevelOuterContentWindowId) override { return _to SetTopLevelOuterContentWindowId(aTopLevelOuterContentWindowId); } \
  NS_IMETHOD LogBlockedCORSRequest(const nsAString& aMessage, const nsACString& aCategory) override { return _to LogBlockedCORSRequest(aMessage, aCategory); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIHTTPCHANNEL(_to) \
  MOZ_MUST_USE NS_IMETHOD GetRequestMethod(nsACString& aRequestMethod) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestMethod(aRequestMethod); } \
  MOZ_MUST_USE NS_IMETHOD SetRequestMethod(const nsACString& aRequestMethod) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestMethod(aRequestMethod); } \
  MOZ_MUST_USE NS_IMETHOD GetReferrer(nsIURI **aReferrer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrer(aReferrer); } \
  MOZ_MUST_USE NS_IMETHOD SetReferrer(nsIURI *aReferrer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReferrer(aReferrer); } \
  MOZ_MUST_USE NS_IMETHOD GetReferrerPolicy(uint32_t *aReferrerPolicy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrerPolicy(aReferrerPolicy); } \
  MOZ_MUST_USE NS_IMETHOD SetReferrerWithPolicy(nsIURI *referrer, uint32_t referrerPolicy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReferrerWithPolicy(referrer, referrerPolicy); } \
  MOZ_MUST_USE NS_IMETHOD GetProtocolVersion(nsACString& aProtocolVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocolVersion(aProtocolVersion); } \
  MOZ_MUST_USE NS_IMETHOD GetTransferSize(uint64_t *aTransferSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransferSize(aTransferSize); } \
  MOZ_MUST_USE NS_IMETHOD GetDecodedBodySize(uint64_t *aDecodedBodySize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDecodedBodySize(aDecodedBodySize); } \
  MOZ_MUST_USE NS_IMETHOD GetEncodedBodySize(uint64_t *aEncodedBodySize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncodedBodySize(aEncodedBodySize); } \
  MOZ_MUST_USE NS_IMETHOD GetRequestHeader(const nsACString& aHeader, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestHeader(aHeader, _retval); } \
  MOZ_MUST_USE NS_IMETHOD SetRequestHeader(const nsACString& aHeader, const nsACString& aValue, bool aMerge) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestHeader(aHeader, aValue, aMerge); } \
  MOZ_MUST_USE NS_IMETHOD SetEmptyRequestHeader(const nsACString& aHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEmptyRequestHeader(aHeader); } \
  MOZ_MUST_USE NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitRequestHeaders(aVisitor); } \
  MOZ_MUST_USE NS_IMETHOD VisitNonDefaultRequestHeaders(nsIHttpHeaderVisitor *aVisitor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitNonDefaultRequestHeaders(aVisitor); } \
  MOZ_MUST_USE NS_IMETHOD GetAllowPipelining(bool *aAllowPipelining) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowPipelining(aAllowPipelining); } \
  MOZ_MUST_USE NS_IMETHOD SetAllowPipelining(bool aAllowPipelining) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowPipelining(aAllowPipelining); } \
  MOZ_MUST_USE NS_IMETHOD GetAllowSTS(bool *aAllowSTS) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowSTS(aAllowSTS); } \
  MOZ_MUST_USE NS_IMETHOD SetAllowSTS(bool aAllowSTS) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowSTS(aAllowSTS); } \
  MOZ_MUST_USE NS_IMETHOD GetRedirectionLimit(uint32_t *aRedirectionLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRedirectionLimit(aRedirectionLimit); } \
  MOZ_MUST_USE NS_IMETHOD SetRedirectionLimit(uint32_t aRedirectionLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRedirectionLimit(aRedirectionLimit); } \
  MOZ_MUST_USE NS_IMETHOD GetResponseStatus(uint32_t *aResponseStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseStatus(aResponseStatus); } \
  MOZ_MUST_USE NS_IMETHOD GetResponseStatusText(nsACString& aResponseStatusText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseStatusText(aResponseStatusText); } \
  MOZ_MUST_USE NS_IMETHOD GetRequestSucceeded(bool *aRequestSucceeded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestSucceeded(aRequestSucceeded); } \
  MOZ_MUST_USE NS_IMETHOD GetIsMainDocumentChannel(bool *aIsMainDocumentChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMainDocumentChannel(aIsMainDocumentChannel); } \
  MOZ_MUST_USE NS_IMETHOD SetIsMainDocumentChannel(bool aIsMainDocumentChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsMainDocumentChannel(aIsMainDocumentChannel); } \
  MOZ_MUST_USE NS_IMETHOD GetResponseHeader(const nsACString& header, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseHeader(header, _retval); } \
  MOZ_MUST_USE NS_IMETHOD SetResponseHeader(const nsACString& header, const nsACString& value, bool merge) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResponseHeader(header, value, merge); } \
  MOZ_MUST_USE NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitResponseHeaders(aVisitor); } \
  MOZ_MUST_USE NS_IMETHOD GetOriginalResponseHeader(const nsACString& aHeader, nsIHttpHeaderVisitor *aVisitor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginalResponseHeader(aHeader, aVisitor); } \
  MOZ_MUST_USE NS_IMETHOD VisitOriginalResponseHeaders(nsIHttpHeaderVisitor *aVisitor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitOriginalResponseHeaders(aVisitor); } \
  MOZ_MUST_USE NS_IMETHOD IsNoStoreResponse(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsNoStoreResponse(_retval); } \
  MOZ_MUST_USE NS_IMETHOD IsNoCacheResponse(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsNoCacheResponse(_retval); } \
  MOZ_MUST_USE NS_IMETHOD IsPrivateResponse(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsPrivateResponse(_retval); } \
  MOZ_MUST_USE NS_IMETHOD RedirectTo(nsIURI *aTargetURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RedirectTo(aTargetURI); } \
  MOZ_MUST_USE NS_IMETHOD UpgradeToSecure(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpgradeToSecure(); } \
  MOZ_MUST_USE NS_IMETHOD GetRequestContextID(uint64_t *aRequestContextID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestContextID(aRequestContextID); } \
  MOZ_MUST_USE NS_IMETHOD SetRequestContextID(uint64_t aRequestContextID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestContextID(aRequestContextID); } \
  MOZ_MUST_USE NS_IMETHOD GetChannelId(uint64_t *aChannelId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannelId(aChannelId); } \
  MOZ_MUST_USE NS_IMETHOD SetChannelId(uint64_t aChannelId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChannelId(aChannelId); } \
  MOZ_MUST_USE NS_IMETHOD GetTopLevelContentWindowId(uint64_t *aTopLevelContentWindowId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTopLevelContentWindowId(aTopLevelContentWindowId); } \
  MOZ_MUST_USE NS_IMETHOD SetTopLevelContentWindowId(uint64_t aTopLevelContentWindowId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTopLevelContentWindowId(aTopLevelContentWindowId); } \
  NS_IMETHOD GetIsTrackingResource(bool *aIsTrackingResource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsTrackingResource(aIsTrackingResource); } \
  NS_IMETHOD GetIsThirdPartyTrackingResource(bool *aIsThirdPartyTrackingResource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsThirdPartyTrackingResource(aIsThirdPartyTrackingResource); } \
  NS_IMETHOD OverrideTrackingFlagsForDocumentCookieAccessor(nsIHttpChannel *aDocumentChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OverrideTrackingFlagsForDocumentCookieAccessor(aDocumentChannel); } \
  MOZ_MUST_USE NS_IMETHOD GetTopLevelOuterContentWindowId(uint64_t *aTopLevelOuterContentWindowId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTopLevelOuterContentWindowId(aTopLevelOuterContentWindowId); } \
  MOZ_MUST_USE NS_IMETHOD SetTopLevelOuterContentWindowId(uint64_t aTopLevelOuterContentWindowId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTopLevelOuterContentWindowId(aTopLevelOuterContentWindowId); } \
  NS_IMETHOD LogBlockedCORSRequest(const nsAString& aMessage, const nsACString& aCategory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LogBlockedCORSRequest(aMessage, aCategory); } 


#endif /* __gen_nsIHttpChannel_h__ */