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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIQuotaRequests.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIQuotaRequests_h__
       6             : #define __gen_nsIQuotaRequests_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 nsIQuotaCallback; /* forward declaration */
      20             : 
      21             : class nsIQuotaUsageCallback; /* forward declaration */
      22             : 
      23             : class nsIVariant; /* forward declaration */
      24             : 
      25             : 
      26             : /* starting interface:    nsIQuotaRequestBase */
      27             : #define NS_IQUOTAREQUESTBASE_IID_STR "9af54222-0407-48fd-a4ab-9457c986fc49"
      28             : 
      29             : #define NS_IQUOTAREQUESTBASE_IID \
      30             :   {0x9af54222, 0x0407, 0x48fd, \
      31             :     { 0xa4, 0xab, 0x94, 0x57, 0xc9, 0x86, 0xfc, 0x49 }}
      32             : 
      33           0 : class NS_NO_VTABLE nsIQuotaRequestBase : public nsISupports {
      34             :  public:
      35             : 
      36             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IQUOTAREQUESTBASE_IID)
      37             : 
      38             :   /* readonly attribute nsIPrincipal principal; */
      39             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) = 0;
      40             : 
      41             :   /* [must_use] readonly attribute nsresult resultCode; */
      42             :   MOZ_MUST_USE NS_IMETHOD GetResultCode(nsresult *aResultCode) = 0;
      43             : 
      44             : };
      45             : 
      46             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIQuotaRequestBase, NS_IQUOTAREQUESTBASE_IID)
      47             : 
      48             : /* Use this macro when declaring classes that implement this interface. */
      49             : #define NS_DECL_NSIQUOTAREQUESTBASE \
      50             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override; \
      51             :   MOZ_MUST_USE NS_IMETHOD GetResultCode(nsresult *aResultCode) override; 
      52             : 
      53             : /* Use this macro when declaring the members of this interface when the
      54             :    class doesn't implement the interface. This is useful for forwarding. */
      55             : #define NS_DECL_NON_VIRTUAL_NSIQUOTAREQUESTBASE \
      56             :   nsresult GetPrincipal(nsIPrincipal * *aPrincipal); \
      57             :   MOZ_MUST_USE nsresult GetResultCode(nsresult *aResultCode); 
      58             : 
      59             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      60             : #define NS_FORWARD_NSIQUOTAREQUESTBASE(_to) \
      61             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return _to GetPrincipal(aPrincipal); } \
      62             :   MOZ_MUST_USE NS_IMETHOD GetResultCode(nsresult *aResultCode) override { return _to GetResultCode(aResultCode); } 
      63             : 
      64             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      65             : #define NS_FORWARD_SAFE_NSIQUOTAREQUESTBASE(_to) \
      66             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipal(aPrincipal); } \
      67             :   MOZ_MUST_USE NS_IMETHOD GetResultCode(nsresult *aResultCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResultCode(aResultCode); } 
      68             : 
      69             : #if 0
      70             : /* Use the code below as a template for the implementation class for this interface. */
      71             : 
      72             : /* Header file */
      73             : class nsQuotaRequestBase : public nsIQuotaRequestBase
      74             : {
      75             : public:
      76             :   NS_DECL_ISUPPORTS
      77             :   NS_DECL_NSIQUOTAREQUESTBASE
      78             : 
      79             :   nsQuotaRequestBase();
      80             : 
      81             : private:
      82             :   ~nsQuotaRequestBase();
      83             : 
      84             : protected:
      85             :   /* additional members */
      86             : };
      87             : 
      88             : /* Implementation file */
      89             : NS_IMPL_ISUPPORTS(nsQuotaRequestBase, nsIQuotaRequestBase)
      90             : 
      91             : nsQuotaRequestBase::nsQuotaRequestBase()
      92             : {
      93             :   /* member initializers and constructor code */
      94             : }
      95             : 
      96             : nsQuotaRequestBase::~nsQuotaRequestBase()
      97             : {
      98             :   /* destructor code */
      99             : }
     100             : 
     101             : /* readonly attribute nsIPrincipal principal; */
     102             : NS_IMETHODIMP nsQuotaRequestBase::GetPrincipal(nsIPrincipal * *aPrincipal)
     103             : {
     104             :     return NS_ERROR_NOT_IMPLEMENTED;
     105             : }
     106             : 
     107             : /* [must_use] readonly attribute nsresult resultCode; */
     108             : MOZ_MUST_USE NS_IMETHODIMP nsQuotaRequestBase::GetResultCode(nsresult *aResultCode)
     109             : {
     110             :     return NS_ERROR_NOT_IMPLEMENTED;
     111             : }
     112             : 
     113             : /* End of implementation class template. */
     114             : #endif
     115             : 
     116             : 
     117             : /* starting interface:    nsIQuotaUsageRequest */
     118             : #define NS_IQUOTAUSAGEREQUEST_IID_STR "166e28e6-cf6d-4927-a6d7-b51bca9d3469"
     119             : 
     120             : #define NS_IQUOTAUSAGEREQUEST_IID \
     121             :   {0x166e28e6, 0xcf6d, 0x4927, \
     122             :     { 0xa6, 0xd7, 0xb5, 0x1b, 0xca, 0x9d, 0x34, 0x69 }}
     123             : 
     124           0 : class NS_NO_VTABLE nsIQuotaUsageRequest : public nsIQuotaRequestBase {
     125             :  public:
     126             : 
     127             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IQUOTAUSAGEREQUEST_IID)
     128             : 
     129             :   /* [must_use] readonly attribute nsIVariant result; */
     130             :   MOZ_MUST_USE NS_IMETHOD GetResult(nsIVariant * *aResult) = 0;
     131             : 
     132             :   /* attribute nsIQuotaUsageCallback callback; */
     133             :   NS_IMETHOD GetCallback(nsIQuotaUsageCallback * *aCallback) = 0;
     134             :   NS_IMETHOD SetCallback(nsIQuotaUsageCallback *aCallback) = 0;
     135             : 
     136             :   /* [must_use] void cancel (); */
     137             :   MOZ_MUST_USE NS_IMETHOD Cancel(void) = 0;
     138             : 
     139             : };
     140             : 
     141             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIQuotaUsageRequest, NS_IQUOTAUSAGEREQUEST_IID)
     142             : 
     143             : /* Use this macro when declaring classes that implement this interface. */
     144             : #define NS_DECL_NSIQUOTAUSAGEREQUEST \
     145             :   MOZ_MUST_USE NS_IMETHOD GetResult(nsIVariant * *aResult) override; \
     146             :   NS_IMETHOD GetCallback(nsIQuotaUsageCallback * *aCallback) override; \
     147             :   NS_IMETHOD SetCallback(nsIQuotaUsageCallback *aCallback) override; \
     148             :   MOZ_MUST_USE NS_IMETHOD Cancel(void) override; 
     149             : 
     150             : /* Use this macro when declaring the members of this interface when the
     151             :    class doesn't implement the interface. This is useful for forwarding. */
     152             : #define NS_DECL_NON_VIRTUAL_NSIQUOTAUSAGEREQUEST \
     153             :   MOZ_MUST_USE nsresult GetResult(nsIVariant * *aResult); \
     154             :   nsresult GetCallback(nsIQuotaUsageCallback * *aCallback); \
     155             :   nsresult SetCallback(nsIQuotaUsageCallback *aCallback); \
     156             :   MOZ_MUST_USE nsresult Cancel(void); 
     157             : 
     158             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     159             : #define NS_FORWARD_NSIQUOTAUSAGEREQUEST(_to) \
     160             :   MOZ_MUST_USE NS_IMETHOD GetResult(nsIVariant * *aResult) override { return _to GetResult(aResult); } \
     161             :   NS_IMETHOD GetCallback(nsIQuotaUsageCallback * *aCallback) override { return _to GetCallback(aCallback); } \
     162             :   NS_IMETHOD SetCallback(nsIQuotaUsageCallback *aCallback) override { return _to SetCallback(aCallback); } \
     163             :   MOZ_MUST_USE NS_IMETHOD Cancel(void) override { return _to Cancel(); } 
     164             : 
     165             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     166             : #define NS_FORWARD_SAFE_NSIQUOTAUSAGEREQUEST(_to) \
     167             :   MOZ_MUST_USE NS_IMETHOD GetResult(nsIVariant * *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
     168             :   NS_IMETHOD GetCallback(nsIQuotaUsageCallback * *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallback(aCallback); } \
     169             :   NS_IMETHOD SetCallback(nsIQuotaUsageCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallback(aCallback); } \
     170             :   MOZ_MUST_USE NS_IMETHOD Cancel(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(); } 
     171             : 
     172             : #if 0
     173             : /* Use the code below as a template for the implementation class for this interface. */
     174             : 
     175             : /* Header file */
     176             : class nsQuotaUsageRequest : public nsIQuotaUsageRequest
     177             : {
     178             : public:
     179             :   NS_DECL_ISUPPORTS
     180             :   NS_DECL_NSIQUOTAUSAGEREQUEST
     181             : 
     182             :   nsQuotaUsageRequest();
     183             : 
     184             : private:
     185             :   ~nsQuotaUsageRequest();
     186             : 
     187             : protected:
     188             :   /* additional members */
     189             : };
     190             : 
     191             : /* Implementation file */
     192             : NS_IMPL_ISUPPORTS(nsQuotaUsageRequest, nsIQuotaUsageRequest)
     193             : 
     194             : nsQuotaUsageRequest::nsQuotaUsageRequest()
     195             : {
     196             :   /* member initializers and constructor code */
     197             : }
     198             : 
     199             : nsQuotaUsageRequest::~nsQuotaUsageRequest()
     200             : {
     201             :   /* destructor code */
     202             : }
     203             : 
     204             : /* [must_use] readonly attribute nsIVariant result; */
     205             : MOZ_MUST_USE NS_IMETHODIMP nsQuotaUsageRequest::GetResult(nsIVariant * *aResult)
     206             : {
     207             :     return NS_ERROR_NOT_IMPLEMENTED;
     208             : }
     209             : 
     210             : /* attribute nsIQuotaUsageCallback callback; */
     211             : NS_IMETHODIMP nsQuotaUsageRequest::GetCallback(nsIQuotaUsageCallback * *aCallback)
     212             : {
     213             :     return NS_ERROR_NOT_IMPLEMENTED;
     214             : }
     215             : NS_IMETHODIMP nsQuotaUsageRequest::SetCallback(nsIQuotaUsageCallback *aCallback)
     216             : {
     217             :     return NS_ERROR_NOT_IMPLEMENTED;
     218             : }
     219             : 
     220             : /* [must_use] void cancel (); */
     221             : MOZ_MUST_USE NS_IMETHODIMP nsQuotaUsageRequest::Cancel()
     222             : {
     223             :     return NS_ERROR_NOT_IMPLEMENTED;
     224             : }
     225             : 
     226             : /* End of implementation class template. */
     227             : #endif
     228             : 
     229             : 
     230             : /* starting interface:    nsIQuotaRequest */
     231             : #define NS_IQUOTAREQUEST_IID_STR "22890e3e-ff25-4372-9684-d901060e2f6c"
     232             : 
     233             : #define NS_IQUOTAREQUEST_IID \
     234             :   {0x22890e3e, 0xff25, 0x4372, \
     235             :     { 0x96, 0x84, 0xd9, 0x01, 0x06, 0x0e, 0x2f, 0x6c }}
     236             : 
     237           0 : class NS_NO_VTABLE nsIQuotaRequest : public nsIQuotaRequestBase {
     238             :  public:
     239             : 
     240             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IQUOTAREQUEST_IID)
     241             : 
     242             :   /* [must_use] readonly attribute nsIVariant result; */
     243             :   MOZ_MUST_USE NS_IMETHOD GetResult(nsIVariant * *aResult) = 0;
     244             : 
     245             :   /* attribute nsIQuotaCallback callback; */
     246             :   NS_IMETHOD GetCallback(nsIQuotaCallback * *aCallback) = 0;
     247             :   NS_IMETHOD SetCallback(nsIQuotaCallback *aCallback) = 0;
     248             : 
     249             : };
     250             : 
     251             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIQuotaRequest, NS_IQUOTAREQUEST_IID)
     252             : 
     253             : /* Use this macro when declaring classes that implement this interface. */
     254             : #define NS_DECL_NSIQUOTAREQUEST \
     255             :   MOZ_MUST_USE NS_IMETHOD GetResult(nsIVariant * *aResult) override; \
     256             :   NS_IMETHOD GetCallback(nsIQuotaCallback * *aCallback) override; \
     257             :   NS_IMETHOD SetCallback(nsIQuotaCallback *aCallback) override; 
     258             : 
     259             : /* Use this macro when declaring the members of this interface when the
     260             :    class doesn't implement the interface. This is useful for forwarding. */
     261             : #define NS_DECL_NON_VIRTUAL_NSIQUOTAREQUEST \
     262             :   MOZ_MUST_USE nsresult GetResult(nsIVariant * *aResult); \
     263             :   nsresult GetCallback(nsIQuotaCallback * *aCallback); \
     264             :   nsresult SetCallback(nsIQuotaCallback *aCallback); 
     265             : 
     266             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     267             : #define NS_FORWARD_NSIQUOTAREQUEST(_to) \
     268             :   MOZ_MUST_USE NS_IMETHOD GetResult(nsIVariant * *aResult) override { return _to GetResult(aResult); } \
     269             :   NS_IMETHOD GetCallback(nsIQuotaCallback * *aCallback) override { return _to GetCallback(aCallback); } \
     270             :   NS_IMETHOD SetCallback(nsIQuotaCallback *aCallback) override { return _to SetCallback(aCallback); } 
     271             : 
     272             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     273             : #define NS_FORWARD_SAFE_NSIQUOTAREQUEST(_to) \
     274             :   MOZ_MUST_USE NS_IMETHOD GetResult(nsIVariant * *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
     275             :   NS_IMETHOD GetCallback(nsIQuotaCallback * *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallback(aCallback); } \
     276             :   NS_IMETHOD SetCallback(nsIQuotaCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallback(aCallback); } 
     277             : 
     278             : #if 0
     279             : /* Use the code below as a template for the implementation class for this interface. */
     280             : 
     281             : /* Header file */
     282             : class nsQuotaRequest : public nsIQuotaRequest
     283             : {
     284             : public:
     285             :   NS_DECL_ISUPPORTS
     286             :   NS_DECL_NSIQUOTAREQUEST
     287             : 
     288             :   nsQuotaRequest();
     289             : 
     290             : private:
     291             :   ~nsQuotaRequest();
     292             : 
     293             : protected:
     294             :   /* additional members */
     295             : };
     296             : 
     297             : /* Implementation file */
     298             : NS_IMPL_ISUPPORTS(nsQuotaRequest, nsIQuotaRequest)
     299             : 
     300             : nsQuotaRequest::nsQuotaRequest()
     301             : {
     302             :   /* member initializers and constructor code */
     303             : }
     304             : 
     305             : nsQuotaRequest::~nsQuotaRequest()
     306             : {
     307             :   /* destructor code */
     308             : }
     309             : 
     310             : /* [must_use] readonly attribute nsIVariant result; */
     311             : MOZ_MUST_USE NS_IMETHODIMP nsQuotaRequest::GetResult(nsIVariant * *aResult)
     312             : {
     313             :     return NS_ERROR_NOT_IMPLEMENTED;
     314             : }
     315             : 
     316             : /* attribute nsIQuotaCallback callback; */
     317             : NS_IMETHODIMP nsQuotaRequest::GetCallback(nsIQuotaCallback * *aCallback)
     318             : {
     319             :     return NS_ERROR_NOT_IMPLEMENTED;
     320             : }
     321             : NS_IMETHODIMP nsQuotaRequest::SetCallback(nsIQuotaCallback *aCallback)
     322             : {
     323             :     return NS_ERROR_NOT_IMPLEMENTED;
     324             : }
     325             : 
     326             : /* End of implementation class template. */
     327             : #endif
     328             : 
     329             : 
     330             : #endif /* __gen_nsIQuotaRequests_h__ */

Generated by: LCOV version 1.13