Line data Source code
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 :
15 : #define NS_ISCRIPTOBJECTPRINCIPAL_IID \
16 : { 0x3eedba38, 0x8d22, 0x41e1, \
17 : { 0x81, 0x7a, 0x0e, 0x43, 0xe1, 0x65, 0xb6, 0x64} }
18 :
19 : /**
20 : * JS Object Principal information.
21 : */
22 352 : class nsIScriptObjectPrincipal : public nsISupports
23 : {
24 : public:
25 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTOBJECTPRINCIPAL_IID)
26 :
27 : virtual nsIPrincipal* GetPrincipal() = 0;
28 : };
29 :
30 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptObjectPrincipal,
31 : NS_ISCRIPTOBJECTPRINCIPAL_IID)
32 :
33 : #endif // nsIScriptObjectPrincipal_h__
|