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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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             : #include "js/Value.h"
      14             : 
      15             : /* For IDL files that don't want to include root IDL files. */
      16             : #ifndef NS_NO_VTABLE
      17             : #define NS_NO_VTABLE
      18             : #endif
      19             : namespace mozilla {
      20             : class OriginAttributes;
      21             : } // mozilla namespace
      22             : class nsISimpleEnumerator; /* forward declaration */
      23             : 
      24             : 
      25             : /* starting interface:    nsIPrivateModeCallback */
      26             : #define NS_IPRIVATEMODECALLBACK_IID_STR "20709db8-8dad-4e45-b33e-6e7c761dfc5d"
      27             : 
      28             : #define NS_IPRIVATEMODECALLBACK_IID \
      29             :   {0x20709db8, 0x8dad, 0x4e45, \
      30             :     { 0xb3, 0x3e, 0x6e, 0x7c, 0x76, 0x1d, 0xfc, 0x5d }}
      31             : 
      32             : class NS_NO_VTABLE nsIPrivateModeCallback : public nsISupports {
      33             :  public:
      34             : 
      35             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRIVATEMODECALLBACK_IID)
      36             : 
      37             :   /* void callback (); */
      38             :   NS_IMETHOD Callback(void) = 0;
      39             : 
      40             : };
      41             : 
      42             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrivateModeCallback, NS_IPRIVATEMODECALLBACK_IID)
      43             : 
      44             : /* Use this macro when declaring classes that implement this interface. */
      45             : #define NS_DECL_NSIPRIVATEMODECALLBACK \
      46             :   NS_IMETHOD Callback(void) override; 
      47             : 
      48             : /* Use this macro when declaring the members of this interface when the
      49             :    class doesn't implement the interface. This is useful for forwarding. */
      50             : #define NS_DECL_NON_VIRTUAL_NSIPRIVATEMODECALLBACK \
      51             :   nsresult Callback(void); 
      52             : 
      53             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      54             : #define NS_FORWARD_NSIPRIVATEMODECALLBACK(_to) \
      55             :   NS_IMETHOD Callback(void) override { return _to Callback(); } 
      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_NSIPRIVATEMODECALLBACK(_to) \
      59             :   NS_IMETHOD Callback(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Callback(); } 
      60             : 
      61             : #if 0
      62             : /* Use the code below as a template for the implementation class for this interface. */
      63             : 
      64             : /* Header file */
      65             : class nsPrivateModeCallback : public nsIPrivateModeCallback
      66             : {
      67             : public:
      68             :   NS_DECL_ISUPPORTS
      69             :   NS_DECL_NSIPRIVATEMODECALLBACK
      70             : 
      71             :   nsPrivateModeCallback();
      72             : 
      73             : private:
      74             :   ~nsPrivateModeCallback();
      75             : 
      76             : protected:
      77             :   /* additional members */
      78             : };
      79             : 
      80             : /* Implementation file */
      81             : NS_IMPL_ISUPPORTS(nsPrivateModeCallback, nsIPrivateModeCallback)
      82             : 
      83             : nsPrivateModeCallback::nsPrivateModeCallback()
      84             : {
      85             :   /* member initializers and constructor code */
      86             : }
      87             : 
      88             : nsPrivateModeCallback::~nsPrivateModeCallback()
      89             : {
      90             :   /* destructor code */
      91             : }
      92             : 
      93             : /* void callback (); */
      94             : NS_IMETHODIMP nsPrivateModeCallback::Callback()
      95             : {
      96             :     return NS_ERROR_NOT_IMPLEMENTED;
      97             : }
      98             : 
      99             : /* End of implementation class template. */
     100             : #endif
     101             : 
     102             : 
     103             : /* starting interface:    nsICookieManager */
     104             : #define NS_ICOOKIEMANAGER_IID_STR "aaab6710-0f2c-11d5-a53b-0010a401eb10"
     105             : 
     106             : #define NS_ICOOKIEMANAGER_IID \
     107             :   {0xaaab6710, 0x0f2c, 0x11d5, \
     108             :     { 0xa5, 0x3b, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 }}
     109             : 
     110           1 : class NS_NO_VTABLE nsICookieManager : public nsISupports {
     111             :  public:
     112             : 
     113             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOOKIEMANAGER_IID)
     114             : 
     115             :   /* void removeAll (); */
     116             :   NS_IMETHOD RemoveAll(void) = 0;
     117             : 
     118             :   /* readonly attribute nsISimpleEnumerator enumerator; */
     119             :   NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *aEnumerator) = 0;
     120             : 
     121             :   /* readonly attribute nsISimpleEnumerator sessionEnumerator; */
     122             :   NS_IMETHOD GetSessionEnumerator(nsISimpleEnumerator * *aSessionEnumerator) = 0;
     123             : 
     124             :   /* [implicit_jscontext,optional_argc] void remove (in AUTF8String aHost, in ACString aName, in AUTF8String aPath, in boolean aBlocked, [optional] in jsval aOriginAttributes); */
     125             :   NS_IMETHOD Remove(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc) = 0;
     126             : 
     127             :   /* [notxpcom] nsresult removeNative (in AUTF8String aHost, in ACString aName, in AUTF8String aPath, in boolean aBlocked, in OriginAttributesPtr aOriginAttributes); */
     128             :   NS_IMETHOD_(nsresult) RemoveNative(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked, mozilla::OriginAttributes *aOriginAttributes) = 0;
     129             : 
     130             : };
     131             : 
     132             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICookieManager, NS_ICOOKIEMANAGER_IID)
     133             : 
     134             : /* Use this macro when declaring classes that implement this interface. */
     135             : #define NS_DECL_NSICOOKIEMANAGER \
     136             :   NS_IMETHOD RemoveAll(void) override; \
     137             :   NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *aEnumerator) override; \
     138             :   NS_IMETHOD GetSessionEnumerator(nsISimpleEnumerator * *aSessionEnumerator) override; \
     139             :   NS_IMETHOD Remove(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc) override; \
     140             :   NS_IMETHOD_(nsresult) RemoveNative(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked, mozilla::OriginAttributes *aOriginAttributes) override; 
     141             : 
     142             : /* Use this macro when declaring the members of this interface when the
     143             :    class doesn't implement the interface. This is useful for forwarding. */
     144             : #define NS_DECL_NON_VIRTUAL_NSICOOKIEMANAGER \
     145             :   nsresult RemoveAll(void); \
     146             :   nsresult GetEnumerator(nsISimpleEnumerator * *aEnumerator); \
     147             :   nsresult GetSessionEnumerator(nsISimpleEnumerator * *aSessionEnumerator); \
     148             :   nsresult Remove(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc); \
     149             :   nsresult_(nsresult) RemoveNative(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked, mozilla::OriginAttributes *aOriginAttributes); 
     150             : 
     151             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     152             : #define NS_FORWARD_NSICOOKIEMANAGER(_to) \
     153             :   NS_IMETHOD RemoveAll(void) override { return _to RemoveAll(); } \
     154             :   NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *aEnumerator) override { return _to GetEnumerator(aEnumerator); } \
     155             :   NS_IMETHOD GetSessionEnumerator(nsISimpleEnumerator * *aSessionEnumerator) override { return _to GetSessionEnumerator(aSessionEnumerator); } \
     156             :   NS_IMETHOD Remove(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc) override { return _to Remove(aHost, aName, aPath, aBlocked, aOriginAttributes, cx, _argc); } \
     157             :   NS_IMETHOD_(nsresult) RemoveNative(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked, mozilla::OriginAttributes *aOriginAttributes) override { return _to RemoveNative(aHost, aName, aPath, aBlocked, aOriginAttributes); } 
     158             : 
     159             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     160             : #define NS_FORWARD_SAFE_NSICOOKIEMANAGER(_to) \
     161             :   NS_IMETHOD RemoveAll(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAll(); } \
     162             :   NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *aEnumerator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnumerator(aEnumerator); } \
     163             :   NS_IMETHOD GetSessionEnumerator(nsISimpleEnumerator * *aSessionEnumerator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSessionEnumerator(aSessionEnumerator); } \
     164             :   NS_IMETHOD Remove(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(aHost, aName, aPath, aBlocked, aOriginAttributes, cx, _argc); } \
     165             :   NS_IMETHOD_(nsresult) RemoveNative(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked, mozilla::OriginAttributes *aOriginAttributes) override; 
     166             : 
     167             : #if 0
     168             : /* Use the code below as a template for the implementation class for this interface. */
     169             : 
     170             : /* Header file */
     171             : class nsCookieManager : public nsICookieManager
     172             : {
     173             : public:
     174             :   NS_DECL_ISUPPORTS
     175             :   NS_DECL_NSICOOKIEMANAGER
     176             : 
     177             :   nsCookieManager();
     178             : 
     179             : private:
     180             :   ~nsCookieManager();
     181             : 
     182             : protected:
     183             :   /* additional members */
     184             : };
     185             : 
     186             : /* Implementation file */
     187             : NS_IMPL_ISUPPORTS(nsCookieManager, nsICookieManager)
     188             : 
     189             : nsCookieManager::nsCookieManager()
     190             : {
     191             :   /* member initializers and constructor code */
     192             : }
     193             : 
     194             : nsCookieManager::~nsCookieManager()
     195             : {
     196             :   /* destructor code */
     197             : }
     198             : 
     199             : /* void removeAll (); */
     200             : NS_IMETHODIMP nsCookieManager::RemoveAll()
     201             : {
     202             :     return NS_ERROR_NOT_IMPLEMENTED;
     203             : }
     204             : 
     205             : /* readonly attribute nsISimpleEnumerator enumerator; */
     206             : NS_IMETHODIMP nsCookieManager::GetEnumerator(nsISimpleEnumerator * *aEnumerator)
     207             : {
     208             :     return NS_ERROR_NOT_IMPLEMENTED;
     209             : }
     210             : 
     211             : /* readonly attribute nsISimpleEnumerator sessionEnumerator; */
     212             : NS_IMETHODIMP nsCookieManager::GetSessionEnumerator(nsISimpleEnumerator * *aSessionEnumerator)
     213             : {
     214             :     return NS_ERROR_NOT_IMPLEMENTED;
     215             : }
     216             : 
     217             : /* [implicit_jscontext,optional_argc] void remove (in AUTF8String aHost, in ACString aName, in AUTF8String aPath, in boolean aBlocked, [optional] in jsval aOriginAttributes); */
     218             : NS_IMETHODIMP nsCookieManager::Remove(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc)
     219             : {
     220             :     return NS_ERROR_NOT_IMPLEMENTED;
     221             : }
     222             : 
     223             : /* [notxpcom] nsresult removeNative (in AUTF8String aHost, in ACString aName, in AUTF8String aPath, in boolean aBlocked, in OriginAttributesPtr aOriginAttributes); */
     224             : NS_IMETHODIMP_(nsresult) nsCookieManager::RemoveNative(const nsACString & aHost, const nsACString & aName, const nsACString & aPath, bool aBlocked, mozilla::OriginAttributes *aOriginAttributes)
     225             : {
     226             :     return NS_ERROR_NOT_IMPLEMENTED;
     227             : }
     228             : 
     229             : /* End of implementation class template. */
     230             : #endif
     231             : 
     232             : 
     233             : #endif /* __gen_nsICookieManager_h__ */

Generated by: LCOV version 1.13