LCOV - code coverage report
Current view: directory - objdir/dist/include - nsICookieManager2.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/nsICookieManager2.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsICookieManager2_h__
       6                 : #define __gen_nsICookieManager2_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsICookieManager_h__
      10                 : #include "nsICookieManager.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 nsICookie2; /* forward declaration */
      18                 : 
      19                 : class nsIFile; /* forward declaration */
      20                 : 
      21                 : 
      22                 : /* starting interface:    nsICookieManager2 */
      23                 : #define NS_ICOOKIEMANAGER2_IID_STR "94628d1d-8b31-4baa-b474-9c872c440f90"
      24                 : 
      25                 : #define NS_ICOOKIEMANAGER2_IID \
      26                 :   {0x94628d1d, 0x8b31, 0x4baa, \
      27                 :     { 0xb4, 0x74, 0x9c, 0x87, 0x2c, 0x44, 0x0f, 0x90 }}
      28                 : 
      29             294 : class NS_NO_VTABLE NS_SCRIPTABLE nsICookieManager2 : public nsICookieManager {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOOKIEMANAGER2_IID)
      33                 : 
      34                 :   /* void add (in AUTF8String aHost, in AUTF8String aPath, in ACString aName, in ACString aValue, in boolean aIsSecure, in boolean aIsHttpOnly, in boolean aIsSession, in PRInt64 aExpiry); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD Add(const nsACString & aHost, const nsACString & aPath, const nsACString & aName, const nsACString & aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, PRInt64 aExpiry) = 0;
      36                 : 
      37                 :   /* boolean cookieExists (in nsICookie2 aCookie); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD CookieExists(nsICookie2 *aCookie, bool *_retval NS_OUTPARAM) = 0;
      39                 : 
      40                 :   /* unsigned long countCookiesFromHost (in AUTF8String aHost); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD CountCookiesFromHost(const nsACString & aHost, PRUint32 *_retval NS_OUTPARAM) = 0;
      42                 : 
      43                 :   /* nsISimpleEnumerator getCookiesFromHost (in AUTF8String aHost); */
      44                 :   NS_SCRIPTABLE NS_IMETHOD GetCookiesFromHost(const nsACString & aHost, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
      45                 : 
      46                 :   /* void importCookies (in nsIFile aCookieFile); */
      47                 :   NS_SCRIPTABLE NS_IMETHOD ImportCookies(nsIFile *aCookieFile) = 0;
      48                 : 
      49                 : };
      50                 : 
      51                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICookieManager2, NS_ICOOKIEMANAGER2_IID)
      52                 : 
      53                 : /* Use this macro when declaring classes that implement this interface. */
      54                 : #define NS_DECL_NSICOOKIEMANAGER2 \
      55                 :   NS_SCRIPTABLE NS_IMETHOD Add(const nsACString & aHost, const nsACString & aPath, const nsACString & aName, const nsACString & aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, PRInt64 aExpiry); \
      56                 :   NS_SCRIPTABLE NS_IMETHOD CookieExists(nsICookie2 *aCookie, bool *_retval NS_OUTPARAM); \
      57                 :   NS_SCRIPTABLE NS_IMETHOD CountCookiesFromHost(const nsACString & aHost, PRUint32 *_retval NS_OUTPARAM); \
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetCookiesFromHost(const nsACString & aHost, nsISimpleEnumerator * *_retval NS_OUTPARAM); \
      59                 :   NS_SCRIPTABLE NS_IMETHOD ImportCookies(nsIFile *aCookieFile); 
      60                 : 
      61                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      62                 : #define NS_FORWARD_NSICOOKIEMANAGER2(_to) \
      63                 :   NS_SCRIPTABLE NS_IMETHOD Add(const nsACString & aHost, const nsACString & aPath, const nsACString & aName, const nsACString & aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, PRInt64 aExpiry) { return _to Add(aHost, aPath, aName, aValue, aIsSecure, aIsHttpOnly, aIsSession, aExpiry); } \
      64                 :   NS_SCRIPTABLE NS_IMETHOD CookieExists(nsICookie2 *aCookie, bool *_retval NS_OUTPARAM) { return _to CookieExists(aCookie, _retval); } \
      65                 :   NS_SCRIPTABLE NS_IMETHOD CountCookiesFromHost(const nsACString & aHost, PRUint32 *_retval NS_OUTPARAM) { return _to CountCookiesFromHost(aHost, _retval); } \
      66                 :   NS_SCRIPTABLE NS_IMETHOD GetCookiesFromHost(const nsACString & aHost, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetCookiesFromHost(aHost, _retval); } \
      67                 :   NS_SCRIPTABLE NS_IMETHOD ImportCookies(nsIFile *aCookieFile) { return _to ImportCookies(aCookieFile); } 
      68                 : 
      69                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      70                 : #define NS_FORWARD_SAFE_NSICOOKIEMANAGER2(_to) \
      71                 :   NS_SCRIPTABLE NS_IMETHOD Add(const nsACString & aHost, const nsACString & aPath, const nsACString & aName, const nsACString & aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, PRInt64 aExpiry) { return !_to ? NS_ERROR_NULL_POINTER : _to->Add(aHost, aPath, aName, aValue, aIsSecure, aIsHttpOnly, aIsSession, aExpiry); } \
      72                 :   NS_SCRIPTABLE NS_IMETHOD CookieExists(nsICookie2 *aCookie, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CookieExists(aCookie, _retval); } \
      73                 :   NS_SCRIPTABLE NS_IMETHOD CountCookiesFromHost(const nsACString & aHost, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CountCookiesFromHost(aHost, _retval); } \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetCookiesFromHost(const nsACString & aHost, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCookiesFromHost(aHost, _retval); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD ImportCookies(nsIFile *aCookieFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportCookies(aCookieFile); } 
      76                 : 
      77                 : #if 0
      78                 : /* Use the code below as a template for the implementation class for this interface. */
      79                 : 
      80                 : /* Header file */
      81                 : class nsCookieManager2 : public nsICookieManager2
      82                 : {
      83                 : public:
      84                 :   NS_DECL_ISUPPORTS
      85                 :   NS_DECL_NSICOOKIEMANAGER2
      86                 : 
      87                 :   nsCookieManager2();
      88                 : 
      89                 : private:
      90                 :   ~nsCookieManager2();
      91                 : 
      92                 : protected:
      93                 :   /* additional members */
      94                 : };
      95                 : 
      96                 : /* Implementation file */
      97                 : NS_IMPL_ISUPPORTS1(nsCookieManager2, nsICookieManager2)
      98                 : 
      99                 : nsCookieManager2::nsCookieManager2()
     100                 : {
     101                 :   /* member initializers and constructor code */
     102                 : }
     103                 : 
     104                 : nsCookieManager2::~nsCookieManager2()
     105                 : {
     106                 :   /* destructor code */
     107                 : }
     108                 : 
     109                 : /* void add (in AUTF8String aHost, in AUTF8String aPath, in ACString aName, in ACString aValue, in boolean aIsSecure, in boolean aIsHttpOnly, in boolean aIsSession, in PRInt64 aExpiry); */
     110                 : NS_IMETHODIMP nsCookieManager2::Add(const nsACString & aHost, const nsACString & aPath, const nsACString & aName, const nsACString & aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, PRInt64 aExpiry)
     111                 : {
     112                 :     return NS_ERROR_NOT_IMPLEMENTED;
     113                 : }
     114                 : 
     115                 : /* boolean cookieExists (in nsICookie2 aCookie); */
     116                 : NS_IMETHODIMP nsCookieManager2::CookieExists(nsICookie2 *aCookie, bool *_retval NS_OUTPARAM)
     117                 : {
     118                 :     return NS_ERROR_NOT_IMPLEMENTED;
     119                 : }
     120                 : 
     121                 : /* unsigned long countCookiesFromHost (in AUTF8String aHost); */
     122                 : NS_IMETHODIMP nsCookieManager2::CountCookiesFromHost(const nsACString & aHost, PRUint32 *_retval NS_OUTPARAM)
     123                 : {
     124                 :     return NS_ERROR_NOT_IMPLEMENTED;
     125                 : }
     126                 : 
     127                 : /* nsISimpleEnumerator getCookiesFromHost (in AUTF8String aHost); */
     128                 : NS_IMETHODIMP nsCookieManager2::GetCookiesFromHost(const nsACString & aHost, nsISimpleEnumerator * *_retval NS_OUTPARAM)
     129                 : {
     130                 :     return NS_ERROR_NOT_IMPLEMENTED;
     131                 : }
     132                 : 
     133                 : /* void importCookies (in nsIFile aCookieFile); */
     134                 : NS_IMETHODIMP nsCookieManager2::ImportCookies(nsIFile *aCookieFile)
     135                 : {
     136                 :     return NS_ERROR_NOT_IMPLEMENTED;
     137                 : }
     138                 : 
     139                 : /* End of implementation class template. */
     140                 : #endif
     141                 : 
     142                 : 
     143                 : #endif /* __gen_nsICookieManager2_h__ */

Generated by: LCOV version 1.7