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/. */
6 /* The privileged system principal. */
8 #ifndef nsSystemPrincipal_h__
9 #define nsSystemPrincipal_h__
11 #include "nsIPrincipal.h"
12 #include "nsJSPrincipals.h"
14 #define NS_SYSTEMPRINCIPAL_CID \
15 { 0x4a6212db, 0xaccb, 0x11d3, \
16 { 0xb7, 0x65, 0x0, 0x60, 0xb0, 0xb6, 0xce, 0xcb }}
17 #define NS_SYSTEMPRINCIPAL_CONTRACTID "@mozilla.org/systemprincipal;1"
20 class nsSystemPrincipal MOZ_FINAL
: public nsJSPrincipals
23 // Our refcount is managed by nsJSPrincipals. Use this macro to avoid
24 // an extra refcount member.
25 NS_DECL_ISUPPORTS_INHERITED
27 NS_DECL_NSISERIALIZABLE
31 virtual void GetScriptLocation(nsACString
&aStr
) MOZ_OVERRIDE
;
34 virtual void dumpImpl() MOZ_OVERRIDE
;
38 virtual ~nsSystemPrincipal(void);
40 // XXX Probably unnecessary. See bug 143559.
44 #endif // nsSystemPrincipal_h__