caps/include/nsSystemPrincipal.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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