LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIDOMStorageManager.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/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             : class mozIDOMWindow; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    nsIDOMStorageManager */
      25             : #define NS_IDOMSTORAGEMANAGER_IID_STR "a20c742e-3ed1-44fb-b897-4080a75b1662"
      26             : 
      27             : #define NS_IDOMSTORAGEMANAGER_IID \
      28             :   {0xa20c742e, 0x3ed1, 0x44fb, \
      29             :     { 0xb8, 0x97, 0x40, 0x80, 0xa7, 0x5b, 0x16, 0x62 }}
      30             : 
      31           8 : class NS_NO_VTABLE nsIDOMStorageManager : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGEMANAGER_IID)
      35             : 
      36             :   /* nsIDOMStorage precacheStorage (in nsIPrincipal aPrincipal); */
      37             :   NS_IMETHOD PrecacheStorage(nsIPrincipal *aPrincipal, nsIDOMStorage * *_retval) = 0;
      38             : 
      39             :   /* nsIDOMStorage createStorage (in mozIDOMWindow aWindow, in nsIPrincipal aPrincipal, in DOMString aDocumentURI, [optional] in bool aPrivate); */
      40             :   NS_IMETHOD CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, bool aPrivate, nsIDOMStorage * *_retval) = 0;
      41             : 
      42             :   /* nsIDOMStorage getStorage (in mozIDOMWindow aWindow, in nsIPrincipal aPrincipal, [optional] in bool aPrivate); */
      43             :   NS_IMETHOD GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, nsIDOMStorage * *_retval) = 0;
      44             : 
      45             :   /* void cloneStorage (in nsIDOMStorage aStorageToCloneFrom); */
      46             :   NS_IMETHOD CloneStorage(nsIDOMStorage *aStorageToCloneFrom) = 0;
      47             : 
      48             :   /* bool checkStorage (in nsIPrincipal aPrincipal, in nsIDOMStorage aStorage); */
      49             :   NS_IMETHOD CheckStorage(nsIPrincipal *aPrincipal, nsIDOMStorage *aStorage, bool *_retval) = 0;
      50             : 
      51             :   /* nsIDOMStorage getLocalStorageForPrincipal (in nsIPrincipal aPrincipal, in DOMString aDocumentURI, [optional] in bool aPrivate); */
      52             :   NS_IMETHOD GetLocalStorageForPrincipal(nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, bool aPrivate, nsIDOMStorage * *_retval) = 0;
      53             : 
      54             : };
      55             : 
      56             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStorageManager, NS_IDOMSTORAGEMANAGER_IID)
      57             : 
      58             : /* Use this macro when declaring classes that implement this interface. */
      59             : #define NS_DECL_NSIDOMSTORAGEMANAGER \
      60             :   NS_IMETHOD PrecacheStorage(nsIPrincipal *aPrincipal, nsIDOMStorage * *_retval) override; \
      61             :   NS_IMETHOD CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, bool aPrivate, nsIDOMStorage * *_retval) override; \
      62             :   NS_IMETHOD GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, nsIDOMStorage * *_retval) override; \
      63             :   NS_IMETHOD CloneStorage(nsIDOMStorage *aStorageToCloneFrom) override; \
      64             :   NS_IMETHOD CheckStorage(nsIPrincipal *aPrincipal, nsIDOMStorage *aStorage, bool *_retval) override; \
      65             :   NS_IMETHOD GetLocalStorageForPrincipal(nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, bool aPrivate, nsIDOMStorage * *_retval) override; 
      66             : 
      67             : /* Use this macro when declaring the members of this interface when the
      68             :    class doesn't implement the interface. This is useful for forwarding. */
      69             : #define NS_DECL_NON_VIRTUAL_NSIDOMSTORAGEMANAGER \
      70             :   nsresult PrecacheStorage(nsIPrincipal *aPrincipal, nsIDOMStorage * *_retval); \
      71             :   nsresult CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, bool aPrivate, nsIDOMStorage * *_retval); \
      72             :   nsresult GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, nsIDOMStorage * *_retval); \
      73             :   nsresult CloneStorage(nsIDOMStorage *aStorageToCloneFrom); \
      74             :   nsresult CheckStorage(nsIPrincipal *aPrincipal, nsIDOMStorage *aStorage, bool *_retval); \
      75             :   nsresult GetLocalStorageForPrincipal(nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, bool aPrivate, nsIDOMStorage * *_retval); 
      76             : 
      77             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      78             : #define NS_FORWARD_NSIDOMSTORAGEMANAGER(_to) \
      79             :   NS_IMETHOD PrecacheStorage(nsIPrincipal *aPrincipal, nsIDOMStorage * *_retval) override { return _to PrecacheStorage(aPrincipal, _retval); } \
      80             :   NS_IMETHOD CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, bool aPrivate, nsIDOMStorage * *_retval) override { return _to CreateStorage(aWindow, aPrincipal, aDocumentURI, aPrivate, _retval); } \
      81             :   NS_IMETHOD GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, nsIDOMStorage * *_retval) override { return _to GetStorage(aWindow, aPrincipal, aPrivate, _retval); } \
      82             :   NS_IMETHOD CloneStorage(nsIDOMStorage *aStorageToCloneFrom) override { return _to CloneStorage(aStorageToCloneFrom); } \
      83             :   NS_IMETHOD CheckStorage(nsIPrincipal *aPrincipal, nsIDOMStorage *aStorage, bool *_retval) override { return _to CheckStorage(aPrincipal, aStorage, _retval); } \
      84             :   NS_IMETHOD GetLocalStorageForPrincipal(nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, bool aPrivate, nsIDOMStorage * *_retval) override { return _to GetLocalStorageForPrincipal(aPrincipal, aDocumentURI, aPrivate, _retval); } 
      85             : 
      86             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      87             : #define NS_FORWARD_SAFE_NSIDOMSTORAGEMANAGER(_to) \
      88             :   NS_IMETHOD PrecacheStorage(nsIPrincipal *aPrincipal, nsIDOMStorage * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PrecacheStorage(aPrincipal, _retval); } \
      89             :   NS_IMETHOD CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, bool aPrivate, nsIDOMStorage * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateStorage(aWindow, aPrincipal, aDocumentURI, aPrivate, _retval); } \
      90             :   NS_IMETHOD GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, nsIDOMStorage * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStorage(aWindow, aPrincipal, aPrivate, _retval); } \
      91             :   NS_IMETHOD CloneStorage(nsIDOMStorage *aStorageToCloneFrom) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneStorage(aStorageToCloneFrom); } \
      92             :   NS_IMETHOD CheckStorage(nsIPrincipal *aPrincipal, nsIDOMStorage *aStorage, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckStorage(aPrincipal, aStorage, _retval); } \
      93             :   NS_IMETHOD GetLocalStorageForPrincipal(nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, bool aPrivate, nsIDOMStorage * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalStorageForPrincipal(aPrincipal, aDocumentURI, aPrivate, _retval); } 
      94             : 
      95             : #if 0
      96             : /* Use the code below as a template for the implementation class for this interface. */
      97             : 
      98             : /* Header file */
      99             : class nsDOMStorageManager : public nsIDOMStorageManager
     100             : {
     101             : public:
     102             :   NS_DECL_ISUPPORTS
     103             :   NS_DECL_NSIDOMSTORAGEMANAGER
     104             : 
     105             :   nsDOMStorageManager();
     106             : 
     107             : private:
     108             :   ~nsDOMStorageManager();
     109             : 
     110             : protected:
     111             :   /* additional members */
     112             : };
     113             : 
     114             : /* Implementation file */
     115             : NS_IMPL_ISUPPORTS(nsDOMStorageManager, nsIDOMStorageManager)
     116             : 
     117             : nsDOMStorageManager::nsDOMStorageManager()
     118             : {
     119             :   /* member initializers and constructor code */
     120             : }
     121             : 
     122             : nsDOMStorageManager::~nsDOMStorageManager()
     123             : {
     124             :   /* destructor code */
     125             : }
     126             : 
     127             : /* nsIDOMStorage precacheStorage (in nsIPrincipal aPrincipal); */
     128             : NS_IMETHODIMP nsDOMStorageManager::PrecacheStorage(nsIPrincipal *aPrincipal, nsIDOMStorage * *_retval)
     129             : {
     130             :     return NS_ERROR_NOT_IMPLEMENTED;
     131             : }
     132             : 
     133             : /* nsIDOMStorage createStorage (in mozIDOMWindow aWindow, in nsIPrincipal aPrincipal, in DOMString aDocumentURI, [optional] in bool aPrivate); */
     134             : NS_IMETHODIMP nsDOMStorageManager::CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, bool aPrivate, nsIDOMStorage * *_retval)
     135             : {
     136             :     return NS_ERROR_NOT_IMPLEMENTED;
     137             : }
     138             : 
     139             : /* nsIDOMStorage getStorage (in mozIDOMWindow aWindow, in nsIPrincipal aPrincipal, [optional] in bool aPrivate); */
     140             : NS_IMETHODIMP nsDOMStorageManager::GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, nsIDOMStorage * *_retval)
     141             : {
     142             :     return NS_ERROR_NOT_IMPLEMENTED;
     143             : }
     144             : 
     145             : /* void cloneStorage (in nsIDOMStorage aStorageToCloneFrom); */
     146             : NS_IMETHODIMP nsDOMStorageManager::CloneStorage(nsIDOMStorage *aStorageToCloneFrom)
     147             : {
     148             :     return NS_ERROR_NOT_IMPLEMENTED;
     149             : }
     150             : 
     151             : /* bool checkStorage (in nsIPrincipal aPrincipal, in nsIDOMStorage aStorage); */
     152             : NS_IMETHODIMP nsDOMStorageManager::CheckStorage(nsIPrincipal *aPrincipal, nsIDOMStorage *aStorage, bool *_retval)
     153             : {
     154             :     return NS_ERROR_NOT_IMPLEMENTED;
     155             : }
     156             : 
     157             : /* nsIDOMStorage getLocalStorageForPrincipal (in nsIPrincipal aPrincipal, in DOMString aDocumentURI, [optional] in bool aPrivate); */
     158             : NS_IMETHODIMP nsDOMStorageManager::GetLocalStorageForPrincipal(nsIPrincipal *aPrincipal, const nsAString & aDocumentURI, bool aPrivate, nsIDOMStorage * *_retval)
     159             : {
     160             :     return NS_ERROR_NOT_IMPLEMENTED;
     161             : }
     162             : 
     163             : /* End of implementation class template. */
     164             : #endif
     165             : 
     166             : 
     167             : #endif /* __gen_nsIDOMStorageManager_h__ */

Generated by: LCOV version 1.13