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/. */
7 #ifndef nsIScriptObjectPrincipal_h__
8 #define nsIScriptObjectPrincipal_h__
10 #include "nsISupports.h"
14 #define NS_ISCRIPTOBJECTPRINCIPAL_IID \
16 0x3eedba38, 0x8d22, 0x41e1, { \
17 0x81, 0x7a, 0x0e, 0x43, 0xe1, 0x65, 0xb6, 0x64 \
22 * JS Object Principal information.
24 class nsIScriptObjectPrincipal
: public nsISupports
{
26 NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTOBJECTPRINCIPAL_IID
)
28 virtual nsIPrincipal
* GetPrincipal() = 0;
30 virtual nsIPrincipal
* GetEffectiveCookiePrincipal() = 0;
32 virtual nsIPrincipal
* GetEffectiveStoragePrincipal() = 0;
34 virtual nsIPrincipal
* PartitionedPrincipal() = 0;
37 NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptObjectPrincipal
,
38 NS_ISCRIPTOBJECTPRINCIPAL_IID
)
40 #endif // nsIScriptObjectPrincipal_h__