tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsIHttpChannelChild.idl (1441B)


      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 
      6 #include "nsISupports.idl"
      7 
      8 %{ C++
      9 namespace mozilla {
     10 class OriginAttributes;
     11 } // mozilla namespace
     12 %}
     13 
     14 [ptr] native RequestHeaderTuples(mozilla::net::RequestHeaderTuples);
     15 [ref] native MaybeCorsPreflightArgsRef(mozilla::Maybe<mozilla::net::CorsPreflightArgs>);
     16 [ref] native const_OriginAttributes(const mozilla::OriginAttributes);
     17 
     18 interface nsIPrincipal;
     19 interface nsIURI;
     20 
     21 [uuid(d02b96ed-2789-4f42-a25c-7abe63de7c18)]
     22 interface nsIHttpChannelChild : nsISupports
     23 {
     24  [must_use] void addCookiesToRequest();
     25 
     26  // Headers that the channel client has set via SetRequestHeader.
     27  [must_use] readonly attribute RequestHeaderTuples clientSetRequestHeaders;
     28 
     29  // Headers that the channel client has set via SetRequestHeader.
     30  [notxpcom, nostdcall]
     31  void GetClientSetCorsPreflightParameters(in MaybeCorsPreflightArgsRef args);
     32 
     33  // This method is called by nsCORSListenerProxy if we need to remove
     34  // an entry from the CORS preflight cache in the parent process.
     35  [must_use]
     36  void removeCorsPreflightCacheEntry(in nsIURI aURI, in nsIPrincipal aRequestingPrincipal,
     37                                     in const_OriginAttributes aOriginAttributes);
     38 };