LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDOMStorageManager.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/dom/interfaces/storage/nsIDOMStorageManager.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDOMStorageManager_h__
       6                 : #define __gen_nsIDOMStorageManager_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 nsIDOMStorage; /* forward declaration */
      18                 : 
      19                 : class nsIPrincipal; /* forward declaration */
      20                 : 
      21                 : 
      22                 : /* starting interface:    nsIDOMStorageManager */
      23                 : #define NS_IDOMSTORAGEMANAGER_IID_STR "fd91ec36-7da8-43bb-b8f2-4b57a862a467"
      24                 : 
      25                 : #define NS_IDOMSTORAGEMANAGER_IID \
      26                 :   {0xfd91ec36, 0x7da8, 0x43bb, \
      27                 :     { 0xb8, 0xf2, 0x4b, 0x57, 0xa8, 0x62, 0xa4, 0x67 }}
      28                 : 
      29            1404 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMStorageManager : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGEMANAGER_IID)
      33                 : 
      34                 :   /* long getUsage (in AString aOwnerDomain); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD GetUsage(const nsAString & aOwnerDomain, PRInt32 *_retval NS_OUTPARAM) = 0;
      36                 : 
      37                 :   /* void clearOfflineApps (); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD ClearOfflineApps(void) = 0;
      39                 : 
      40                 :   /* nsIDOMStorage getLocalStorageForPrincipal (in nsIPrincipal aPrincipal, in DOMString aDocumentURI); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD GetLocalStorageForPrincipal(nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, nsIDOMStorage * *_retval NS_OUTPARAM) = 0;
      42                 : 
      43                 : };
      44                 : 
      45                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStorageManager, NS_IDOMSTORAGEMANAGER_IID)
      46                 : 
      47                 : /* Use this macro when declaring classes that implement this interface. */
      48                 : #define NS_DECL_NSIDOMSTORAGEMANAGER \
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetUsage(const nsAString & aOwnerDomain, PRInt32 *_retval NS_OUTPARAM); \
      50                 :   NS_SCRIPTABLE NS_IMETHOD ClearOfflineApps(void); \
      51                 :   NS_SCRIPTABLE NS_IMETHOD GetLocalStorageForPrincipal(nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, nsIDOMStorage * *_retval NS_OUTPARAM); 
      52                 : 
      53                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      54                 : #define NS_FORWARD_NSIDOMSTORAGEMANAGER(_to) \
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetUsage(const nsAString & aOwnerDomain, PRInt32 *_retval NS_OUTPARAM) { return _to GetUsage(aOwnerDomain, _retval); } \
      56                 :   NS_SCRIPTABLE NS_IMETHOD ClearOfflineApps(void) { return _to ClearOfflineApps(); } \
      57                 :   NS_SCRIPTABLE NS_IMETHOD GetLocalStorageForPrincipal(nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, nsIDOMStorage * *_retval NS_OUTPARAM) { return _to GetLocalStorageForPrincipal(aPrincipal, aDocumentURI, _retval); } 
      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_NSIDOMSTORAGEMANAGER(_to) \
      61                 :   NS_SCRIPTABLE NS_IMETHOD GetUsage(const nsAString & aOwnerDomain, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsage(aOwnerDomain, _retval); } \
      62                 :   NS_SCRIPTABLE NS_IMETHOD ClearOfflineApps(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearOfflineApps(); } \
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetLocalStorageForPrincipal(nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, nsIDOMStorage * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalStorageForPrincipal(aPrincipal, aDocumentURI, _retval); } 
      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 nsDOMStorageManager : public nsIDOMStorageManager
      70                 : {
      71                 : public:
      72                 :   NS_DECL_ISUPPORTS
      73                 :   NS_DECL_NSIDOMSTORAGEMANAGER
      74                 : 
      75                 :   nsDOMStorageManager();
      76                 : 
      77                 : private:
      78                 :   ~nsDOMStorageManager();
      79                 : 
      80                 : protected:
      81                 :   /* additional members */
      82                 : };
      83                 : 
      84                 : /* Implementation file */
      85                 : NS_IMPL_ISUPPORTS1(nsDOMStorageManager, nsIDOMStorageManager)
      86                 : 
      87                 : nsDOMStorageManager::nsDOMStorageManager()
      88                 : {
      89                 :   /* member initializers and constructor code */
      90                 : }
      91                 : 
      92                 : nsDOMStorageManager::~nsDOMStorageManager()
      93                 : {
      94                 :   /* destructor code */
      95                 : }
      96                 : 
      97                 : /* long getUsage (in AString aOwnerDomain); */
      98                 : NS_IMETHODIMP nsDOMStorageManager::GetUsage(const nsAString & aOwnerDomain, PRInt32 *_retval NS_OUTPARAM)
      99                 : {
     100                 :     return NS_ERROR_NOT_IMPLEMENTED;
     101                 : }
     102                 : 
     103                 : /* void clearOfflineApps (); */
     104                 : NS_IMETHODIMP nsDOMStorageManager::ClearOfflineApps()
     105                 : {
     106                 :     return NS_ERROR_NOT_IMPLEMENTED;
     107                 : }
     108                 : 
     109                 : /* nsIDOMStorage getLocalStorageForPrincipal (in nsIPrincipal aPrincipal, in DOMString aDocumentURI); */
     110                 : NS_IMETHODIMP nsDOMStorageManager::GetLocalStorageForPrincipal(nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, nsIDOMStorage * *_retval NS_OUTPARAM)
     111                 : {
     112                 :     return NS_ERROR_NOT_IMPLEMENTED;
     113                 : }
     114                 : 
     115                 : /* End of implementation class template. */
     116                 : #endif
     117                 : 
     118                 : 
     119                 : #endif /* __gen_nsIDOMStorageManager_h__ */

Generated by: LCOV version 1.7