tor-browser

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

nsIScriptObjectPrincipal.h (1000B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef nsIScriptObjectPrincipal_h__
      8 #define nsIScriptObjectPrincipal_h__
      9 
     10 #include "nsISupports.h"
     11 
     12 class nsIPrincipal;
     13 
     14 #define NS_ISCRIPTOBJECTPRINCIPAL_IID \
     15  {0x3eedba38, 0x8d22, 0x41e1, {0x81, 0x7a, 0x0e, 0x43, 0xe1, 0x65, 0xb6, 0x64}}
     16 
     17 /**
     18 * JS Object Principal information.
     19 */
     20 class nsIScriptObjectPrincipal : public nsISupports {
     21 public:
     22  NS_INLINE_DECL_STATIC_IID(NS_ISCRIPTOBJECTPRINCIPAL_IID)
     23 
     24  virtual nsIPrincipal* GetPrincipal() = 0;
     25 
     26  virtual nsIPrincipal* GetEffectiveCookiePrincipal() = 0;
     27 
     28  virtual nsIPrincipal* GetEffectiveStoragePrincipal() = 0;
     29 
     30  virtual nsIPrincipal* PartitionedPrincipal() = 0;
     31 };
     32 
     33 #endif  // nsIScriptObjectPrincipal_h__