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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIQuotaManagerService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIQuotaManagerService_h__
       6             : #define __gen_nsIQuotaManagerService_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 nsIPrincipal; /* forward declaration */
      18             : 
      19             : class nsIQuotaRequest; /* forward declaration */
      20             : 
      21             : class nsIQuotaUsageCallback; /* forward declaration */
      22             : 
      23             : class nsIQuotaUsageRequest; /* forward declaration */
      24             : 
      25             : 
      26             : /* starting interface:    nsIQuotaManagerService */
      27             : #define NS_IQUOTAMANAGERSERVICE_IID_STR "1b3d0a38-8151-4cf9-89fa-4f92c2ef0e7e"
      28             : 
      29             : #define NS_IQUOTAMANAGERSERVICE_IID \
      30             :   {0x1b3d0a38, 0x8151, 0x4cf9, \
      31             :     { 0x89, 0xfa, 0x4f, 0x92, 0xc2, 0xef, 0x0e, 0x7e }}
      32             : 
      33           0 : class NS_NO_VTABLE nsIQuotaManagerService : public nsISupports {
      34             :  public:
      35             : 
      36             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IQUOTAMANAGERSERVICE_IID)
      37             : 
      38             :   /* [must_use] nsIQuotaRequest init (); */
      39             :   MOZ_MUST_USE NS_IMETHOD Init(nsIQuotaRequest * *_retval) = 0;
      40             : 
      41             :   /* [must_use] nsIQuotaRequest initStoragesForPrincipal (in nsIPrincipal aPrincipal, in ACString aPersistenceType); */
      42             :   MOZ_MUST_USE NS_IMETHOD InitStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType, nsIQuotaRequest * *_retval) = 0;
      43             : 
      44             :   /* [must_use] nsIQuotaUsageRequest getUsage (in nsIQuotaUsageCallback aCallback, [optional] in boolean aGetAll); */
      45             :   MOZ_MUST_USE NS_IMETHOD GetUsage(nsIQuotaUsageCallback *aCallback, bool aGetAll, nsIQuotaUsageRequest * *_retval) = 0;
      46             : 
      47             :   /* [must_use] nsIQuotaUsageRequest getUsageForPrincipal (in nsIPrincipal aPrincipal, in nsIQuotaUsageCallback aCallback, [optional] in boolean aGetGroupUsage); */
      48             :   MOZ_MUST_USE NS_IMETHOD GetUsageForPrincipal(nsIPrincipal *aPrincipal, nsIQuotaUsageCallback *aCallback, bool aGetGroupUsage, nsIQuotaUsageRequest * *_retval) = 0;
      49             : 
      50             :   /* [must_use] nsIQuotaRequest clear (); */
      51             :   MOZ_MUST_USE NS_IMETHOD Clear(nsIQuotaRequest * *_retval) = 0;
      52             : 
      53             :   /* [must_use] nsIQuotaRequest clearStoragesForPrincipal (in nsIPrincipal aPrincipal, [optional] in ACString aPersistenceType, [optional] in boolean aClearAll); */
      54             :   MOZ_MUST_USE NS_IMETHOD ClearStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType, bool aClearAll, nsIQuotaRequest * *_retval) = 0;
      55             : 
      56             :   /* [must_use] nsIQuotaRequest reset (); */
      57             :   MOZ_MUST_USE NS_IMETHOD Reset(nsIQuotaRequest * *_retval) = 0;
      58             : 
      59             :   /* [must_use] nsIQuotaRequest persisted (in nsIPrincipal aPrincipal); */
      60             :   MOZ_MUST_USE NS_IMETHOD Persisted(nsIPrincipal *aPrincipal, nsIQuotaRequest * *_retval) = 0;
      61             : 
      62             :   /* [must_use] nsIQuotaRequest persist (in nsIPrincipal aPrincipal); */
      63             :   MOZ_MUST_USE NS_IMETHOD Persist(nsIPrincipal *aPrincipal, nsIQuotaRequest * *_retval) = 0;
      64             : 
      65             : };
      66             : 
      67             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIQuotaManagerService, NS_IQUOTAMANAGERSERVICE_IID)
      68             : 
      69             : /* Use this macro when declaring classes that implement this interface. */
      70             : #define NS_DECL_NSIQUOTAMANAGERSERVICE \
      71             :   MOZ_MUST_USE NS_IMETHOD Init(nsIQuotaRequest * *_retval) override; \
      72             :   MOZ_MUST_USE NS_IMETHOD InitStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType, nsIQuotaRequest * *_retval) override; \
      73             :   MOZ_MUST_USE NS_IMETHOD GetUsage(nsIQuotaUsageCallback *aCallback, bool aGetAll, nsIQuotaUsageRequest * *_retval) override; \
      74             :   MOZ_MUST_USE NS_IMETHOD GetUsageForPrincipal(nsIPrincipal *aPrincipal, nsIQuotaUsageCallback *aCallback, bool aGetGroupUsage, nsIQuotaUsageRequest * *_retval) override; \
      75             :   MOZ_MUST_USE NS_IMETHOD Clear(nsIQuotaRequest * *_retval) override; \
      76             :   MOZ_MUST_USE NS_IMETHOD ClearStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType, bool aClearAll, nsIQuotaRequest * *_retval) override; \
      77             :   MOZ_MUST_USE NS_IMETHOD Reset(nsIQuotaRequest * *_retval) override; \
      78             :   MOZ_MUST_USE NS_IMETHOD Persisted(nsIPrincipal *aPrincipal, nsIQuotaRequest * *_retval) override; \
      79             :   MOZ_MUST_USE NS_IMETHOD Persist(nsIPrincipal *aPrincipal, nsIQuotaRequest * *_retval) override; 
      80             : 
      81             : /* Use this macro when declaring the members of this interface when the
      82             :    class doesn't implement the interface. This is useful for forwarding. */
      83             : #define NS_DECL_NON_VIRTUAL_NSIQUOTAMANAGERSERVICE \
      84             :   MOZ_MUST_USE nsresult Init(nsIQuotaRequest * *_retval); \
      85             :   MOZ_MUST_USE nsresult InitStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType, nsIQuotaRequest * *_retval); \
      86             :   MOZ_MUST_USE nsresult GetUsage(nsIQuotaUsageCallback *aCallback, bool aGetAll, nsIQuotaUsageRequest * *_retval); \
      87             :   MOZ_MUST_USE nsresult GetUsageForPrincipal(nsIPrincipal *aPrincipal, nsIQuotaUsageCallback *aCallback, bool aGetGroupUsage, nsIQuotaUsageRequest * *_retval); \
      88             :   MOZ_MUST_USE nsresult Clear(nsIQuotaRequest * *_retval); \
      89             :   MOZ_MUST_USE nsresult ClearStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType, bool aClearAll, nsIQuotaRequest * *_retval); \
      90             :   MOZ_MUST_USE nsresult Reset(nsIQuotaRequest * *_retval); \
      91             :   MOZ_MUST_USE nsresult Persisted(nsIPrincipal *aPrincipal, nsIQuotaRequest * *_retval); \
      92             :   MOZ_MUST_USE nsresult Persist(nsIPrincipal *aPrincipal, nsIQuotaRequest * *_retval); 
      93             : 
      94             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      95             : #define NS_FORWARD_NSIQUOTAMANAGERSERVICE(_to) \
      96             :   MOZ_MUST_USE NS_IMETHOD Init(nsIQuotaRequest * *_retval) override { return _to Init(_retval); } \
      97             :   MOZ_MUST_USE NS_IMETHOD InitStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType, nsIQuotaRequest * *_retval) override { return _to InitStoragesForPrincipal(aPrincipal, aPersistenceType, _retval); } \
      98             :   MOZ_MUST_USE NS_IMETHOD GetUsage(nsIQuotaUsageCallback *aCallback, bool aGetAll, nsIQuotaUsageRequest * *_retval) override { return _to GetUsage(aCallback, aGetAll, _retval); } \
      99             :   MOZ_MUST_USE NS_IMETHOD GetUsageForPrincipal(nsIPrincipal *aPrincipal, nsIQuotaUsageCallback *aCallback, bool aGetGroupUsage, nsIQuotaUsageRequest * *_retval) override { return _to GetUsageForPrincipal(aPrincipal, aCallback, aGetGroupUsage, _retval); } \
     100             :   MOZ_MUST_USE NS_IMETHOD Clear(nsIQuotaRequest * *_retval) override { return _to Clear(_retval); } \
     101             :   MOZ_MUST_USE NS_IMETHOD ClearStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType, bool aClearAll, nsIQuotaRequest * *_retval) override { return _to ClearStoragesForPrincipal(aPrincipal, aPersistenceType, aClearAll, _retval); } \
     102             :   MOZ_MUST_USE NS_IMETHOD Reset(nsIQuotaRequest * *_retval) override { return _to Reset(_retval); } \
     103             :   MOZ_MUST_USE NS_IMETHOD Persisted(nsIPrincipal *aPrincipal, nsIQuotaRequest * *_retval) override { return _to Persisted(aPrincipal, _retval); } \
     104             :   MOZ_MUST_USE NS_IMETHOD Persist(nsIPrincipal *aPrincipal, nsIQuotaRequest * *_retval) override { return _to Persist(aPrincipal, _retval); } 
     105             : 
     106             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     107             : #define NS_FORWARD_SAFE_NSIQUOTAMANAGERSERVICE(_to) \
     108             :   MOZ_MUST_USE NS_IMETHOD Init(nsIQuotaRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(_retval); } \
     109             :   MOZ_MUST_USE NS_IMETHOD InitStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType, nsIQuotaRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitStoragesForPrincipal(aPrincipal, aPersistenceType, _retval); } \
     110             :   MOZ_MUST_USE NS_IMETHOD GetUsage(nsIQuotaUsageCallback *aCallback, bool aGetAll, nsIQuotaUsageRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsage(aCallback, aGetAll, _retval); } \
     111             :   MOZ_MUST_USE NS_IMETHOD GetUsageForPrincipal(nsIPrincipal *aPrincipal, nsIQuotaUsageCallback *aCallback, bool aGetGroupUsage, nsIQuotaUsageRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsageForPrincipal(aPrincipal, aCallback, aGetGroupUsage, _retval); } \
     112             :   MOZ_MUST_USE NS_IMETHOD Clear(nsIQuotaRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(_retval); } \
     113             :   MOZ_MUST_USE NS_IMETHOD ClearStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType, bool aClearAll, nsIQuotaRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearStoragesForPrincipal(aPrincipal, aPersistenceType, aClearAll, _retval); } \
     114             :   MOZ_MUST_USE NS_IMETHOD Reset(nsIQuotaRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(_retval); } \
     115             :   MOZ_MUST_USE NS_IMETHOD Persisted(nsIPrincipal *aPrincipal, nsIQuotaRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Persisted(aPrincipal, _retval); } \
     116             :   MOZ_MUST_USE NS_IMETHOD Persist(nsIPrincipal *aPrincipal, nsIQuotaRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Persist(aPrincipal, _retval); } 
     117             : 
     118             : #if 0
     119             : /* Use the code below as a template for the implementation class for this interface. */
     120             : 
     121             : /* Header file */
     122             : class nsQuotaManagerService : public nsIQuotaManagerService
     123             : {
     124             : public:
     125             :   NS_DECL_ISUPPORTS
     126             :   NS_DECL_NSIQUOTAMANAGERSERVICE
     127             : 
     128             :   nsQuotaManagerService();
     129             : 
     130             : private:
     131             :   ~nsQuotaManagerService();
     132             : 
     133             : protected:
     134             :   /* additional members */
     135             : };
     136             : 
     137             : /* Implementation file */
     138             : NS_IMPL_ISUPPORTS(nsQuotaManagerService, nsIQuotaManagerService)
     139             : 
     140             : nsQuotaManagerService::nsQuotaManagerService()
     141             : {
     142             :   /* member initializers and constructor code */
     143             : }
     144             : 
     145             : nsQuotaManagerService::~nsQuotaManagerService()
     146             : {
     147             :   /* destructor code */
     148             : }
     149             : 
     150             : /* [must_use] nsIQuotaRequest init (); */
     151             : MOZ_MUST_USE NS_IMETHODIMP nsQuotaManagerService::Init(nsIQuotaRequest * *_retval)
     152             : {
     153             :     return NS_ERROR_NOT_IMPLEMENTED;
     154             : }
     155             : 
     156             : /* [must_use] nsIQuotaRequest initStoragesForPrincipal (in nsIPrincipal aPrincipal, in ACString aPersistenceType); */
     157             : MOZ_MUST_USE NS_IMETHODIMP nsQuotaManagerService::InitStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType, nsIQuotaRequest * *_retval)
     158             : {
     159             :     return NS_ERROR_NOT_IMPLEMENTED;
     160             : }
     161             : 
     162             : /* [must_use] nsIQuotaUsageRequest getUsage (in nsIQuotaUsageCallback aCallback, [optional] in boolean aGetAll); */
     163             : MOZ_MUST_USE NS_IMETHODIMP nsQuotaManagerService::GetUsage(nsIQuotaUsageCallback *aCallback, bool aGetAll, nsIQuotaUsageRequest * *_retval)
     164             : {
     165             :     return NS_ERROR_NOT_IMPLEMENTED;
     166             : }
     167             : 
     168             : /* [must_use] nsIQuotaUsageRequest getUsageForPrincipal (in nsIPrincipal aPrincipal, in nsIQuotaUsageCallback aCallback, [optional] in boolean aGetGroupUsage); */
     169             : MOZ_MUST_USE NS_IMETHODIMP nsQuotaManagerService::GetUsageForPrincipal(nsIPrincipal *aPrincipal, nsIQuotaUsageCallback *aCallback, bool aGetGroupUsage, nsIQuotaUsageRequest * *_retval)
     170             : {
     171             :     return NS_ERROR_NOT_IMPLEMENTED;
     172             : }
     173             : 
     174             : /* [must_use] nsIQuotaRequest clear (); */
     175             : MOZ_MUST_USE NS_IMETHODIMP nsQuotaManagerService::Clear(nsIQuotaRequest * *_retval)
     176             : {
     177             :     return NS_ERROR_NOT_IMPLEMENTED;
     178             : }
     179             : 
     180             : /* [must_use] nsIQuotaRequest clearStoragesForPrincipal (in nsIPrincipal aPrincipal, [optional] in ACString aPersistenceType, [optional] in boolean aClearAll); */
     181             : MOZ_MUST_USE NS_IMETHODIMP nsQuotaManagerService::ClearStoragesForPrincipal(nsIPrincipal *aPrincipal, const nsACString & aPersistenceType, bool aClearAll, nsIQuotaRequest * *_retval)
     182             : {
     183             :     return NS_ERROR_NOT_IMPLEMENTED;
     184             : }
     185             : 
     186             : /* [must_use] nsIQuotaRequest reset (); */
     187             : MOZ_MUST_USE NS_IMETHODIMP nsQuotaManagerService::Reset(nsIQuotaRequest * *_retval)
     188             : {
     189             :     return NS_ERROR_NOT_IMPLEMENTED;
     190             : }
     191             : 
     192             : /* [must_use] nsIQuotaRequest persisted (in nsIPrincipal aPrincipal); */
     193             : MOZ_MUST_USE NS_IMETHODIMP nsQuotaManagerService::Persisted(nsIPrincipal *aPrincipal, nsIQuotaRequest * *_retval)
     194             : {
     195             :     return NS_ERROR_NOT_IMPLEMENTED;
     196             : }
     197             : 
     198             : /* [must_use] nsIQuotaRequest persist (in nsIPrincipal aPrincipal); */
     199             : MOZ_MUST_USE NS_IMETHODIMP nsQuotaManagerService::Persist(nsIPrincipal *aPrincipal, nsIQuotaRequest * *_retval)
     200             : {
     201             :     return NS_ERROR_NOT_IMPLEMENTED;
     202             : }
     203             : 
     204             : /* End of implementation class template. */
     205             : #endif
     206             : 
     207             : 
     208             : #endif /* __gen_nsIQuotaManagerService_h__ */

Generated by: LCOV version 1.13