LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsISiteSecurityService.h (source / functions) Hit Total Coverage
Test: output.info Lines: 3 4 75.0 %
Date: 2017-07-14 16:53:18 Functions: 3 4 75.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsISiteSecurityService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsISiteSecurityService_h__
       6             : #define __gen_nsISiteSecurityService_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #include "js/Value.h"
      14             : 
      15             : #include "mozilla/Assertions.h"
      16             : #include "mozilla/DebugOnly.h"
      17             : 
      18             : /* For IDL files that don't want to include root IDL files. */
      19             : #ifndef NS_NO_VTABLE
      20             : #define NS_NO_VTABLE
      21             : #endif
      22             : class nsIURI; /* forward declaration */
      23             : 
      24             : class nsIObserver; /* forward declaration */
      25             : 
      26             : class nsIHttpChannel; /* forward declaration */
      27             : 
      28             : class nsISSLStatus; /* forward declaration */
      29             : 
      30             : class nsISimpleEnumerator; /* forward declaration */
      31             : 
      32             : #include "nsTArrayForwardDeclare.h"
      33             : class nsCString;
      34             : namespace mozilla
      35             : {
      36             :   namespace pkix
      37             :   {
      38             :     class Time;
      39             :   }
      40             : }
      41             : 
      42             : /* starting interface:    nsISiteSecurityState */
      43             : #define NS_ISITESECURITYSTATE_IID_STR "31313372-842c-4110-bdf1-6aea17c845ad"
      44             : 
      45             : #define NS_ISITESECURITYSTATE_IID \
      46             :   {0x31313372, 0x842c, 0x4110, \
      47             :     { 0xbd, 0xf1, 0x6a, 0xea, 0x17, 0xc8, 0x45, 0xad }}
      48             : 
      49          16 : class NS_NO_VTABLE nsISiteSecurityState : public nsISupports {
      50             :  public:
      51             : 
      52             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISITESECURITYSTATE_IID)
      53             : 
      54             :   /* [must_use] readonly attribute ACString hostname; */
      55             :   MOZ_MUST_USE NS_IMETHOD GetHostname(nsACString & aHostname) = 0;
      56             : 
      57             :   /* [infallible] readonly attribute long long expireTime; */
      58             :   NS_IMETHOD GetExpireTime(int64_t *aExpireTime) = 0;
      59             :   inline int64_t GetExpireTime()
      60             :   {
      61             :     int64_t result;
      62             :     mozilla::DebugOnly<nsresult> rv = GetExpireTime(&result);
      63             :     MOZ_ASSERT(NS_SUCCEEDED(rv));
      64             :     return result;
      65             :   }
      66             : 
      67             :   /* [infallible] readonly attribute short securityPropertyState; */
      68             :   NS_IMETHOD GetSecurityPropertyState(int16_t *aSecurityPropertyState) = 0;
      69             :   inline int16_t GetSecurityPropertyState()
      70             :   {
      71             :     int16_t result;
      72             :     mozilla::DebugOnly<nsresult> rv = GetSecurityPropertyState(&result);
      73             :     MOZ_ASSERT(NS_SUCCEEDED(rv));
      74             :     return result;
      75             :   }
      76             : 
      77             :   /* [infallible] readonly attribute boolean includeSubdomains; */
      78             :   NS_IMETHOD GetIncludeSubdomains(bool *aIncludeSubdomains) = 0;
      79             :   inline bool GetIncludeSubdomains()
      80             :   {
      81             :     bool result;
      82             :     mozilla::DebugOnly<nsresult> rv = GetIncludeSubdomains(&result);
      83             :     MOZ_ASSERT(NS_SUCCEEDED(rv));
      84             :     return result;
      85             :   }
      86             : 
      87             :   /* [implicit_jscontext,must_use] readonly attribute jsval originAttributes; */
      88             :   MOZ_MUST_USE NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) = 0;
      89             : 
      90             :   enum {
      91             :     SECURITY_PROPERTY_UNSET = 0,
      92             :     SECURITY_PROPERTY_SET = 1,
      93             :     SECURITY_PROPERTY_KNOCKOUT = 2,
      94             :     SECURITY_PROPERTY_NEGATIVE = 3
      95             :   };
      96             : 
      97             : };
      98             : 
      99             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISiteSecurityState, NS_ISITESECURITYSTATE_IID)
     100             : 
     101             : /* Use this macro when declaring classes that implement this interface. */
     102             : #define NS_DECL_NSISITESECURITYSTATE \
     103             :   MOZ_MUST_USE NS_IMETHOD GetHostname(nsACString & aHostname) override; \
     104             :   using nsISiteSecurityState::GetExpireTime; \
     105             :   NS_IMETHOD GetExpireTime(int64_t *aExpireTime) override; \
     106             :   using nsISiteSecurityState::GetSecurityPropertyState; \
     107             :   NS_IMETHOD GetSecurityPropertyState(int16_t *aSecurityPropertyState) override; \
     108             :   using nsISiteSecurityState::GetIncludeSubdomains; \
     109             :   NS_IMETHOD GetIncludeSubdomains(bool *aIncludeSubdomains) override; \
     110             :   MOZ_MUST_USE NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) override; \
     111             : 
     112             : /* Use this macro when declaring the members of this interface when the
     113             :    class doesn't implement the interface. This is useful for forwarding. */
     114             : #define NS_DECL_NON_VIRTUAL_NSISITESECURITYSTATE \
     115             :   MOZ_MUST_USE nsresult GetHostname(nsACString & aHostname); \
     116             :   using nsISiteSecurityState::GetExpireTime; \
     117             :   nsresult GetExpireTime(int64_t *aExpireTime); \
     118             :   using nsISiteSecurityState::GetSecurityPropertyState; \
     119             :   nsresult GetSecurityPropertyState(int16_t *aSecurityPropertyState); \
     120             :   using nsISiteSecurityState::GetIncludeSubdomains; \
     121             :   nsresult GetIncludeSubdomains(bool *aIncludeSubdomains); \
     122             :   MOZ_MUST_USE nsresult GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes); \
     123             : 
     124             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     125             : #define NS_FORWARD_NSISITESECURITYSTATE(_to) \
     126             :   MOZ_MUST_USE NS_IMETHOD GetHostname(nsACString & aHostname) override { return _to GetHostname(aHostname); } \
     127             :   using nsISiteSecurityState::GetExpireTime; \
     128             :   NS_IMETHOD GetExpireTime(int64_t *aExpireTime) override { return _to GetExpireTime(aExpireTime); } \
     129             :   using nsISiteSecurityState::GetSecurityPropertyState; \
     130             :   NS_IMETHOD GetSecurityPropertyState(int16_t *aSecurityPropertyState) override { return _to GetSecurityPropertyState(aSecurityPropertyState); } \
     131             :   using nsISiteSecurityState::GetIncludeSubdomains; \
     132             :   NS_IMETHOD GetIncludeSubdomains(bool *aIncludeSubdomains) override { return _to GetIncludeSubdomains(aIncludeSubdomains); } \
     133             :   MOZ_MUST_USE NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) override { return _to GetOriginAttributes(cx, aOriginAttributes); } \
     134             : 
     135             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     136             : #define NS_FORWARD_SAFE_NSISITESECURITYSTATE(_to) \
     137             :   MOZ_MUST_USE NS_IMETHOD GetHostname(nsACString & aHostname) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHostname(aHostname); } \
     138             :   NS_IMETHOD GetExpireTime(int64_t *aExpireTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpireTime(aExpireTime); } \
     139             :   NS_IMETHOD GetSecurityPropertyState(int16_t *aSecurityPropertyState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityPropertyState(aSecurityPropertyState); } \
     140             :   NS_IMETHOD GetIncludeSubdomains(bool *aIncludeSubdomains) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIncludeSubdomains(aIncludeSubdomains); } \
     141             :   MOZ_MUST_USE NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginAttributes(cx, aOriginAttributes); } \
     142             : 
     143             : #if 0
     144             : /* Use the code below as a template for the implementation class for this interface. */
     145             : 
     146             : /* Header file */
     147             : class nsSiteSecurityState : public nsISiteSecurityState
     148             : {
     149             : public:
     150             :   NS_DECL_ISUPPORTS
     151             :   NS_DECL_NSISITESECURITYSTATE
     152             : 
     153             :   nsSiteSecurityState();
     154             : 
     155             : private:
     156             :   ~nsSiteSecurityState();
     157             : 
     158             : protected:
     159             :   /* additional members */
     160             : };
     161             : 
     162             : /* Implementation file */
     163             : NS_IMPL_ISUPPORTS(nsSiteSecurityState, nsISiteSecurityState)
     164             : 
     165             : nsSiteSecurityState::nsSiteSecurityState()
     166             : {
     167             :   /* member initializers and constructor code */
     168             : }
     169             : 
     170             : nsSiteSecurityState::~nsSiteSecurityState()
     171             : {
     172             :   /* destructor code */
     173             : }
     174             : 
     175             : /* [must_use] readonly attribute ACString hostname; */
     176             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityState::GetHostname(nsACString & aHostname)
     177             : {
     178             :     return NS_ERROR_NOT_IMPLEMENTED;
     179             : }
     180             : 
     181             : /* [infallible] readonly attribute long long expireTime; */
     182             : NS_IMETHODIMP nsSiteSecurityState::GetExpireTime(int64_t *aExpireTime)
     183             : {
     184             :     return NS_ERROR_NOT_IMPLEMENTED;
     185             : }
     186             : 
     187             : /* [infallible] readonly attribute short securityPropertyState; */
     188             : NS_IMETHODIMP nsSiteSecurityState::GetSecurityPropertyState(int16_t *aSecurityPropertyState)
     189             : {
     190             :     return NS_ERROR_NOT_IMPLEMENTED;
     191             : }
     192             : 
     193             : /* [infallible] readonly attribute boolean includeSubdomains; */
     194             : NS_IMETHODIMP nsSiteSecurityState::GetIncludeSubdomains(bool *aIncludeSubdomains)
     195             : {
     196             :     return NS_ERROR_NOT_IMPLEMENTED;
     197             : }
     198             : 
     199             : /* [implicit_jscontext,must_use] readonly attribute jsval originAttributes; */
     200             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityState::GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes)
     201             : {
     202             :     return NS_ERROR_NOT_IMPLEMENTED;
     203             : }
     204             : 
     205             : /* End of implementation class template. */
     206             : #endif
     207             : 
     208             : 
     209             : /* starting interface:    nsISiteHSTSState */
     210             : #define NS_ISITEHSTSSTATE_IID_STR "9ff16e40-1029-496c-95c2-bc819872b216"
     211             : 
     212             : #define NS_ISITEHSTSSTATE_IID \
     213             :   {0x9ff16e40, 0x1029, 0x496c, \
     214             :     { 0x95, 0xc2, 0xbc, 0x81, 0x98, 0x72, 0xb2, 0x16 }}
     215             : 
     216          16 : class NS_NO_VTABLE nsISiteHSTSState : public nsISiteSecurityState {
     217             :  public:
     218             : 
     219             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISITEHSTSSTATE_IID)
     220             : 
     221             : };
     222             : 
     223             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISiteHSTSState, NS_ISITEHSTSSTATE_IID)
     224             : 
     225             : /* Use this macro when declaring classes that implement this interface. */
     226             : #define NS_DECL_NSISITEHSTSSTATE \
     227             :   /* no methods! */
     228             : 
     229             : /* Use this macro when declaring the members of this interface when the
     230             :    class doesn't implement the interface. This is useful for forwarding. */
     231             : #define NS_DECL_NON_VIRTUAL_NSISITEHSTSSTATE \
     232             :   /* no methods! */
     233             : 
     234             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     235             : #define NS_FORWARD_NSISITEHSTSSTATE(_to) \
     236             :   /* no methods! */
     237             : 
     238             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     239             : #define NS_FORWARD_SAFE_NSISITEHSTSSTATE(_to) \
     240             :   /* no methods! */
     241             : 
     242             : #if 0
     243             : /* Use the code below as a template for the implementation class for this interface. */
     244             : 
     245             : /* Header file */
     246             : class nsSiteHSTSState : public nsISiteHSTSState
     247             : {
     248             : public:
     249             :   NS_DECL_ISUPPORTS
     250             :   NS_DECL_NSISITEHSTSSTATE
     251             : 
     252             :   nsSiteHSTSState();
     253             : 
     254             : private:
     255             :   ~nsSiteHSTSState();
     256             : 
     257             : protected:
     258             :   /* additional members */
     259             : };
     260             : 
     261             : /* Implementation file */
     262             : NS_IMPL_ISUPPORTS(nsSiteHSTSState, nsISiteHSTSState)
     263             : 
     264             : nsSiteHSTSState::nsSiteHSTSState()
     265             : {
     266             :   /* member initializers and constructor code */
     267             : }
     268             : 
     269             : nsSiteHSTSState::~nsSiteHSTSState()
     270             : {
     271             :   /* destructor code */
     272             : }
     273             : 
     274             : /* End of implementation class template. */
     275             : #endif
     276             : 
     277             : 
     278             : /* starting interface:    nsISiteHPKPState */
     279             : #define NS_ISITEHPKPSTATE_IID_STR "ae395078-c7d0-474d-b147-f4aa203a9b2c"
     280             : 
     281             : #define NS_ISITEHPKPSTATE_IID \
     282             :   {0xae395078, 0xc7d0, 0x474d, \
     283             :     { 0xb1, 0x47, 0xf4, 0xaa, 0x20, 0x3a, 0x9b, 0x2c }}
     284             : 
     285           0 : class NS_NO_VTABLE nsISiteHPKPState : public nsISiteSecurityState {
     286             :  public:
     287             : 
     288             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISITEHPKPSTATE_IID)
     289             : 
     290             :   /* [must_use] readonly attribute nsISimpleEnumerator sha256Keys; */
     291             :   MOZ_MUST_USE NS_IMETHOD GetSha256Keys(nsISimpleEnumerator * *aSha256Keys) = 0;
     292             : 
     293             : };
     294             : 
     295             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISiteHPKPState, NS_ISITEHPKPSTATE_IID)
     296             : 
     297             : /* Use this macro when declaring classes that implement this interface. */
     298             : #define NS_DECL_NSISITEHPKPSTATE \
     299             :   MOZ_MUST_USE NS_IMETHOD GetSha256Keys(nsISimpleEnumerator * *aSha256Keys) override; 
     300             : 
     301             : /* Use this macro when declaring the members of this interface when the
     302             :    class doesn't implement the interface. This is useful for forwarding. */
     303             : #define NS_DECL_NON_VIRTUAL_NSISITEHPKPSTATE \
     304             :   MOZ_MUST_USE nsresult GetSha256Keys(nsISimpleEnumerator * *aSha256Keys); 
     305             : 
     306             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     307             : #define NS_FORWARD_NSISITEHPKPSTATE(_to) \
     308             :   MOZ_MUST_USE NS_IMETHOD GetSha256Keys(nsISimpleEnumerator * *aSha256Keys) override { return _to GetSha256Keys(aSha256Keys); } 
     309             : 
     310             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     311             : #define NS_FORWARD_SAFE_NSISITEHPKPSTATE(_to) \
     312             :   MOZ_MUST_USE NS_IMETHOD GetSha256Keys(nsISimpleEnumerator * *aSha256Keys) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSha256Keys(aSha256Keys); } 
     313             : 
     314             : #if 0
     315             : /* Use the code below as a template for the implementation class for this interface. */
     316             : 
     317             : /* Header file */
     318             : class nsSiteHPKPState : public nsISiteHPKPState
     319             : {
     320             : public:
     321             :   NS_DECL_ISUPPORTS
     322             :   NS_DECL_NSISITEHPKPSTATE
     323             : 
     324             :   nsSiteHPKPState();
     325             : 
     326             : private:
     327             :   ~nsSiteHPKPState();
     328             : 
     329             : protected:
     330             :   /* additional members */
     331             : };
     332             : 
     333             : /* Implementation file */
     334             : NS_IMPL_ISUPPORTS(nsSiteHPKPState, nsISiteHPKPState)
     335             : 
     336             : nsSiteHPKPState::nsSiteHPKPState()
     337             : {
     338             :   /* member initializers and constructor code */
     339             : }
     340             : 
     341             : nsSiteHPKPState::~nsSiteHPKPState()
     342             : {
     343             :   /* destructor code */
     344             : }
     345             : 
     346             : /* [must_use] readonly attribute nsISimpleEnumerator sha256Keys; */
     347             : MOZ_MUST_USE NS_IMETHODIMP nsSiteHPKPState::GetSha256Keys(nsISimpleEnumerator * *aSha256Keys)
     348             : {
     349             :     return NS_ERROR_NOT_IMPLEMENTED;
     350             : }
     351             : 
     352             : /* End of implementation class template. */
     353             : #endif
     354             : 
     355             : 
     356             : /* starting interface:    nsISiteSecurityService */
     357             : #define NS_ISITESECURITYSERVICE_IID_STR "275127f8-dbd7-4681-afbf-6df0c6587a01"
     358             : 
     359             : #define NS_ISITESECURITYSERVICE_IID \
     360             :   {0x275127f8, 0xdbd7, 0x4681, \
     361             :     { 0xaf, 0xbf, 0x6d, 0xf0, 0xc6, 0x58, 0x7a, 0x01 }}
     362             : 
     363           2 : class NS_NO_VTABLE nsISiteSecurityService : public nsISupports {
     364             :  public:
     365             : 
     366             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISITESECURITYSERVICE_IID)
     367             : 
     368             :   enum {
     369             :     HEADER_HSTS = 0U,
     370             :     HEADER_HPKP = 1U,
     371             :     HEADER_OMS = 2U,
     372             :     Success = 0U,
     373             :     ERROR_UNKNOWN = 1U,
     374             :     ERROR_UNTRUSTWORTHY_CONNECTION = 2U,
     375             :     ERROR_COULD_NOT_PARSE_HEADER = 3U,
     376             :     ERROR_NO_MAX_AGE = 4U,
     377             :     ERROR_MULTIPLE_MAX_AGES = 5U,
     378             :     ERROR_INVALID_MAX_AGE = 6U,
     379             :     ERROR_MULTIPLE_INCLUDE_SUBDOMAINS = 7U,
     380             :     ERROR_INVALID_INCLUDE_SUBDOMAINS = 8U,
     381             :     ERROR_INVALID_PIN = 9U,
     382             :     ERROR_MULTIPLE_REPORT_URIS = 10U,
     383             :     ERROR_PINSET_DOES_NOT_MATCH_CHAIN = 11U,
     384             :     ERROR_NO_BACKUP_PIN = 12U,
     385             :     ERROR_COULD_NOT_SAVE_STATE = 13U,
     386             :     ERROR_ROOT_NOT_BUILT_IN = 14U,
     387             :     SOURCE_UNKNOWN = 0U,
     388             :     SOURCE_PRELOAD_LIST = 1U,
     389             :     SOURCE_ORGANIC_REQUEST = 2U,
     390             :     SOURCE_HSTS_PRIMING = 3U
     391             :   };
     392             : 
     393             :   /* [binaryname(ProcessHeader),must_use,noscript] void processHeaderNative (in uint32_t aType, in nsIURI aSourceURI, in ACString aHeader, in nsISSLStatus aSSLStatus, in uint32_t aFlags, in uint32_t aSource, in const_OriginAttributesRef aOriginAttributes, [optional] out unsigned long long aMaxAge, [optional] out boolean aIncludeSubdomains, [optional] out uint32_t aFailureResult); */
     394             :   MOZ_MUST_USE NS_IMETHOD ProcessHeader(uint32_t aType, nsIURI *aSourceURI, const nsACString & aHeader, nsISSLStatus *aSSLStatus, uint32_t aFlags, uint32_t aSource, const mozilla::OriginAttributes & aOriginAttributes, uint64_t *aMaxAge = nullptr, bool *aIncludeSubdomains = nullptr, uint32_t *aFailureResult = nullptr) = 0;
     395             : 
     396             :   /* [binaryname(ProcessHeaderScriptable),implicit_jscontext,must_use,optional_argc] void processHeader (in uint32_t aType, in nsIURI aSourceURI, in ACString aHeader, in nsISSLStatus aSSLStatus, in uint32_t aFlags, in uint32_t aSource, [optional] in jsval aOriginAttributes, [optional] out unsigned long long aMaxAge, [optional] out boolean aIncludeSubdomains, [optional] out uint32_t aFailureResult); */
     397             :   MOZ_MUST_USE NS_IMETHOD ProcessHeaderScriptable(uint32_t aType, nsIURI *aSourceURI, const nsACString & aHeader, nsISSLStatus *aSSLStatus, uint32_t aFlags, uint32_t aSource, JS::HandleValue aOriginAttributes, uint64_t *aMaxAge, bool *aIncludeSubdomains, uint32_t *aFailureResult, JSContext* cx, uint8_t _argc) = 0;
     398             : 
     399             :   /* [implicit_jscontext,must_use,optional_argc] void removeState (in uint32_t aType, in nsIURI aURI, in uint32_t aFlags, [optional] in jsval aOriginAttributes); */
     400             :   MOZ_MUST_USE NS_IMETHOD RemoveState(uint32_t aType, nsIURI *aURI, uint32_t aFlags, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc) = 0;
     401             : 
     402             :   /* [binaryname(IsSecureURI),must_use,noscript] boolean isSecureURINative (in uint32_t aType, in nsIURI aURI, in uint32_t aFlags, in const_OriginAttributesRef aOriginAttributes, [optional] out boolean aCached, [optional] out uint32_t aSource); */
     403             :   MOZ_MUST_USE NS_IMETHOD IsSecureURI(uint32_t aType, nsIURI *aURI, uint32_t aFlags, const mozilla::OriginAttributes & aOriginAttributes, bool *aCached, uint32_t *aSource, bool *_retval) = 0;
     404             : 
     405             :   /* [binaryname(IsSecureURIScriptable),implicit_jscontext,must_use,optional_argc] boolean isSecureURI (in uint32_t aType, in nsIURI aURI, in uint32_t aFlags, [optional] in jsval aOriginAttributes, [optional] out boolean aCached, [optional] out uint32_t aSource); */
     406             :   MOZ_MUST_USE NS_IMETHOD IsSecureURIScriptable(uint32_t aType, nsIURI *aURI, uint32_t aFlags, JS::HandleValue aOriginAttributes, bool *aCached, uint32_t *aSource, JSContext* cx, uint8_t _argc, bool *_retval) = 0;
     407             : 
     408             :   /* [must_use] void clearAll (); */
     409             :   MOZ_MUST_USE NS_IMETHOD ClearAll(void) = 0;
     410             : 
     411             :   /* [must_use] void clearPreloads (); */
     412             :   MOZ_MUST_USE NS_IMETHOD ClearPreloads(void) = 0;
     413             : 
     414             :   /* [must_use,noscript] boolean getKeyPinsForHostname (in ACString aHostname, in mozillaPkixTime evalTime, in const_OriginAttributesRef aOriginAttributes, out nsCStringTArrayRef aPinArray, out boolean aIncludeSubdomains); */
     415             :   MOZ_MUST_USE NS_IMETHOD GetKeyPinsForHostname(const nsACString & aHostname, mozilla::pkix::Time & evalTime, const mozilla::OriginAttributes & aOriginAttributes, nsTArray<nsCString> & aPinArray, bool *aIncludeSubdomains, bool *_retval) = 0;
     416             : 
     417             :   /* [implicit_jscontext,must_use,optional_argc] boolean setKeyPins (in ACString aHost, in boolean aIncludeSubdomains, in int64_t aExpires, in unsigned long aPinCount, [array, size_is (aPinCount)] in string aSha256Pins, [optional] in boolean aIsPreload, [optional] in jsval aOriginAttributes); */
     418             :   MOZ_MUST_USE NS_IMETHOD SetKeyPins(const nsACString & aHost, bool aIncludeSubdomains, int64_t aExpires, uint32_t aPinCount, const char * *aSha256Pins, bool aIsPreload, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, bool *_retval) = 0;
     419             : 
     420             :   /* [must_use] boolean setHSTSPreload (in ACString aHost, in boolean aIncludesSubdomains, in int64_t aExpires); */
     421             :   MOZ_MUST_USE NS_IMETHOD SetHSTSPreload(const nsACString & aHost, bool aIncludesSubdomains, int64_t aExpires, bool *_retval) = 0;
     422             : 
     423             :   /* [must_use,noscript] void cacheNegativeHSTSResult (in nsIURI aURI, in unsigned long long aMaxAge, in const_OriginAttributesRef aOriginAttributes); */
     424             :   MOZ_MUST_USE NS_IMETHOD CacheNegativeHSTSResult(nsIURI *aURI, uint64_t aMaxAge, const mozilla::OriginAttributes & aOriginAttributes) = 0;
     425             : 
     426             :   /* [must_use] nsISimpleEnumerator enumerate (in uint32_t aType); */
     427             :   MOZ_MUST_USE NS_IMETHOD Enumerate(uint32_t aType, nsISimpleEnumerator * *_retval) = 0;
     428             : 
     429             : };
     430             : 
     431             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISiteSecurityService, NS_ISITESECURITYSERVICE_IID)
     432             : 
     433             : /* Use this macro when declaring classes that implement this interface. */
     434             : #define NS_DECL_NSISITESECURITYSERVICE \
     435             :   MOZ_MUST_USE NS_IMETHOD ProcessHeader(uint32_t aType, nsIURI *aSourceURI, const nsACString & aHeader, nsISSLStatus *aSSLStatus, uint32_t aFlags, uint32_t aSource, const mozilla::OriginAttributes & aOriginAttributes, uint64_t *aMaxAge = nullptr, bool *aIncludeSubdomains = nullptr, uint32_t *aFailureResult = nullptr) override; \
     436             :   MOZ_MUST_USE NS_IMETHOD ProcessHeaderScriptable(uint32_t aType, nsIURI *aSourceURI, const nsACString & aHeader, nsISSLStatus *aSSLStatus, uint32_t aFlags, uint32_t aSource, JS::HandleValue aOriginAttributes, uint64_t *aMaxAge, bool *aIncludeSubdomains, uint32_t *aFailureResult, JSContext* cx, uint8_t _argc) override; \
     437             :   MOZ_MUST_USE NS_IMETHOD RemoveState(uint32_t aType, nsIURI *aURI, uint32_t aFlags, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc) override; \
     438             :   MOZ_MUST_USE NS_IMETHOD IsSecureURI(uint32_t aType, nsIURI *aURI, uint32_t aFlags, const mozilla::OriginAttributes & aOriginAttributes, bool *aCached, uint32_t *aSource, bool *_retval) override; \
     439             :   MOZ_MUST_USE NS_IMETHOD IsSecureURIScriptable(uint32_t aType, nsIURI *aURI, uint32_t aFlags, JS::HandleValue aOriginAttributes, bool *aCached, uint32_t *aSource, JSContext* cx, uint8_t _argc, bool *_retval) override; \
     440             :   MOZ_MUST_USE NS_IMETHOD ClearAll(void) override; \
     441             :   MOZ_MUST_USE NS_IMETHOD ClearPreloads(void) override; \
     442             :   MOZ_MUST_USE NS_IMETHOD GetKeyPinsForHostname(const nsACString & aHostname, mozilla::pkix::Time & evalTime, const mozilla::OriginAttributes & aOriginAttributes, nsTArray<nsCString> & aPinArray, bool *aIncludeSubdomains, bool *_retval) override; \
     443             :   MOZ_MUST_USE NS_IMETHOD SetKeyPins(const nsACString & aHost, bool aIncludeSubdomains, int64_t aExpires, uint32_t aPinCount, const char * *aSha256Pins, bool aIsPreload, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, bool *_retval) override; \
     444             :   MOZ_MUST_USE NS_IMETHOD SetHSTSPreload(const nsACString & aHost, bool aIncludesSubdomains, int64_t aExpires, bool *_retval) override; \
     445             :   MOZ_MUST_USE NS_IMETHOD CacheNegativeHSTSResult(nsIURI *aURI, uint64_t aMaxAge, const mozilla::OriginAttributes & aOriginAttributes) override; \
     446             :   MOZ_MUST_USE NS_IMETHOD Enumerate(uint32_t aType, nsISimpleEnumerator * *_retval) override; 
     447             : 
     448             : /* Use this macro when declaring the members of this interface when the
     449             :    class doesn't implement the interface. This is useful for forwarding. */
     450             : #define NS_DECL_NON_VIRTUAL_NSISITESECURITYSERVICE \
     451             :   MOZ_MUST_USE nsresult ProcessHeader(uint32_t aType, nsIURI *aSourceURI, const nsACString & aHeader, nsISSLStatus *aSSLStatus, uint32_t aFlags, uint32_t aSource, const mozilla::OriginAttributes & aOriginAttributes, uint64_t *aMaxAge = nullptr, bool *aIncludeSubdomains = nullptr, uint32_t *aFailureResult = nullptr); \
     452             :   MOZ_MUST_USE nsresult ProcessHeaderScriptable(uint32_t aType, nsIURI *aSourceURI, const nsACString & aHeader, nsISSLStatus *aSSLStatus, uint32_t aFlags, uint32_t aSource, JS::HandleValue aOriginAttributes, uint64_t *aMaxAge, bool *aIncludeSubdomains, uint32_t *aFailureResult, JSContext* cx, uint8_t _argc); \
     453             :   MOZ_MUST_USE nsresult RemoveState(uint32_t aType, nsIURI *aURI, uint32_t aFlags, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc); \
     454             :   MOZ_MUST_USE nsresult IsSecureURI(uint32_t aType, nsIURI *aURI, uint32_t aFlags, const mozilla::OriginAttributes & aOriginAttributes, bool *aCached, uint32_t *aSource, bool *_retval); \
     455             :   MOZ_MUST_USE nsresult IsSecureURIScriptable(uint32_t aType, nsIURI *aURI, uint32_t aFlags, JS::HandleValue aOriginAttributes, bool *aCached, uint32_t *aSource, JSContext* cx, uint8_t _argc, bool *_retval); \
     456             :   MOZ_MUST_USE nsresult ClearAll(void); \
     457             :   MOZ_MUST_USE nsresult ClearPreloads(void); \
     458             :   MOZ_MUST_USE nsresult GetKeyPinsForHostname(const nsACString & aHostname, mozilla::pkix::Time & evalTime, const mozilla::OriginAttributes & aOriginAttributes, nsTArray<nsCString> & aPinArray, bool *aIncludeSubdomains, bool *_retval); \
     459             :   MOZ_MUST_USE nsresult SetKeyPins(const nsACString & aHost, bool aIncludeSubdomains, int64_t aExpires, uint32_t aPinCount, const char * *aSha256Pins, bool aIsPreload, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, bool *_retval); \
     460             :   MOZ_MUST_USE nsresult SetHSTSPreload(const nsACString & aHost, bool aIncludesSubdomains, int64_t aExpires, bool *_retval); \
     461             :   MOZ_MUST_USE nsresult CacheNegativeHSTSResult(nsIURI *aURI, uint64_t aMaxAge, const mozilla::OriginAttributes & aOriginAttributes); \
     462             :   MOZ_MUST_USE nsresult Enumerate(uint32_t aType, nsISimpleEnumerator * *_retval); 
     463             : 
     464             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     465             : #define NS_FORWARD_NSISITESECURITYSERVICE(_to) \
     466             :   MOZ_MUST_USE NS_IMETHOD ProcessHeader(uint32_t aType, nsIURI *aSourceURI, const nsACString & aHeader, nsISSLStatus *aSSLStatus, uint32_t aFlags, uint32_t aSource, const mozilla::OriginAttributes & aOriginAttributes, uint64_t *aMaxAge = nullptr, bool *aIncludeSubdomains = nullptr, uint32_t *aFailureResult = nullptr) override { return _to ProcessHeader(aType, aSourceURI, aHeader, aSSLStatus, aFlags, aSource, aOriginAttributes, aMaxAge, aIncludeSubdomains, aFailureResult); } \
     467             :   MOZ_MUST_USE NS_IMETHOD ProcessHeaderScriptable(uint32_t aType, nsIURI *aSourceURI, const nsACString & aHeader, nsISSLStatus *aSSLStatus, uint32_t aFlags, uint32_t aSource, JS::HandleValue aOriginAttributes, uint64_t *aMaxAge, bool *aIncludeSubdomains, uint32_t *aFailureResult, JSContext* cx, uint8_t _argc) override { return _to ProcessHeaderScriptable(aType, aSourceURI, aHeader, aSSLStatus, aFlags, aSource, aOriginAttributes, aMaxAge, aIncludeSubdomains, aFailureResult, cx, _argc); } \
     468             :   MOZ_MUST_USE NS_IMETHOD RemoveState(uint32_t aType, nsIURI *aURI, uint32_t aFlags, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc) override { return _to RemoveState(aType, aURI, aFlags, aOriginAttributes, cx, _argc); } \
     469             :   MOZ_MUST_USE NS_IMETHOD IsSecureURI(uint32_t aType, nsIURI *aURI, uint32_t aFlags, const mozilla::OriginAttributes & aOriginAttributes, bool *aCached, uint32_t *aSource, bool *_retval) override { return _to IsSecureURI(aType, aURI, aFlags, aOriginAttributes, aCached, aSource, _retval); } \
     470             :   MOZ_MUST_USE NS_IMETHOD IsSecureURIScriptable(uint32_t aType, nsIURI *aURI, uint32_t aFlags, JS::HandleValue aOriginAttributes, bool *aCached, uint32_t *aSource, JSContext* cx, uint8_t _argc, bool *_retval) override { return _to IsSecureURIScriptable(aType, aURI, aFlags, aOriginAttributes, aCached, aSource, cx, _argc, _retval); } \
     471             :   MOZ_MUST_USE NS_IMETHOD ClearAll(void) override { return _to ClearAll(); } \
     472             :   MOZ_MUST_USE NS_IMETHOD ClearPreloads(void) override { return _to ClearPreloads(); } \
     473             :   MOZ_MUST_USE NS_IMETHOD GetKeyPinsForHostname(const nsACString & aHostname, mozilla::pkix::Time & evalTime, const mozilla::OriginAttributes & aOriginAttributes, nsTArray<nsCString> & aPinArray, bool *aIncludeSubdomains, bool *_retval) override { return _to GetKeyPinsForHostname(aHostname, evalTime, aOriginAttributes, aPinArray, aIncludeSubdomains, _retval); } \
     474             :   MOZ_MUST_USE NS_IMETHOD SetKeyPins(const nsACString & aHost, bool aIncludeSubdomains, int64_t aExpires, uint32_t aPinCount, const char * *aSha256Pins, bool aIsPreload, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, bool *_retval) override { return _to SetKeyPins(aHost, aIncludeSubdomains, aExpires, aPinCount, aSha256Pins, aIsPreload, aOriginAttributes, cx, _argc, _retval); } \
     475             :   MOZ_MUST_USE NS_IMETHOD SetHSTSPreload(const nsACString & aHost, bool aIncludesSubdomains, int64_t aExpires, bool *_retval) override { return _to SetHSTSPreload(aHost, aIncludesSubdomains, aExpires, _retval); } \
     476             :   MOZ_MUST_USE NS_IMETHOD CacheNegativeHSTSResult(nsIURI *aURI, uint64_t aMaxAge, const mozilla::OriginAttributes & aOriginAttributes) override { return _to CacheNegativeHSTSResult(aURI, aMaxAge, aOriginAttributes); } \
     477             :   MOZ_MUST_USE NS_IMETHOD Enumerate(uint32_t aType, nsISimpleEnumerator * *_retval) override { return _to Enumerate(aType, _retval); } 
     478             : 
     479             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     480             : #define NS_FORWARD_SAFE_NSISITESECURITYSERVICE(_to) \
     481             :   MOZ_MUST_USE NS_IMETHOD ProcessHeader(uint32_t aType, nsIURI *aSourceURI, const nsACString & aHeader, nsISSLStatus *aSSLStatus, uint32_t aFlags, uint32_t aSource, const mozilla::OriginAttributes & aOriginAttributes, uint64_t *aMaxAge = nullptr, bool *aIncludeSubdomains = nullptr, uint32_t *aFailureResult = nullptr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessHeader(aType, aSourceURI, aHeader, aSSLStatus, aFlags, aSource, aOriginAttributes, aMaxAge, aIncludeSubdomains, aFailureResult); } \
     482             :   MOZ_MUST_USE NS_IMETHOD ProcessHeaderScriptable(uint32_t aType, nsIURI *aSourceURI, const nsACString & aHeader, nsISSLStatus *aSSLStatus, uint32_t aFlags, uint32_t aSource, JS::HandleValue aOriginAttributes, uint64_t *aMaxAge, bool *aIncludeSubdomains, uint32_t *aFailureResult, JSContext* cx, uint8_t _argc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessHeaderScriptable(aType, aSourceURI, aHeader, aSSLStatus, aFlags, aSource, aOriginAttributes, aMaxAge, aIncludeSubdomains, aFailureResult, cx, _argc); } \
     483             :   MOZ_MUST_USE NS_IMETHOD RemoveState(uint32_t aType, nsIURI *aURI, uint32_t aFlags, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveState(aType, aURI, aFlags, aOriginAttributes, cx, _argc); } \
     484             :   MOZ_MUST_USE NS_IMETHOD IsSecureURI(uint32_t aType, nsIURI *aURI, uint32_t aFlags, const mozilla::OriginAttributes & aOriginAttributes, bool *aCached, uint32_t *aSource, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSecureURI(aType, aURI, aFlags, aOriginAttributes, aCached, aSource, _retval); } \
     485             :   MOZ_MUST_USE NS_IMETHOD IsSecureURIScriptable(uint32_t aType, nsIURI *aURI, uint32_t aFlags, JS::HandleValue aOriginAttributes, bool *aCached, uint32_t *aSource, JSContext* cx, uint8_t _argc, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSecureURIScriptable(aType, aURI, aFlags, aOriginAttributes, aCached, aSource, cx, _argc, _retval); } \
     486             :   MOZ_MUST_USE NS_IMETHOD ClearAll(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearAll(); } \
     487             :   MOZ_MUST_USE NS_IMETHOD ClearPreloads(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearPreloads(); } \
     488             :   MOZ_MUST_USE NS_IMETHOD GetKeyPinsForHostname(const nsACString & aHostname, mozilla::pkix::Time & evalTime, const mozilla::OriginAttributes & aOriginAttributes, nsTArray<nsCString> & aPinArray, bool *aIncludeSubdomains, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyPinsForHostname(aHostname, evalTime, aOriginAttributes, aPinArray, aIncludeSubdomains, _retval); } \
     489             :   MOZ_MUST_USE NS_IMETHOD SetKeyPins(const nsACString & aHost, bool aIncludeSubdomains, int64_t aExpires, uint32_t aPinCount, const char * *aSha256Pins, bool aIsPreload, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetKeyPins(aHost, aIncludeSubdomains, aExpires, aPinCount, aSha256Pins, aIsPreload, aOriginAttributes, cx, _argc, _retval); } \
     490             :   MOZ_MUST_USE NS_IMETHOD SetHSTSPreload(const nsACString & aHost, bool aIncludesSubdomains, int64_t aExpires, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHSTSPreload(aHost, aIncludesSubdomains, aExpires, _retval); } \
     491             :   MOZ_MUST_USE NS_IMETHOD CacheNegativeHSTSResult(nsIURI *aURI, uint64_t aMaxAge, const mozilla::OriginAttributes & aOriginAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CacheNegativeHSTSResult(aURI, aMaxAge, aOriginAttributes); } \
     492             :   MOZ_MUST_USE NS_IMETHOD Enumerate(uint32_t aType, nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Enumerate(aType, _retval); } 
     493             : 
     494             : #if 0
     495             : /* Use the code below as a template for the implementation class for this interface. */
     496             : 
     497             : /* Header file */
     498             : class nsSiteSecurityService : public nsISiteSecurityService
     499             : {
     500             : public:
     501             :   NS_DECL_ISUPPORTS
     502             :   NS_DECL_NSISITESECURITYSERVICE
     503             : 
     504             :   nsSiteSecurityService();
     505             : 
     506             : private:
     507             :   ~nsSiteSecurityService();
     508             : 
     509             : protected:
     510             :   /* additional members */
     511             : };
     512             : 
     513             : /* Implementation file */
     514             : NS_IMPL_ISUPPORTS(nsSiteSecurityService, nsISiteSecurityService)
     515             : 
     516             : nsSiteSecurityService::nsSiteSecurityService()
     517             : {
     518             :   /* member initializers and constructor code */
     519             : }
     520             : 
     521             : nsSiteSecurityService::~nsSiteSecurityService()
     522             : {
     523             :   /* destructor code */
     524             : }
     525             : 
     526             : /* [binaryname(ProcessHeader),must_use,noscript] void processHeaderNative (in uint32_t aType, in nsIURI aSourceURI, in ACString aHeader, in nsISSLStatus aSSLStatus, in uint32_t aFlags, in uint32_t aSource, in const_OriginAttributesRef aOriginAttributes, [optional] out unsigned long long aMaxAge, [optional] out boolean aIncludeSubdomains, [optional] out uint32_t aFailureResult); */
     527             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityService::ProcessHeader(uint32_t aType, nsIURI *aSourceURI, const nsACString & aHeader, nsISSLStatus *aSSLStatus, uint32_t aFlags, uint32_t aSource, const mozilla::OriginAttributes & aOriginAttributes, uint64_t *aMaxAge = nullptr, bool *aIncludeSubdomains = nullptr, uint32_t *aFailureResult = nullptr)
     528             : {
     529             :     return NS_ERROR_NOT_IMPLEMENTED;
     530             : }
     531             : 
     532             : /* [binaryname(ProcessHeaderScriptable),implicit_jscontext,must_use,optional_argc] void processHeader (in uint32_t aType, in nsIURI aSourceURI, in ACString aHeader, in nsISSLStatus aSSLStatus, in uint32_t aFlags, in uint32_t aSource, [optional] in jsval aOriginAttributes, [optional] out unsigned long long aMaxAge, [optional] out boolean aIncludeSubdomains, [optional] out uint32_t aFailureResult); */
     533             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityService::ProcessHeaderScriptable(uint32_t aType, nsIURI *aSourceURI, const nsACString & aHeader, nsISSLStatus *aSSLStatus, uint32_t aFlags, uint32_t aSource, JS::HandleValue aOriginAttributes, uint64_t *aMaxAge, bool *aIncludeSubdomains, uint32_t *aFailureResult, JSContext* cx, uint8_t _argc)
     534             : {
     535             :     return NS_ERROR_NOT_IMPLEMENTED;
     536             : }
     537             : 
     538             : /* [implicit_jscontext,must_use,optional_argc] void removeState (in uint32_t aType, in nsIURI aURI, in uint32_t aFlags, [optional] in jsval aOriginAttributes); */
     539             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityService::RemoveState(uint32_t aType, nsIURI *aURI, uint32_t aFlags, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc)
     540             : {
     541             :     return NS_ERROR_NOT_IMPLEMENTED;
     542             : }
     543             : 
     544             : /* [binaryname(IsSecureURI),must_use,noscript] boolean isSecureURINative (in uint32_t aType, in nsIURI aURI, in uint32_t aFlags, in const_OriginAttributesRef aOriginAttributes, [optional] out boolean aCached, [optional] out uint32_t aSource); */
     545             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityService::IsSecureURI(uint32_t aType, nsIURI *aURI, uint32_t aFlags, const mozilla::OriginAttributes & aOriginAttributes, bool *aCached, uint32_t *aSource, bool *_retval)
     546             : {
     547             :     return NS_ERROR_NOT_IMPLEMENTED;
     548             : }
     549             : 
     550             : /* [binaryname(IsSecureURIScriptable),implicit_jscontext,must_use,optional_argc] boolean isSecureURI (in uint32_t aType, in nsIURI aURI, in uint32_t aFlags, [optional] in jsval aOriginAttributes, [optional] out boolean aCached, [optional] out uint32_t aSource); */
     551             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityService::IsSecureURIScriptable(uint32_t aType, nsIURI *aURI, uint32_t aFlags, JS::HandleValue aOriginAttributes, bool *aCached, uint32_t *aSource, JSContext* cx, uint8_t _argc, bool *_retval)
     552             : {
     553             :     return NS_ERROR_NOT_IMPLEMENTED;
     554             : }
     555             : 
     556             : /* [must_use] void clearAll (); */
     557             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityService::ClearAll()
     558             : {
     559             :     return NS_ERROR_NOT_IMPLEMENTED;
     560             : }
     561             : 
     562             : /* [must_use] void clearPreloads (); */
     563             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityService::ClearPreloads()
     564             : {
     565             :     return NS_ERROR_NOT_IMPLEMENTED;
     566             : }
     567             : 
     568             : /* [must_use,noscript] boolean getKeyPinsForHostname (in ACString aHostname, in mozillaPkixTime evalTime, in const_OriginAttributesRef aOriginAttributes, out nsCStringTArrayRef aPinArray, out boolean aIncludeSubdomains); */
     569             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityService::GetKeyPinsForHostname(const nsACString & aHostname, mozilla::pkix::Time & evalTime, const mozilla::OriginAttributes & aOriginAttributes, nsTArray<nsCString> & aPinArray, bool *aIncludeSubdomains, bool *_retval)
     570             : {
     571             :     return NS_ERROR_NOT_IMPLEMENTED;
     572             : }
     573             : 
     574             : /* [implicit_jscontext,must_use,optional_argc] boolean setKeyPins (in ACString aHost, in boolean aIncludeSubdomains, in int64_t aExpires, in unsigned long aPinCount, [array, size_is (aPinCount)] in string aSha256Pins, [optional] in boolean aIsPreload, [optional] in jsval aOriginAttributes); */
     575             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityService::SetKeyPins(const nsACString & aHost, bool aIncludeSubdomains, int64_t aExpires, uint32_t aPinCount, const char * *aSha256Pins, bool aIsPreload, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, bool *_retval)
     576             : {
     577             :     return NS_ERROR_NOT_IMPLEMENTED;
     578             : }
     579             : 
     580             : /* [must_use] boolean setHSTSPreload (in ACString aHost, in boolean aIncludesSubdomains, in int64_t aExpires); */
     581             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityService::SetHSTSPreload(const nsACString & aHost, bool aIncludesSubdomains, int64_t aExpires, bool *_retval)
     582             : {
     583             :     return NS_ERROR_NOT_IMPLEMENTED;
     584             : }
     585             : 
     586             : /* [must_use,noscript] void cacheNegativeHSTSResult (in nsIURI aURI, in unsigned long long aMaxAge, in const_OriginAttributesRef aOriginAttributes); */
     587             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityService::CacheNegativeHSTSResult(nsIURI *aURI, uint64_t aMaxAge, const mozilla::OriginAttributes & aOriginAttributes)
     588             : {
     589             :     return NS_ERROR_NOT_IMPLEMENTED;
     590             : }
     591             : 
     592             : /* [must_use] nsISimpleEnumerator enumerate (in uint32_t aType); */
     593             : MOZ_MUST_USE NS_IMETHODIMP nsSiteSecurityService::Enumerate(uint32_t aType, nsISimpleEnumerator * *_retval)
     594             : {
     595             :     return NS_ERROR_NOT_IMPLEMENTED;
     596             : }
     597             : 
     598             : /* End of implementation class template. */
     599             : #endif
     600             : 
     601             : #define NS_SSSERVICE_CONTRACTID "@mozilla.org/ssservice;1"
     602             : 
     603             : #endif /* __gen_nsISiteSecurityService_h__ */

Generated by: LCOV version 1.13