LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIStrictTransportSecurityService.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/netwerk/base/public/nsIStrictTransportSecurityService.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIStrictTransportSecurityService_h__
       6                 : #define __gen_nsIStrictTransportSecurityService_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.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                 : class nsIURI; /* forward declaration */
      18                 : 
      19                 : class nsIObserver; /* forward declaration */
      20                 : 
      21                 : class nsIHttpChannel; /* forward declaration */
      22                 : 
      23                 : 
      24                 : /* starting interface:    nsIStrictTransportSecurityService */
      25                 : #define NS_ISTRICTTRANSPORTSECURITYSERVICE_IID_STR "16955eee-6c48-4152-9309-c42a465138a1"
      26                 : 
      27                 : #define NS_ISTRICTTRANSPORTSECURITYSERVICE_IID \
      28                 :   {0x16955eee, 0x6c48, 0x4152, \
      29                 :     { 0x93, 0x09, 0xc4, 0x2a, 0x46, 0x51, 0x38, 0xa1 }}
      30                 : 
      31             266 : class NS_NO_VTABLE NS_SCRIPTABLE nsIStrictTransportSecurityService : public nsISupports {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTRICTTRANSPORTSECURITYSERVICE_IID)
      35                 : 
      36                 :   /* void processStsHeader (in nsIURI aSourceURI, in string aHeader); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD ProcessStsHeader(nsIURI *aSourceURI, const char * aHeader) = 0;
      38                 : 
      39                 :   /* void removeStsState (in nsIURI aURI); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD RemoveStsState(nsIURI *aURI) = 0;
      41                 : 
      42                 :   /* boolean shouldIgnoreStsHeader (in nsISupports aSecurityInfo); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD ShouldIgnoreStsHeader(nsISupports *aSecurityInfo, bool *_retval NS_OUTPARAM) = 0;
      44                 : 
      45                 :   /* boolean isStsHost (in string aHost); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD IsStsHost(const char * aHost, bool *_retval NS_OUTPARAM) = 0;
      47                 : 
      48                 :   /* boolean isStsURI (in nsIURI aURI); */
      49                 :   NS_SCRIPTABLE NS_IMETHOD IsStsURI(nsIURI *aURI, bool *_retval NS_OUTPARAM) = 0;
      50                 : 
      51                 : };
      52                 : 
      53                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStrictTransportSecurityService, NS_ISTRICTTRANSPORTSECURITYSERVICE_IID)
      54                 : 
      55                 : /* Use this macro when declaring classes that implement this interface. */
      56                 : #define NS_DECL_NSISTRICTTRANSPORTSECURITYSERVICE \
      57                 :   NS_SCRIPTABLE NS_IMETHOD ProcessStsHeader(nsIURI *aSourceURI, const char * aHeader); \
      58                 :   NS_SCRIPTABLE NS_IMETHOD RemoveStsState(nsIURI *aURI); \
      59                 :   NS_SCRIPTABLE NS_IMETHOD ShouldIgnoreStsHeader(nsISupports *aSecurityInfo, bool *_retval NS_OUTPARAM); \
      60                 :   NS_SCRIPTABLE NS_IMETHOD IsStsHost(const char * aHost, bool *_retval NS_OUTPARAM); \
      61                 :   NS_SCRIPTABLE NS_IMETHOD IsStsURI(nsIURI *aURI, bool *_retval NS_OUTPARAM); 
      62                 : 
      63                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      64                 : #define NS_FORWARD_NSISTRICTTRANSPORTSECURITYSERVICE(_to) \
      65                 :   NS_SCRIPTABLE NS_IMETHOD ProcessStsHeader(nsIURI *aSourceURI, const char * aHeader) { return _to ProcessStsHeader(aSourceURI, aHeader); } \
      66                 :   NS_SCRIPTABLE NS_IMETHOD RemoveStsState(nsIURI *aURI) { return _to RemoveStsState(aURI); } \
      67                 :   NS_SCRIPTABLE NS_IMETHOD ShouldIgnoreStsHeader(nsISupports *aSecurityInfo, bool *_retval NS_OUTPARAM) { return _to ShouldIgnoreStsHeader(aSecurityInfo, _retval); } \
      68                 :   NS_SCRIPTABLE NS_IMETHOD IsStsHost(const char * aHost, bool *_retval NS_OUTPARAM) { return _to IsStsHost(aHost, _retval); } \
      69                 :   NS_SCRIPTABLE NS_IMETHOD IsStsURI(nsIURI *aURI, bool *_retval NS_OUTPARAM) { return _to IsStsURI(aURI, _retval); } 
      70                 : 
      71                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      72                 : #define NS_FORWARD_SAFE_NSISTRICTTRANSPORTSECURITYSERVICE(_to) \
      73                 :   NS_SCRIPTABLE NS_IMETHOD ProcessStsHeader(nsIURI *aSourceURI, const char * aHeader) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessStsHeader(aSourceURI, aHeader); } \
      74                 :   NS_SCRIPTABLE NS_IMETHOD RemoveStsState(nsIURI *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveStsState(aURI); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD ShouldIgnoreStsHeader(nsISupports *aSecurityInfo, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShouldIgnoreStsHeader(aSecurityInfo, _retval); } \
      76                 :   NS_SCRIPTABLE NS_IMETHOD IsStsHost(const char * aHost, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsStsHost(aHost, _retval); } \
      77                 :   NS_SCRIPTABLE NS_IMETHOD IsStsURI(nsIURI *aURI, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsStsURI(aURI, _retval); } 
      78                 : 
      79                 : #if 0
      80                 : /* Use the code below as a template for the implementation class for this interface. */
      81                 : 
      82                 : /* Header file */
      83                 : class nsStrictTransportSecurityService : public nsIStrictTransportSecurityService
      84                 : {
      85                 : public:
      86                 :   NS_DECL_ISUPPORTS
      87                 :   NS_DECL_NSISTRICTTRANSPORTSECURITYSERVICE
      88                 : 
      89                 :   nsStrictTransportSecurityService();
      90                 : 
      91                 : private:
      92                 :   ~nsStrictTransportSecurityService();
      93                 : 
      94                 : protected:
      95                 :   /* additional members */
      96                 : };
      97                 : 
      98                 : /* Implementation file */
      99                 : NS_IMPL_ISUPPORTS1(nsStrictTransportSecurityService, nsIStrictTransportSecurityService)
     100                 : 
     101                 : nsStrictTransportSecurityService::nsStrictTransportSecurityService()
     102                 : {
     103                 :   /* member initializers and constructor code */
     104                 : }
     105                 : 
     106                 : nsStrictTransportSecurityService::~nsStrictTransportSecurityService()
     107                 : {
     108                 :   /* destructor code */
     109                 : }
     110                 : 
     111                 : /* void processStsHeader (in nsIURI aSourceURI, in string aHeader); */
     112                 : NS_IMETHODIMP nsStrictTransportSecurityService::ProcessStsHeader(nsIURI *aSourceURI, const char * aHeader)
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* void removeStsState (in nsIURI aURI); */
     118                 : NS_IMETHODIMP nsStrictTransportSecurityService::RemoveStsState(nsIURI *aURI)
     119                 : {
     120                 :     return NS_ERROR_NOT_IMPLEMENTED;
     121                 : }
     122                 : 
     123                 : /* boolean shouldIgnoreStsHeader (in nsISupports aSecurityInfo); */
     124                 : NS_IMETHODIMP nsStrictTransportSecurityService::ShouldIgnoreStsHeader(nsISupports *aSecurityInfo, bool *_retval NS_OUTPARAM)
     125                 : {
     126                 :     return NS_ERROR_NOT_IMPLEMENTED;
     127                 : }
     128                 : 
     129                 : /* boolean isStsHost (in string aHost); */
     130                 : NS_IMETHODIMP nsStrictTransportSecurityService::IsStsHost(const char * aHost, bool *_retval NS_OUTPARAM)
     131                 : {
     132                 :     return NS_ERROR_NOT_IMPLEMENTED;
     133                 : }
     134                 : 
     135                 : /* boolean isStsURI (in nsIURI aURI); */
     136                 : NS_IMETHODIMP nsStrictTransportSecurityService::IsStsURI(nsIURI *aURI, bool *_retval NS_OUTPARAM)
     137                 : {
     138                 :     return NS_ERROR_NOT_IMPLEMENTED;
     139                 : }
     140                 : 
     141                 : /* End of implementation class template. */
     142                 : #endif
     143                 : 
     144                 : #define NS_STSSERVICE_CONTRACTID "@mozilla.org/stsservice;1"
     145                 : #define NS_STSSERVICE_CLASSNAME "stsservice"
     146                 : #define STS_PERMISSION "sts/use"
     147                 : #define STS_SUBDOMAIN_PERMISSION "sts/subd"
     148                 : 
     149                 : #endif /* __gen_nsIStrictTransportSecurityService_h__ */

Generated by: LCOV version 1.7