tor-browser

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

nsICORSPreflightCacheEntry.idl (1522B)


      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 interface nsIURI;
      9 interface nsIPrincipal;
     10 
     11 [ref] native const_OriginAttributes(const mozilla::OriginAttributes);
     12 
     13 /**
     14 * nsICORSPreflightCacheEntry
     15 * Defines an interface representing a cache entry in the preflight cache.
     16 *
     17 */
     18 [builtinclass, scriptable, uuid(f43f2098-53dc-4554-b706-040b4ce1e587)]
     19 interface nsICORSPreflightCacheEntry : nsISupports
     20 {
     21  /**
     22   * The serialized key identifying this cache entry as a string
     23   */
     24  readonly attribute ACString key;
     25 
     26  /**
     27   * The URI used in the key
     28   */
     29  readonly attribute nsIURI URI;
     30 
     31  /**
     32   * OriginAttributes used in the key
     33   */
     34  [implicit_jscontext]
     35  readonly attribute jsval originAttributes;
     36 
     37  /**
     38   * Same OriginAttributes as above, callable from c++
     39   */
     40  [noscript, notxpcom, nostdcall, binaryname(OriginAttributesRef)]
     41  const_OriginAttributes OriginAttributesRef();
     42 
     43  /**
     44   * Principal used to generate the key serialization
     45   */
     46  readonly attribute nsIPrincipal principal;
     47 
     48  /**
     49   * Whether this cache entry is associated with private browsing.
     50   */
     51  readonly attribute boolean privateBrowsing;
     52 
     53  /**
     54   * Whether the the cache entry includes those with credentials
     55   */
     56  readonly attribute boolean withCredentials;
     57 };