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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/nsIRecentBadCertsService.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIRecentBadCertsService_h__
       6                 : #define __gen_nsIRecentBadCertsService_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 nsIArray; /* forward declaration */
      18                 : 
      19                 : class nsIX509Cert; /* forward declaration */
      20                 : 
      21                 : class nsISSLStatus; /* forward declaration */
      22                 : 
      23                 : #define NS_RECENTBADCERTS_CONTRACTID "@mozilla.org/security/recentbadcerts;1"
      24                 : 
      25                 : /* starting interface:    nsIRecentBadCertsService */
      26                 : #define NS_IRECENTBADCERTSSERVICE_IID_STR "a5ae8b05-a76e-408f-b0ba-02a831265749"
      27                 : 
      28                 : #define NS_IRECENTBADCERTSSERVICE_IID \
      29                 :   {0xa5ae8b05, 0xa76e, 0x408f, \
      30                 :     { 0xb0, 0xba, 0x02, 0xa8, 0x31, 0x26, 0x57, 0x49 }}
      31                 : 
      32               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIRecentBadCertsService : public nsISupports {
      33                 :  public: 
      34                 : 
      35                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRECENTBADCERTSSERVICE_IID)
      36                 : 
      37                 :   /* nsISSLStatus getRecentBadCert (in AString aHostNameWithPort); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD GetRecentBadCert(const nsAString & aHostNameWithPort, nsISSLStatus * *_retval NS_OUTPARAM) = 0;
      39                 : 
      40                 :   /* void addBadCert (in AString aHostNameWithPort, in nsISSLStatus aStatus); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD AddBadCert(const nsAString & aHostNameWithPort, nsISSLStatus *aStatus) = 0;
      42                 : 
      43                 : };
      44                 : 
      45                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIRecentBadCertsService, NS_IRECENTBADCERTSSERVICE_IID)
      46                 : 
      47                 : /* Use this macro when declaring classes that implement this interface. */
      48                 : #define NS_DECL_NSIRECENTBADCERTSSERVICE \
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetRecentBadCert(const nsAString & aHostNameWithPort, nsISSLStatus * *_retval NS_OUTPARAM); \
      50                 :   NS_SCRIPTABLE NS_IMETHOD AddBadCert(const nsAString & aHostNameWithPort, nsISSLStatus *aStatus); 
      51                 : 
      52                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      53                 : #define NS_FORWARD_NSIRECENTBADCERTSSERVICE(_to) \
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetRecentBadCert(const nsAString & aHostNameWithPort, nsISSLStatus * *_retval NS_OUTPARAM) { return _to GetRecentBadCert(aHostNameWithPort, _retval); } \
      55                 :   NS_SCRIPTABLE NS_IMETHOD AddBadCert(const nsAString & aHostNameWithPort, nsISSLStatus *aStatus) { return _to AddBadCert(aHostNameWithPort, aStatus); } 
      56                 : 
      57                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      58                 : #define NS_FORWARD_SAFE_NSIRECENTBADCERTSSERVICE(_to) \
      59                 :   NS_SCRIPTABLE NS_IMETHOD GetRecentBadCert(const nsAString & aHostNameWithPort, nsISSLStatus * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRecentBadCert(aHostNameWithPort, _retval); } \
      60                 :   NS_SCRIPTABLE NS_IMETHOD AddBadCert(const nsAString & aHostNameWithPort, nsISSLStatus *aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddBadCert(aHostNameWithPort, aStatus); } 
      61                 : 
      62                 : #if 0
      63                 : /* Use the code below as a template for the implementation class for this interface. */
      64                 : 
      65                 : /* Header file */
      66                 : class nsRecentBadCertsService : public nsIRecentBadCertsService
      67                 : {
      68                 : public:
      69                 :   NS_DECL_ISUPPORTS
      70                 :   NS_DECL_NSIRECENTBADCERTSSERVICE
      71                 : 
      72                 :   nsRecentBadCertsService();
      73                 : 
      74                 : private:
      75                 :   ~nsRecentBadCertsService();
      76                 : 
      77                 : protected:
      78                 :   /* additional members */
      79                 : };
      80                 : 
      81                 : /* Implementation file */
      82                 : NS_IMPL_ISUPPORTS1(nsRecentBadCertsService, nsIRecentBadCertsService)
      83                 : 
      84                 : nsRecentBadCertsService::nsRecentBadCertsService()
      85                 : {
      86                 :   /* member initializers and constructor code */
      87                 : }
      88                 : 
      89                 : nsRecentBadCertsService::~nsRecentBadCertsService()
      90                 : {
      91                 :   /* destructor code */
      92                 : }
      93                 : 
      94                 : /* nsISSLStatus getRecentBadCert (in AString aHostNameWithPort); */
      95                 : NS_IMETHODIMP nsRecentBadCertsService::GetRecentBadCert(const nsAString & aHostNameWithPort, nsISSLStatus * *_retval NS_OUTPARAM)
      96                 : {
      97                 :     return NS_ERROR_NOT_IMPLEMENTED;
      98                 : }
      99                 : 
     100                 : /* void addBadCert (in AString aHostNameWithPort, in nsISSLStatus aStatus); */
     101                 : NS_IMETHODIMP nsRecentBadCertsService::AddBadCert(const nsAString & aHostNameWithPort, nsISSLStatus *aStatus)
     102                 : {
     103                 :     return NS_ERROR_NOT_IMPLEMENTED;
     104                 : }
     105                 : 
     106                 : /* End of implementation class template. */
     107                 : #endif
     108                 : 
     109                 : 
     110                 : #endif /* __gen_nsIRecentBadCertsService_h__ */

Generated by: LCOV version 1.7