caps/include/nsSystemPrincipal.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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
    21 {
    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
    42 };
    44 #endif // nsSystemPrincipal_h__

mercurial