LCOV - code coverage report
Current view: directory - objdir/dist/include - nsICookieManager.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/cookie/nsICookieManager.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsICookieManager_h__
       6                 : #define __gen_nsICookieManager_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsISimpleEnumerator_h__
      14                 : #include "nsISimpleEnumerator.h"
      15                 : #endif
      16                 : 
      17                 : /* For IDL files that don't want to include root IDL files. */
      18                 : #ifndef NS_NO_VTABLE
      19                 : #define NS_NO_VTABLE
      20                 : #endif
      21                 : 
      22                 : /* starting interface:    nsICookieManager */
      23                 : #define NS_ICOOKIEMANAGER_IID_STR "aaab6710-0f2c-11d5-a53b-0010a401eb10"
      24                 : 
      25                 : #define NS_ICOOKIEMANAGER_IID \
      26                 :   {0xaaab6710, 0x0f2c, 0x11d5, \
      27                 :     { 0xa5, 0x3b, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 }}
      28                 : 
      29             294 : class NS_NO_VTABLE NS_SCRIPTABLE nsICookieManager : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOOKIEMANAGER_IID)
      33                 : 
      34                 :   /* void removeAll (); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAll(void) = 0;
      36                 : 
      37                 :   /* readonly attribute nsISimpleEnumerator enumerator; */
      38                 :   NS_SCRIPTABLE NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *aEnumerator) = 0;
      39                 : 
      40                 :   /* void remove (in AUTF8String aHost, in ACString aName, in AUTF8String aPath, in boolean aBlocked); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD Remove(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked) = 0;
      42                 : 
      43                 : };
      44                 : 
      45                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICookieManager, NS_ICOOKIEMANAGER_IID)
      46                 : 
      47                 : /* Use this macro when declaring classes that implement this interface. */
      48                 : #define NS_DECL_NSICOOKIEMANAGER \
      49                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAll(void); \
      50                 :   NS_SCRIPTABLE NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *aEnumerator); \
      51                 :   NS_SCRIPTABLE NS_IMETHOD Remove(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked); 
      52                 : 
      53                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      54                 : #define NS_FORWARD_NSICOOKIEMANAGER(_to) \
      55                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAll(void) { return _to RemoveAll(); } \
      56                 :   NS_SCRIPTABLE NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *aEnumerator) { return _to GetEnumerator(aEnumerator); } \
      57                 :   NS_SCRIPTABLE NS_IMETHOD Remove(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked) { return _to Remove(aHost, aName, aPath, aBlocked); } 
      58                 : 
      59                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      60                 : #define NS_FORWARD_SAFE_NSICOOKIEMANAGER(_to) \
      61                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAll(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAll(); } \
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *aEnumerator) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnumerator(aEnumerator); } \
      63                 :   NS_SCRIPTABLE NS_IMETHOD Remove(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked) { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(aHost, aName, aPath, aBlocked); } 
      64                 : 
      65                 : #if 0
      66                 : /* Use the code below as a template for the implementation class for this interface. */
      67                 : 
      68                 : /* Header file */
      69                 : class nsCookieManager : public nsICookieManager
      70                 : {
      71                 : public:
      72                 :   NS_DECL_ISUPPORTS
      73                 :   NS_DECL_NSICOOKIEMANAGER
      74                 : 
      75                 :   nsCookieManager();
      76                 : 
      77                 : private:
      78                 :   ~nsCookieManager();
      79                 : 
      80                 : protected:
      81                 :   /* additional members */
      82                 : };
      83                 : 
      84                 : /* Implementation file */
      85                 : NS_IMPL_ISUPPORTS1(nsCookieManager, nsICookieManager)
      86                 : 
      87                 : nsCookieManager::nsCookieManager()
      88                 : {
      89                 :   /* member initializers and constructor code */
      90                 : }
      91                 : 
      92                 : nsCookieManager::~nsCookieManager()
      93                 : {
      94                 :   /* destructor code */
      95                 : }
      96                 : 
      97                 : /* void removeAll (); */
      98                 : NS_IMETHODIMP nsCookieManager::RemoveAll()
      99                 : {
     100                 :     return NS_ERROR_NOT_IMPLEMENTED;
     101                 : }
     102                 : 
     103                 : /* readonly attribute nsISimpleEnumerator enumerator; */
     104                 : NS_IMETHODIMP nsCookieManager::GetEnumerator(nsISimpleEnumerator * *aEnumerator)
     105                 : {
     106                 :     return NS_ERROR_NOT_IMPLEMENTED;
     107                 : }
     108                 : 
     109                 : /* void remove (in AUTF8String aHost, in ACString aName, in AUTF8String aPath, in boolean aBlocked); */
     110                 : NS_IMETHODIMP nsCookieManager::Remove(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked)
     111                 : {
     112                 :     return NS_ERROR_NOT_IMPLEMENTED;
     113                 : }
     114                 : 
     115                 : /* End of implementation class template. */
     116                 : #endif
     117                 : 
     118                 : 
     119                 : #endif /* __gen_nsICookieManager_h__ */

Generated by: LCOV version 1.7