Bug 1040543 part 6 - Rename mAnimations to mPlayers and likewise for similar local...
[gecko.git] / caps / nsSystemPrincipal.h
blob6c5d00525ca1b4030d53c784bf04923363e73a0f
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 : 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__