Bumping manifests a=b2g-bump
[gecko.git] / caps / nsSystemPrincipal.h
blob26cdb91f81994b0577d9a9b376575d279fc6f39f
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
22 public:
23 // Our refcount is managed by nsJSPrincipals. Use this macro to avoid
24 // an extra refcount member.
25 NS_DECL_ISUPPORTS_INHERITED
26 NS_DECL_NSIPRINCIPAL
27 NS_DECL_NSISERIALIZABLE
29 nsSystemPrincipal();
31 virtual void GetScriptLocation(nsACString &aStr) MOZ_OVERRIDE;
33 #ifdef DEBUG
34 virtual void dumpImpl() MOZ_OVERRIDE;
35 #endif
37 protected:
38 virtual ~nsSystemPrincipal(void);
40 // XXX Probably unnecessary. See bug 143559.
41 NS_DECL_OWNINGTHREAD
44 #endif // nsSystemPrincipal_h__