nsIHttpChannelChild.idl 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsISupports.idl"
  6. [ptr] native RequestHeaderTuples(mozilla::net::RequestHeaderTuples);
  7. [ref] native OptionalCorsPreflightArgsRef(mozilla::OptionalCorsPreflightArgs);
  8. interface nsIPrincipal;
  9. interface nsIURI;
  10. [uuid(d02b96ed-2789-4f42-a25c-7abe63de7c18)]
  11. interface nsIHttpChannelChild : nsISupports
  12. {
  13. void addCookiesToRequest();
  14. // Mark this channel as requiring an interception; this will propagate
  15. // to the corresponding parent channel when a redirect occurs.
  16. void forceIntercepted(in boolean postRedirectChannelShouldIntercept,
  17. in boolean postRedirectChannelShouldUpgrade);
  18. // Headers that the channel client has set via SetRequestHeader.
  19. readonly attribute RequestHeaderTuples clientSetRequestHeaders;
  20. // Headers that the channel client has set via SetRequestHeader.
  21. [notxpcom, nostdcall]
  22. void GetClientSetCorsPreflightParameters(in OptionalCorsPreflightArgsRef args);
  23. // This method is called by nsCORSListenerProxy if we need to remove
  24. // an entry from the CORS preflight cache in the parent process.
  25. void removeCorsPreflightCacheEntry(in nsIURI aURI, in nsIPrincipal aRequestingPrincipal);
  26. };