LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIPrincipal.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/caps/idl/nsIPrincipal.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIPrincipal_h__
       6                 : #define __gen_nsIPrincipal_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISerializable_h__
      10                 : #include "nsISerializable.h"
      11                 : #endif
      12                 : 
      13                 : /* For IDL files that don't want to include root IDL files. */
      14                 : #ifndef NS_NO_VTABLE
      15                 : #define NS_NO_VTABLE
      16                 : #endif
      17                 : struct JSContext;
      18                 : struct JSPrincipals;
      19                 : class nsIURI; /* forward declaration */
      20                 : 
      21                 : class nsIContentSecurityPolicy; /* forward declaration */
      22                 : 
      23                 : 
      24                 : /* starting interface:    nsIPrincipal */
      25                 : #define NS_IPRINCIPAL_IID_STR "f8c4c89a-d726-421b-8415-3e34b241175b"
      26                 : 
      27                 : #define NS_IPRINCIPAL_IID \
      28                 :   {0xf8c4c89a, 0xd726, 0x421b, \
      29                 :     { 0x84, 0x15, 0x3e, 0x34, 0xb2, 0x41, 0x17, 0x5b }}
      30                 : 
      31            5687 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPrincipal : public nsISerializable {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRINCIPAL_IID)
      35                 : 
      36                 :   enum {
      37                 :     ENABLE_DENIED = 1,
      38                 :     ENABLE_UNKNOWN = 2,
      39                 :     ENABLE_WITH_USER_PERMISSION = 3,
      40                 :     ENABLE_GRANTED = 4
      41                 :   };
      42                 : 
      43                 :   /* void getPreferences (out string prefBranch, out string id, out string subjectName, out string grantedList, out string deniedList, out boolean isTrusted); */
      44                 :   NS_SCRIPTABLE NS_IMETHOD GetPreferences(char * *prefBranch NS_OUTPARAM, char * *id NS_OUTPARAM, char * *subjectName NS_OUTPARAM, char * *grantedList NS_OUTPARAM, char * *deniedList NS_OUTPARAM, bool *isTrusted NS_OUTPARAM) = 0;
      45                 : 
      46                 :   /* boolean equals (in nsIPrincipal other); */
      47                 :   NS_SCRIPTABLE NS_IMETHOD Equals(nsIPrincipal *other, bool *_retval NS_OUTPARAM) = 0;
      48                 : 
      49                 :   /* boolean equalsIgnoringDomain (in nsIPrincipal other); */
      50                 :   NS_SCRIPTABLE NS_IMETHOD EqualsIgnoringDomain(nsIPrincipal *other, bool *_retval NS_OUTPARAM) = 0;
      51                 : 
      52                 :   /* [noscript] readonly attribute unsigned long hashValue; */
      53                 :   NS_IMETHOD GetHashValue(PRUint32 *aHashValue) = 0;
      54                 : 
      55                 :   /* [noscript] attribute voidPtr securityPolicy; */
      56                 :   NS_IMETHOD GetSecurityPolicy(void **aSecurityPolicy) = 0;
      57                 :   NS_IMETHOD SetSecurityPolicy(void *aSecurityPolicy) = 0;
      58                 : 
      59                 :   /* [noscript] short canEnableCapability (in string capability); */
      60                 :   NS_IMETHOD CanEnableCapability(const char * capability, PRInt16 *_retval NS_OUTPARAM) = 0;
      61                 : 
      62                 :   /* [noscript] void setCanEnableCapability (in string capability, in short canEnable); */
      63                 :   NS_IMETHOD SetCanEnableCapability(const char * capability, PRInt16 canEnable) = 0;
      64                 : 
      65                 :   /* [noscript] boolean isCapabilityEnabled (in string capability, in voidPtr annotation); */
      66                 :   NS_IMETHOD IsCapabilityEnabled(const char * capability, void *annotation, bool *_retval NS_OUTPARAM) = 0;
      67                 : 
      68                 :   /* [noscript] void enableCapability (in string capability, inout voidPtr annotation); */
      69                 :   NS_IMETHOD EnableCapability(const char * capability, void **annotation NS_INOUTPARAM) = 0;
      70                 : 
      71                 :   /* [noscript] void revertCapability (in string capability, inout voidPtr annotation); */
      72                 :   NS_IMETHOD RevertCapability(const char * capability, void **annotation NS_INOUTPARAM) = 0;
      73                 : 
      74                 :   /* [noscript] void disableCapability (in string capability, inout voidPtr annotation); */
      75                 :   NS_IMETHOD DisableCapability(const char * capability, void **annotation NS_INOUTPARAM) = 0;
      76                 : 
      77                 :   /* readonly attribute nsIURI URI; */
      78                 :   NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
      79                 : 
      80                 :   /* [noscript] attribute nsIURI domain; */
      81                 :   NS_IMETHOD GetDomain(nsIURI * *aDomain) = 0;
      82                 :   NS_IMETHOD SetDomain(nsIURI *aDomain) = 0;
      83                 : 
      84                 :   /* readonly attribute string origin; */
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetOrigin(char * *aOrigin) = 0;
      86                 : 
      87                 :   /* readonly attribute boolean hasCertificate; */
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetHasCertificate(bool *aHasCertificate) = 0;
      89                 : 
      90                 :   /* readonly attribute AUTF8String fingerprint; */
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetFingerprint(nsACString & aFingerprint) = 0;
      92                 : 
      93                 :   /* readonly attribute AUTF8String prettyName; */
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetPrettyName(nsACString & aPrettyName) = 0;
      95                 : 
      96                 :   /* boolean subsumes (in nsIPrincipal other); */
      97                 :   NS_SCRIPTABLE NS_IMETHOD Subsumes(nsIPrincipal *other, bool *_retval NS_OUTPARAM) = 0;
      98                 : 
      99                 :   /* boolean subsumesIgnoringDomain (in nsIPrincipal other); */
     100                 :   NS_SCRIPTABLE NS_IMETHOD SubsumesIgnoringDomain(nsIPrincipal *other, bool *_retval NS_OUTPARAM) = 0;
     101                 : 
     102                 :   /* void checkMayLoad (in nsIURI uri, in boolean report); */
     103                 :   NS_SCRIPTABLE NS_IMETHOD CheckMayLoad(nsIURI *uri, bool report) = 0;
     104                 : 
     105                 :   /* readonly attribute AUTF8String subjectName; */
     106                 :   NS_SCRIPTABLE NS_IMETHOD GetSubjectName(nsACString & aSubjectName) = 0;
     107                 : 
     108                 :   /* readonly attribute nsISupports certificate; */
     109                 :   NS_SCRIPTABLE NS_IMETHOD GetCertificate(nsISupports * *aCertificate) = 0;
     110                 : 
     111                 :   /* [noscript] attribute nsIContentSecurityPolicy csp; */
     112                 :   NS_IMETHOD GetCsp(nsIContentSecurityPolicy * *aCsp) = 0;
     113                 :   NS_IMETHOD SetCsp(nsIContentSecurityPolicy *aCsp) = 0;
     114                 : 
     115                 : };
     116                 : 
     117                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrincipal, NS_IPRINCIPAL_IID)
     118                 : 
     119                 : /* Use this macro when declaring classes that implement this interface. */
     120                 : #define NS_DECL_NSIPRINCIPAL \
     121                 :   NS_SCRIPTABLE NS_IMETHOD GetPreferences(char * *prefBranch NS_OUTPARAM, char * *id NS_OUTPARAM, char * *subjectName NS_OUTPARAM, char * *grantedList NS_OUTPARAM, char * *deniedList NS_OUTPARAM, bool *isTrusted NS_OUTPARAM); \
     122                 :   NS_SCRIPTABLE NS_IMETHOD Equals(nsIPrincipal *other, bool *_retval NS_OUTPARAM); \
     123                 :   NS_SCRIPTABLE NS_IMETHOD EqualsIgnoringDomain(nsIPrincipal *other, bool *_retval NS_OUTPARAM); \
     124                 :   NS_IMETHOD GetHashValue(PRUint32 *aHashValue); \
     125                 :   NS_IMETHOD GetSecurityPolicy(void **aSecurityPolicy); \
     126                 :   NS_IMETHOD SetSecurityPolicy(void *aSecurityPolicy); \
     127                 :   NS_IMETHOD CanEnableCapability(const char * capability, PRInt16 *_retval NS_OUTPARAM); \
     128                 :   NS_IMETHOD SetCanEnableCapability(const char * capability, PRInt16 canEnable); \
     129                 :   NS_IMETHOD IsCapabilityEnabled(const char * capability, void *annotation, bool *_retval NS_OUTPARAM); \
     130                 :   NS_IMETHOD EnableCapability(const char * capability, void **annotation NS_INOUTPARAM); \
     131                 :   NS_IMETHOD RevertCapability(const char * capability, void **annotation NS_INOUTPARAM); \
     132                 :   NS_IMETHOD DisableCapability(const char * capability, void **annotation NS_INOUTPARAM); \
     133                 :   NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI); \
     134                 :   NS_IMETHOD GetDomain(nsIURI * *aDomain); \
     135                 :   NS_IMETHOD SetDomain(nsIURI *aDomain); \
     136                 :   NS_SCRIPTABLE NS_IMETHOD GetOrigin(char * *aOrigin); \
     137                 :   NS_SCRIPTABLE NS_IMETHOD GetHasCertificate(bool *aHasCertificate); \
     138                 :   NS_SCRIPTABLE NS_IMETHOD GetFingerprint(nsACString & aFingerprint); \
     139                 :   NS_SCRIPTABLE NS_IMETHOD GetPrettyName(nsACString & aPrettyName); \
     140                 :   NS_SCRIPTABLE NS_IMETHOD Subsumes(nsIPrincipal *other, bool *_retval NS_OUTPARAM); \
     141                 :   NS_SCRIPTABLE NS_IMETHOD SubsumesIgnoringDomain(nsIPrincipal *other, bool *_retval NS_OUTPARAM); \
     142                 :   NS_SCRIPTABLE NS_IMETHOD CheckMayLoad(nsIURI *uri, bool report); \
     143                 :   NS_SCRIPTABLE NS_IMETHOD GetSubjectName(nsACString & aSubjectName); \
     144                 :   NS_SCRIPTABLE NS_IMETHOD GetCertificate(nsISupports * *aCertificate); \
     145                 :   NS_IMETHOD GetCsp(nsIContentSecurityPolicy * *aCsp); \
     146                 :   NS_IMETHOD SetCsp(nsIContentSecurityPolicy *aCsp); 
     147                 : 
     148                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     149                 : #define NS_FORWARD_NSIPRINCIPAL(_to) \
     150                 :   NS_SCRIPTABLE NS_IMETHOD GetPreferences(char * *prefBranch NS_OUTPARAM, char * *id NS_OUTPARAM, char * *subjectName NS_OUTPARAM, char * *grantedList NS_OUTPARAM, char * *deniedList NS_OUTPARAM, bool *isTrusted NS_OUTPARAM) { return _to GetPreferences(prefBranch, id, subjectName, grantedList, deniedList, isTrusted); } \
     151                 :   NS_SCRIPTABLE NS_IMETHOD Equals(nsIPrincipal *other, bool *_retval NS_OUTPARAM) { return _to Equals(other, _retval); } \
     152                 :   NS_SCRIPTABLE NS_IMETHOD EqualsIgnoringDomain(nsIPrincipal *other, bool *_retval NS_OUTPARAM) { return _to EqualsIgnoringDomain(other, _retval); } \
     153                 :   NS_IMETHOD GetHashValue(PRUint32 *aHashValue) { return _to GetHashValue(aHashValue); } \
     154                 :   NS_IMETHOD GetSecurityPolicy(void **aSecurityPolicy) { return _to GetSecurityPolicy(aSecurityPolicy); } \
     155                 :   NS_IMETHOD SetSecurityPolicy(void *aSecurityPolicy) { return _to SetSecurityPolicy(aSecurityPolicy); } \
     156                 :   NS_IMETHOD CanEnableCapability(const char * capability, PRInt16 *_retval NS_OUTPARAM) { return _to CanEnableCapability(capability, _retval); } \
     157                 :   NS_IMETHOD SetCanEnableCapability(const char * capability, PRInt16 canEnable) { return _to SetCanEnableCapability(capability, canEnable); } \
     158                 :   NS_IMETHOD IsCapabilityEnabled(const char * capability, void *annotation, bool *_retval NS_OUTPARAM) { return _to IsCapabilityEnabled(capability, annotation, _retval); } \
     159                 :   NS_IMETHOD EnableCapability(const char * capability, void **annotation NS_INOUTPARAM) { return _to EnableCapability(capability, annotation); } \
     160                 :   NS_IMETHOD RevertCapability(const char * capability, void **annotation NS_INOUTPARAM) { return _to RevertCapability(capability, annotation); } \
     161                 :   NS_IMETHOD DisableCapability(const char * capability, void **annotation NS_INOUTPARAM) { return _to DisableCapability(capability, annotation); } \
     162                 :   NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) { return _to GetURI(aURI); } \
     163                 :   NS_IMETHOD GetDomain(nsIURI * *aDomain) { return _to GetDomain(aDomain); } \
     164                 :   NS_IMETHOD SetDomain(nsIURI *aDomain) { return _to SetDomain(aDomain); } \
     165                 :   NS_SCRIPTABLE NS_IMETHOD GetOrigin(char * *aOrigin) { return _to GetOrigin(aOrigin); } \
     166                 :   NS_SCRIPTABLE NS_IMETHOD GetHasCertificate(bool *aHasCertificate) { return _to GetHasCertificate(aHasCertificate); } \
     167                 :   NS_SCRIPTABLE NS_IMETHOD GetFingerprint(nsACString & aFingerprint) { return _to GetFingerprint(aFingerprint); } \
     168                 :   NS_SCRIPTABLE NS_IMETHOD GetPrettyName(nsACString & aPrettyName) { return _to GetPrettyName(aPrettyName); } \
     169                 :   NS_SCRIPTABLE NS_IMETHOD Subsumes(nsIPrincipal *other, bool *_retval NS_OUTPARAM) { return _to Subsumes(other, _retval); } \
     170                 :   NS_SCRIPTABLE NS_IMETHOD SubsumesIgnoringDomain(nsIPrincipal *other, bool *_retval NS_OUTPARAM) { return _to SubsumesIgnoringDomain(other, _retval); } \
     171                 :   NS_SCRIPTABLE NS_IMETHOD CheckMayLoad(nsIURI *uri, bool report) { return _to CheckMayLoad(uri, report); } \
     172                 :   NS_SCRIPTABLE NS_IMETHOD GetSubjectName(nsACString & aSubjectName) { return _to GetSubjectName(aSubjectName); } \
     173                 :   NS_SCRIPTABLE NS_IMETHOD GetCertificate(nsISupports * *aCertificate) { return _to GetCertificate(aCertificate); } \
     174                 :   NS_IMETHOD GetCsp(nsIContentSecurityPolicy * *aCsp) { return _to GetCsp(aCsp); } \
     175                 :   NS_IMETHOD SetCsp(nsIContentSecurityPolicy *aCsp) { return _to SetCsp(aCsp); } 
     176                 : 
     177                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     178                 : #define NS_FORWARD_SAFE_NSIPRINCIPAL(_to) \
     179                 :   NS_SCRIPTABLE NS_IMETHOD GetPreferences(char * *prefBranch NS_OUTPARAM, char * *id NS_OUTPARAM, char * *subjectName NS_OUTPARAM, char * *grantedList NS_OUTPARAM, char * *deniedList NS_OUTPARAM, bool *isTrusted NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferences(prefBranch, id, subjectName, grantedList, deniedList, isTrusted); } \
     180                 :   NS_SCRIPTABLE NS_IMETHOD Equals(nsIPrincipal *other, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(other, _retval); } \
     181                 :   NS_SCRIPTABLE NS_IMETHOD EqualsIgnoringDomain(nsIPrincipal *other, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EqualsIgnoringDomain(other, _retval); } \
     182                 :   NS_IMETHOD GetHashValue(PRUint32 *aHashValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHashValue(aHashValue); } \
     183                 :   NS_IMETHOD GetSecurityPolicy(void **aSecurityPolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityPolicy(aSecurityPolicy); } \
     184                 :   NS_IMETHOD SetSecurityPolicy(void *aSecurityPolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecurityPolicy(aSecurityPolicy); } \
     185                 :   NS_IMETHOD CanEnableCapability(const char * capability, PRInt16 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanEnableCapability(capability, _retval); } \
     186                 :   NS_IMETHOD SetCanEnableCapability(const char * capability, PRInt16 canEnable) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCanEnableCapability(capability, canEnable); } \
     187                 :   NS_IMETHOD IsCapabilityEnabled(const char * capability, void *annotation, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCapabilityEnabled(capability, annotation, _retval); } \
     188                 :   NS_IMETHOD EnableCapability(const char * capability, void **annotation NS_INOUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnableCapability(capability, annotation); } \
     189                 :   NS_IMETHOD RevertCapability(const char * capability, void **annotation NS_INOUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->RevertCapability(capability, annotation); } \
     190                 :   NS_IMETHOD DisableCapability(const char * capability, void **annotation NS_INOUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DisableCapability(capability, annotation); } \
     191                 :   NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
     192                 :   NS_IMETHOD GetDomain(nsIURI * *aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomain(aDomain); } \
     193                 :   NS_IMETHOD SetDomain(nsIURI *aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDomain(aDomain); } \
     194                 :   NS_SCRIPTABLE NS_IMETHOD GetOrigin(char * *aOrigin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrigin(aOrigin); } \
     195                 :   NS_SCRIPTABLE NS_IMETHOD GetHasCertificate(bool *aHasCertificate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasCertificate(aHasCertificate); } \
     196                 :   NS_SCRIPTABLE NS_IMETHOD GetFingerprint(nsACString & aFingerprint) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFingerprint(aFingerprint); } \
     197                 :   NS_SCRIPTABLE NS_IMETHOD GetPrettyName(nsACString & aPrettyName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrettyName(aPrettyName); } \
     198                 :   NS_SCRIPTABLE NS_IMETHOD Subsumes(nsIPrincipal *other, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Subsumes(other, _retval); } \
     199                 :   NS_SCRIPTABLE NS_IMETHOD SubsumesIgnoringDomain(nsIPrincipal *other, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubsumesIgnoringDomain(other, _retval); } \
     200                 :   NS_SCRIPTABLE NS_IMETHOD CheckMayLoad(nsIURI *uri, bool report) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckMayLoad(uri, report); } \
     201                 :   NS_SCRIPTABLE NS_IMETHOD GetSubjectName(nsACString & aSubjectName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubjectName(aSubjectName); } \
     202                 :   NS_SCRIPTABLE NS_IMETHOD GetCertificate(nsISupports * *aCertificate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCertificate(aCertificate); } \
     203                 :   NS_IMETHOD GetCsp(nsIContentSecurityPolicy * *aCsp) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCsp(aCsp); } \
     204                 :   NS_IMETHOD SetCsp(nsIContentSecurityPolicy *aCsp) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCsp(aCsp); } 
     205                 : 
     206                 : #if 0
     207                 : /* Use the code below as a template for the implementation class for this interface. */
     208                 : 
     209                 : /* Header file */
     210                 : class nsPrincipal : public nsIPrincipal
     211                 : {
     212                 : public:
     213                 :   NS_DECL_ISUPPORTS
     214                 :   NS_DECL_NSIPRINCIPAL
     215                 : 
     216                 :   nsPrincipal();
     217                 : 
     218                 : private:
     219                 :   ~nsPrincipal();
     220                 : 
     221                 : protected:
     222                 :   /* additional members */
     223                 : };
     224                 : 
     225                 : /* Implementation file */
     226                 : NS_IMPL_ISUPPORTS1(nsPrincipal, nsIPrincipal)
     227                 : 
     228                 : nsPrincipal::nsPrincipal()
     229                 : {
     230                 :   /* member initializers and constructor code */
     231                 : }
     232                 : 
     233                 : nsPrincipal::~nsPrincipal()
     234                 : {
     235                 :   /* destructor code */
     236                 : }
     237                 : 
     238                 : /* void getPreferences (out string prefBranch, out string id, out string subjectName, out string grantedList, out string deniedList, out boolean isTrusted); */
     239                 : NS_IMETHODIMP nsPrincipal::GetPreferences(char * *prefBranch NS_OUTPARAM, char * *id NS_OUTPARAM, char * *subjectName NS_OUTPARAM, char * *grantedList NS_OUTPARAM, char * *deniedList NS_OUTPARAM, bool *isTrusted NS_OUTPARAM)
     240                 : {
     241                 :     return NS_ERROR_NOT_IMPLEMENTED;
     242                 : }
     243                 : 
     244                 : /* boolean equals (in nsIPrincipal other); */
     245                 : NS_IMETHODIMP nsPrincipal::Equals(nsIPrincipal *other, bool *_retval NS_OUTPARAM)
     246                 : {
     247                 :     return NS_ERROR_NOT_IMPLEMENTED;
     248                 : }
     249                 : 
     250                 : /* boolean equalsIgnoringDomain (in nsIPrincipal other); */
     251                 : NS_IMETHODIMP nsPrincipal::EqualsIgnoringDomain(nsIPrincipal *other, bool *_retval NS_OUTPARAM)
     252                 : {
     253                 :     return NS_ERROR_NOT_IMPLEMENTED;
     254                 : }
     255                 : 
     256                 : /* [noscript] readonly attribute unsigned long hashValue; */
     257                 : NS_IMETHODIMP nsPrincipal::GetHashValue(PRUint32 *aHashValue)
     258                 : {
     259                 :     return NS_ERROR_NOT_IMPLEMENTED;
     260                 : }
     261                 : 
     262                 : /* [noscript] attribute voidPtr securityPolicy; */
     263                 : NS_IMETHODIMP nsPrincipal::GetSecurityPolicy(void **aSecurityPolicy)
     264                 : {
     265                 :     return NS_ERROR_NOT_IMPLEMENTED;
     266                 : }
     267                 : NS_IMETHODIMP nsPrincipal::SetSecurityPolicy(void *aSecurityPolicy)
     268                 : {
     269                 :     return NS_ERROR_NOT_IMPLEMENTED;
     270                 : }
     271                 : 
     272                 : /* [noscript] short canEnableCapability (in string capability); */
     273                 : NS_IMETHODIMP nsPrincipal::CanEnableCapability(const char * capability, PRInt16 *_retval NS_OUTPARAM)
     274                 : {
     275                 :     return NS_ERROR_NOT_IMPLEMENTED;
     276                 : }
     277                 : 
     278                 : /* [noscript] void setCanEnableCapability (in string capability, in short canEnable); */
     279                 : NS_IMETHODIMP nsPrincipal::SetCanEnableCapability(const char * capability, PRInt16 canEnable)
     280                 : {
     281                 :     return NS_ERROR_NOT_IMPLEMENTED;
     282                 : }
     283                 : 
     284                 : /* [noscript] boolean isCapabilityEnabled (in string capability, in voidPtr annotation); */
     285                 : NS_IMETHODIMP nsPrincipal::IsCapabilityEnabled(const char * capability, void *annotation, bool *_retval NS_OUTPARAM)
     286                 : {
     287                 :     return NS_ERROR_NOT_IMPLEMENTED;
     288                 : }
     289                 : 
     290                 : /* [noscript] void enableCapability (in string capability, inout voidPtr annotation); */
     291                 : NS_IMETHODIMP nsPrincipal::EnableCapability(const char * capability, void **annotation NS_INOUTPARAM)
     292                 : {
     293                 :     return NS_ERROR_NOT_IMPLEMENTED;
     294                 : }
     295                 : 
     296                 : /* [noscript] void revertCapability (in string capability, inout voidPtr annotation); */
     297                 : NS_IMETHODIMP nsPrincipal::RevertCapability(const char * capability, void **annotation NS_INOUTPARAM)
     298                 : {
     299                 :     return NS_ERROR_NOT_IMPLEMENTED;
     300                 : }
     301                 : 
     302                 : /* [noscript] void disableCapability (in string capability, inout voidPtr annotation); */
     303                 : NS_IMETHODIMP nsPrincipal::DisableCapability(const char * capability, void **annotation NS_INOUTPARAM)
     304                 : {
     305                 :     return NS_ERROR_NOT_IMPLEMENTED;
     306                 : }
     307                 : 
     308                 : /* readonly attribute nsIURI URI; */
     309                 : NS_IMETHODIMP nsPrincipal::GetURI(nsIURI * *aURI)
     310                 : {
     311                 :     return NS_ERROR_NOT_IMPLEMENTED;
     312                 : }
     313                 : 
     314                 : /* [noscript] attribute nsIURI domain; */
     315                 : NS_IMETHODIMP nsPrincipal::GetDomain(nsIURI * *aDomain)
     316                 : {
     317                 :     return NS_ERROR_NOT_IMPLEMENTED;
     318                 : }
     319                 : NS_IMETHODIMP nsPrincipal::SetDomain(nsIURI *aDomain)
     320                 : {
     321                 :     return NS_ERROR_NOT_IMPLEMENTED;
     322                 : }
     323                 : 
     324                 : /* readonly attribute string origin; */
     325                 : NS_IMETHODIMP nsPrincipal::GetOrigin(char * *aOrigin)
     326                 : {
     327                 :     return NS_ERROR_NOT_IMPLEMENTED;
     328                 : }
     329                 : 
     330                 : /* readonly attribute boolean hasCertificate; */
     331                 : NS_IMETHODIMP nsPrincipal::GetHasCertificate(bool *aHasCertificate)
     332                 : {
     333                 :     return NS_ERROR_NOT_IMPLEMENTED;
     334                 : }
     335                 : 
     336                 : /* readonly attribute AUTF8String fingerprint; */
     337                 : NS_IMETHODIMP nsPrincipal::GetFingerprint(nsACString & aFingerprint)
     338                 : {
     339                 :     return NS_ERROR_NOT_IMPLEMENTED;
     340                 : }
     341                 : 
     342                 : /* readonly attribute AUTF8String prettyName; */
     343                 : NS_IMETHODIMP nsPrincipal::GetPrettyName(nsACString & aPrettyName)
     344                 : {
     345                 :     return NS_ERROR_NOT_IMPLEMENTED;
     346                 : }
     347                 : 
     348                 : /* boolean subsumes (in nsIPrincipal other); */
     349                 : NS_IMETHODIMP nsPrincipal::Subsumes(nsIPrincipal *other, bool *_retval NS_OUTPARAM)
     350                 : {
     351                 :     return NS_ERROR_NOT_IMPLEMENTED;
     352                 : }
     353                 : 
     354                 : /* boolean subsumesIgnoringDomain (in nsIPrincipal other); */
     355                 : NS_IMETHODIMP nsPrincipal::SubsumesIgnoringDomain(nsIPrincipal *other, bool *_retval NS_OUTPARAM)
     356                 : {
     357                 :     return NS_ERROR_NOT_IMPLEMENTED;
     358                 : }
     359                 : 
     360                 : /* void checkMayLoad (in nsIURI uri, in boolean report); */
     361                 : NS_IMETHODIMP nsPrincipal::CheckMayLoad(nsIURI *uri, bool report)
     362                 : {
     363                 :     return NS_ERROR_NOT_IMPLEMENTED;
     364                 : }
     365                 : 
     366                 : /* readonly attribute AUTF8String subjectName; */
     367                 : NS_IMETHODIMP nsPrincipal::GetSubjectName(nsACString & aSubjectName)
     368                 : {
     369                 :     return NS_ERROR_NOT_IMPLEMENTED;
     370                 : }
     371                 : 
     372                 : /* readonly attribute nsISupports certificate; */
     373                 : NS_IMETHODIMP nsPrincipal::GetCertificate(nsISupports * *aCertificate)
     374                 : {
     375                 :     return NS_ERROR_NOT_IMPLEMENTED;
     376                 : }
     377                 : 
     378                 : /* [noscript] attribute nsIContentSecurityPolicy csp; */
     379                 : NS_IMETHODIMP nsPrincipal::GetCsp(nsIContentSecurityPolicy * *aCsp)
     380                 : {
     381                 :     return NS_ERROR_NOT_IMPLEMENTED;
     382                 : }
     383                 : NS_IMETHODIMP nsPrincipal::SetCsp(nsIContentSecurityPolicy *aCsp)
     384                 : {
     385                 :     return NS_ERROR_NOT_IMPLEMENTED;
     386                 : }
     387                 : 
     388                 : /* End of implementation class template. */
     389                 : #endif
     390                 : 
     391                 : 
     392                 : #endif /* __gen_nsIPrincipal_h__ */

Generated by: LCOV version 1.7