LCOV - code coverage report
Current view: directory - objdir/dist/include - nsICookiePermission.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/nsICookiePermission.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsICookiePermission_h__
       6                 : #define __gen_nsICookiePermission_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 nsICookie2; /* forward declaration */
      18                 : 
      19                 : class nsIURI; /* forward declaration */
      20                 : 
      21                 : class nsIChannel; /* forward declaration */
      22                 : 
      23                 : typedef PRInt32  nsCookieAccess;
      24                 : 
      25                 : 
      26                 : /* starting interface:    nsICookiePermission */
      27                 : #define NS_ICOOKIEPERMISSION_IID_STR "4b1a775d-f6d3-4389-be2e-9dfbaf2ab47b"
      28                 : 
      29                 : #define NS_ICOOKIEPERMISSION_IID \
      30                 :   {0x4b1a775d, 0xf6d3, 0x4389, \
      31                 :     { 0xbe, 0x2e, 0x9d, 0xfb, 0xaf, 0x2a, 0xb4, 0x7b }}
      32                 : 
      33             294 : class NS_NO_VTABLE NS_SCRIPTABLE nsICookiePermission : public nsISupports {
      34                 :  public: 
      35                 : 
      36                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOOKIEPERMISSION_IID)
      37                 : 
      38                 :   enum {
      39                 :     ACCESS_DEFAULT = 0,
      40                 :     ACCESS_ALLOW = 1,
      41                 :     ACCESS_DENY = 2,
      42                 :     ACCESS_SESSION = 8
      43                 :   };
      44                 : 
      45                 :   /* void setAccess (in nsIURI aURI, in nsCookieAccess aAccess); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD SetAccess(nsIURI *aURI, nsCookieAccess aAccess) = 0;
      47                 : 
      48                 :   /* nsCookieAccess canAccess (in nsIURI aURI, in nsIChannel aChannel); */
      49                 :   NS_SCRIPTABLE NS_IMETHOD CanAccess(nsIURI *aURI, nsIChannel *aChannel, nsCookieAccess *_retval NS_OUTPARAM) = 0;
      50                 : 
      51                 :   /* boolean canSetCookie (in nsIURI aURI, in nsIChannel aChannel, in nsICookie2 aCookie, inout boolean aIsSession, inout PRInt64 aExpiry); */
      52                 :   NS_SCRIPTABLE NS_IMETHOD CanSetCookie(nsIURI *aURI, nsIChannel *aChannel, nsICookie2 *aCookie, bool *aIsSession NS_INOUTPARAM, PRInt64 *aExpiry NS_INOUTPARAM, bool *_retval NS_OUTPARAM) = 0;
      53                 : 
      54                 :   /* nsIURI getOriginatingURI (in nsIChannel aChannel); */
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetOriginatingURI(nsIChannel *aChannel, nsIURI * *_retval NS_OUTPARAM) = 0;
      56                 : 
      57                 : };
      58                 : 
      59                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICookiePermission, NS_ICOOKIEPERMISSION_IID)
      60                 : 
      61                 : /* Use this macro when declaring classes that implement this interface. */
      62                 : #define NS_DECL_NSICOOKIEPERMISSION \
      63                 :   NS_SCRIPTABLE NS_IMETHOD SetAccess(nsIURI *aURI, nsCookieAccess aAccess); \
      64                 :   NS_SCRIPTABLE NS_IMETHOD CanAccess(nsIURI *aURI, nsIChannel *aChannel, nsCookieAccess *_retval NS_OUTPARAM); \
      65                 :   NS_SCRIPTABLE NS_IMETHOD CanSetCookie(nsIURI *aURI, nsIChannel *aChannel, nsICookie2 *aCookie, bool *aIsSession NS_INOUTPARAM, PRInt64 *aExpiry NS_INOUTPARAM, bool *_retval NS_OUTPARAM); \
      66                 :   NS_SCRIPTABLE NS_IMETHOD GetOriginatingURI(nsIChannel *aChannel, nsIURI * *_retval NS_OUTPARAM); 
      67                 : 
      68                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      69                 : #define NS_FORWARD_NSICOOKIEPERMISSION(_to) \
      70                 :   NS_SCRIPTABLE NS_IMETHOD SetAccess(nsIURI *aURI, nsCookieAccess aAccess) { return _to SetAccess(aURI, aAccess); } \
      71                 :   NS_SCRIPTABLE NS_IMETHOD CanAccess(nsIURI *aURI, nsIChannel *aChannel, nsCookieAccess *_retval NS_OUTPARAM) { return _to CanAccess(aURI, aChannel, _retval); } \
      72                 :   NS_SCRIPTABLE NS_IMETHOD CanSetCookie(nsIURI *aURI, nsIChannel *aChannel, nsICookie2 *aCookie, bool *aIsSession NS_INOUTPARAM, PRInt64 *aExpiry NS_INOUTPARAM, bool *_retval NS_OUTPARAM) { return _to CanSetCookie(aURI, aChannel, aCookie, aIsSession, aExpiry, _retval); } \
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetOriginatingURI(nsIChannel *aChannel, nsIURI * *_retval NS_OUTPARAM) { return _to GetOriginatingURI(aChannel, _retval); } 
      74                 : 
      75                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      76                 : #define NS_FORWARD_SAFE_NSICOOKIEPERMISSION(_to) \
      77                 :   NS_SCRIPTABLE NS_IMETHOD SetAccess(nsIURI *aURI, nsCookieAccess aAccess) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccess(aURI, aAccess); } \
      78                 :   NS_SCRIPTABLE NS_IMETHOD CanAccess(nsIURI *aURI, nsIChannel *aChannel, nsCookieAccess *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanAccess(aURI, aChannel, _retval); } \
      79                 :   NS_SCRIPTABLE NS_IMETHOD CanSetCookie(nsIURI *aURI, nsIChannel *aChannel, nsICookie2 *aCookie, bool *aIsSession NS_INOUTPARAM, PRInt64 *aExpiry NS_INOUTPARAM, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanSetCookie(aURI, aChannel, aCookie, aIsSession, aExpiry, _retval); } \
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetOriginatingURI(nsIChannel *aChannel, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginatingURI(aChannel, _retval); } 
      81                 : 
      82                 : #if 0
      83                 : /* Use the code below as a template for the implementation class for this interface. */
      84                 : 
      85                 : /* Header file */
      86                 : class nsCookiePermission : public nsICookiePermission
      87                 : {
      88                 : public:
      89                 :   NS_DECL_ISUPPORTS
      90                 :   NS_DECL_NSICOOKIEPERMISSION
      91                 : 
      92                 :   nsCookiePermission();
      93                 : 
      94                 : private:
      95                 :   ~nsCookiePermission();
      96                 : 
      97                 : protected:
      98                 :   /* additional members */
      99                 : };
     100                 : 
     101                 : /* Implementation file */
     102                 : NS_IMPL_ISUPPORTS1(nsCookiePermission, nsICookiePermission)
     103                 : 
     104                 : nsCookiePermission::nsCookiePermission()
     105                 : {
     106                 :   /* member initializers and constructor code */
     107                 : }
     108                 : 
     109                 : nsCookiePermission::~nsCookiePermission()
     110                 : {
     111                 :   /* destructor code */
     112                 : }
     113                 : 
     114                 : /* void setAccess (in nsIURI aURI, in nsCookieAccess aAccess); */
     115                 : NS_IMETHODIMP nsCookiePermission::SetAccess(nsIURI *aURI, nsCookieAccess aAccess)
     116                 : {
     117                 :     return NS_ERROR_NOT_IMPLEMENTED;
     118                 : }
     119                 : 
     120                 : /* nsCookieAccess canAccess (in nsIURI aURI, in nsIChannel aChannel); */
     121                 : NS_IMETHODIMP nsCookiePermission::CanAccess(nsIURI *aURI, nsIChannel *aChannel, nsCookieAccess *_retval NS_OUTPARAM)
     122                 : {
     123                 :     return NS_ERROR_NOT_IMPLEMENTED;
     124                 : }
     125                 : 
     126                 : /* boolean canSetCookie (in nsIURI aURI, in nsIChannel aChannel, in nsICookie2 aCookie, inout boolean aIsSession, inout PRInt64 aExpiry); */
     127                 : NS_IMETHODIMP nsCookiePermission::CanSetCookie(nsIURI *aURI, nsIChannel *aChannel, nsICookie2 *aCookie, bool *aIsSession NS_INOUTPARAM, PRInt64 *aExpiry NS_INOUTPARAM, bool *_retval NS_OUTPARAM)
     128                 : {
     129                 :     return NS_ERROR_NOT_IMPLEMENTED;
     130                 : }
     131                 : 
     132                 : /* nsIURI getOriginatingURI (in nsIChannel aChannel); */
     133                 : NS_IMETHODIMP nsCookiePermission::GetOriginatingURI(nsIChannel *aChannel, nsIURI * *_retval NS_OUTPARAM)
     134                 : {
     135                 :     return NS_ERROR_NOT_IMPLEMENTED;
     136                 : }
     137                 : 
     138                 : /* End of implementation class template. */
     139                 : #endif
     140                 : 
     141                 : /**
     142                 :  * The nsICookiePermission implementation is an XPCOM service registered
     143                 :  * under the ContractID:
     144                 :  */
     145                 : #define NS_COOKIEPERMISSION_CONTRACTID "@mozilla.org/cookie/permission;1"
     146                 : 
     147                 : #endif /* __gen_nsICookiePermission_h__ */

Generated by: LCOV version 1.7