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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIOfflineCacheUpdate.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIOfflineCacheUpdate_h__
       6             : #define __gen_nsIOfflineCacheUpdate_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 mozIDOMWindow; /* forward declaration */
      18             : 
      19             : class nsIURI; /* forward declaration */
      20             : 
      21             : class nsIDOMNode; /* forward declaration */
      22             : 
      23             : class nsIDOMDocument; /* forward declaration */
      24             : 
      25             : class nsIOfflineCacheUpdate; /* forward declaration */
      26             : 
      27             : class nsIPrincipal; /* forward declaration */
      28             : 
      29             : class nsIPrefBranch; /* forward declaration */
      30             : 
      31             : class nsIApplicationCache; /* forward declaration */
      32             : 
      33             : class nsIFile; /* forward declaration */
      34             : 
      35             : class nsIObserver; /* forward declaration */
      36             : 
      37             : 
      38             : /* starting interface:    nsIOfflineCacheUpdateObserver */
      39             : #define NS_IOFFLINECACHEUPDATEOBSERVER_IID_STR "47360d57-8ef4-4a5d-8865-1a27a739ad1a"
      40             : 
      41             : #define NS_IOFFLINECACHEUPDATEOBSERVER_IID \
      42             :   {0x47360d57, 0x8ef4, 0x4a5d, \
      43             :     { 0x88, 0x65, 0x1a, 0x27, 0xa7, 0x39, 0xad, 0x1a }}
      44             : 
      45           0 : class NS_NO_VTABLE nsIOfflineCacheUpdateObserver : public nsISupports {
      46             :  public:
      47             : 
      48             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IOFFLINECACHEUPDATEOBSERVER_IID)
      49             : 
      50             :   enum {
      51             :     STATE_ERROR = 1U,
      52             :     STATE_CHECKING = 2U,
      53             :     STATE_NOUPDATE = 3U,
      54             :     STATE_OBSOLETE = 4U,
      55             :     STATE_DOWNLOADING = 5U,
      56             :     STATE_ITEMSTARTED = 6U,
      57             :     STATE_ITEMCOMPLETED = 7U,
      58             :     STATE_ITEMPROGRESS = 8U,
      59             :     STATE_FINISHED = 10U
      60             :   };
      61             : 
      62             :   /* void updateStateChanged (in nsIOfflineCacheUpdate aUpdate, in uint32_t state); */
      63             :   NS_IMETHOD UpdateStateChanged(nsIOfflineCacheUpdate *aUpdate, uint32_t state) = 0;
      64             : 
      65             :   /* void applicationCacheAvailable (in nsIApplicationCache applicationCache); */
      66             :   NS_IMETHOD ApplicationCacheAvailable(nsIApplicationCache *applicationCache) = 0;
      67             : 
      68             : };
      69             : 
      70             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIOfflineCacheUpdateObserver, NS_IOFFLINECACHEUPDATEOBSERVER_IID)
      71             : 
      72             : /* Use this macro when declaring classes that implement this interface. */
      73             : #define NS_DECL_NSIOFFLINECACHEUPDATEOBSERVER \
      74             :   NS_IMETHOD UpdateStateChanged(nsIOfflineCacheUpdate *aUpdate, uint32_t state) override; \
      75             :   NS_IMETHOD ApplicationCacheAvailable(nsIApplicationCache *applicationCache) override; 
      76             : 
      77             : /* Use this macro when declaring the members of this interface when the
      78             :    class doesn't implement the interface. This is useful for forwarding. */
      79             : #define NS_DECL_NON_VIRTUAL_NSIOFFLINECACHEUPDATEOBSERVER \
      80             :   nsresult UpdateStateChanged(nsIOfflineCacheUpdate *aUpdate, uint32_t state); \
      81             :   nsresult ApplicationCacheAvailable(nsIApplicationCache *applicationCache); 
      82             : 
      83             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      84             : #define NS_FORWARD_NSIOFFLINECACHEUPDATEOBSERVER(_to) \
      85             :   NS_IMETHOD UpdateStateChanged(nsIOfflineCacheUpdate *aUpdate, uint32_t state) override { return _to UpdateStateChanged(aUpdate, state); } \
      86             :   NS_IMETHOD ApplicationCacheAvailable(nsIApplicationCache *applicationCache) override { return _to ApplicationCacheAvailable(applicationCache); } 
      87             : 
      88             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      89             : #define NS_FORWARD_SAFE_NSIOFFLINECACHEUPDATEOBSERVER(_to) \
      90             :   NS_IMETHOD UpdateStateChanged(nsIOfflineCacheUpdate *aUpdate, uint32_t state) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateStateChanged(aUpdate, state); } \
      91             :   NS_IMETHOD ApplicationCacheAvailable(nsIApplicationCache *applicationCache) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ApplicationCacheAvailable(applicationCache); } 
      92             : 
      93             : #if 0
      94             : /* Use the code below as a template for the implementation class for this interface. */
      95             : 
      96             : /* Header file */
      97             : class nsOfflineCacheUpdateObserver : public nsIOfflineCacheUpdateObserver
      98             : {
      99             : public:
     100             :   NS_DECL_ISUPPORTS
     101             :   NS_DECL_NSIOFFLINECACHEUPDATEOBSERVER
     102             : 
     103             :   nsOfflineCacheUpdateObserver();
     104             : 
     105             : private:
     106             :   ~nsOfflineCacheUpdateObserver();
     107             : 
     108             : protected:
     109             :   /* additional members */
     110             : };
     111             : 
     112             : /* Implementation file */
     113             : NS_IMPL_ISUPPORTS(nsOfflineCacheUpdateObserver, nsIOfflineCacheUpdateObserver)
     114             : 
     115             : nsOfflineCacheUpdateObserver::nsOfflineCacheUpdateObserver()
     116             : {
     117             :   /* member initializers and constructor code */
     118             : }
     119             : 
     120             : nsOfflineCacheUpdateObserver::~nsOfflineCacheUpdateObserver()
     121             : {
     122             :   /* destructor code */
     123             : }
     124             : 
     125             : /* void updateStateChanged (in nsIOfflineCacheUpdate aUpdate, in uint32_t state); */
     126             : NS_IMETHODIMP nsOfflineCacheUpdateObserver::UpdateStateChanged(nsIOfflineCacheUpdate *aUpdate, uint32_t state)
     127             : {
     128             :     return NS_ERROR_NOT_IMPLEMENTED;
     129             : }
     130             : 
     131             : /* void applicationCacheAvailable (in nsIApplicationCache applicationCache); */
     132             : NS_IMETHODIMP nsOfflineCacheUpdateObserver::ApplicationCacheAvailable(nsIApplicationCache *applicationCache)
     133             : {
     134             :     return NS_ERROR_NOT_IMPLEMENTED;
     135             : }
     136             : 
     137             : /* End of implementation class template. */
     138             : #endif
     139             : 
     140             : 
     141             : /* starting interface:    nsIOfflineCacheUpdate */
     142             : #define NS_IOFFLINECACHEUPDATE_IID_STR "6e3e26ea-45b2-4db7-9e4a-93b965679298"
     143             : 
     144             : #define NS_IOFFLINECACHEUPDATE_IID \
     145             :   {0x6e3e26ea, 0x45b2, 0x4db7, \
     146             :     { 0x9e, 0x4a, 0x93, 0xb9, 0x65, 0x67, 0x92, 0x98 }}
     147             : 
     148           0 : class NS_NO_VTABLE nsIOfflineCacheUpdate : public nsISupports {
     149             :  public:
     150             : 
     151             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IOFFLINECACHEUPDATE_IID)
     152             : 
     153             :   /* readonly attribute unsigned short status; */
     154             :   NS_IMETHOD GetStatus(uint16_t *aStatus) = 0;
     155             : 
     156             :   /* readonly attribute boolean partial; */
     157             :   NS_IMETHOD GetPartial(bool *aPartial) = 0;
     158             : 
     159             :   /* readonly attribute boolean isUpgrade; */
     160             :   NS_IMETHOD GetIsUpgrade(bool *aIsUpgrade) = 0;
     161             : 
     162             :   /* readonly attribute ACString updateDomain; */
     163             :   NS_IMETHOD GetUpdateDomain(nsACString & aUpdateDomain) = 0;
     164             : 
     165             :   /* readonly attribute nsIURI manifestURI; */
     166             :   NS_IMETHOD GetManifestURI(nsIURI * *aManifestURI) = 0;
     167             : 
     168             :   /* readonly attribute boolean succeeded; */
     169             :   NS_IMETHOD GetSucceeded(bool *aSucceeded) = 0;
     170             : 
     171             :   /* void init (in nsIURI aManifestURI, in nsIURI aDocumentURI, in nsIPrincipal aLoadingPrincipal, in nsIDOMDocument aDocument, [optional] in nsIFile aCustomProfileDir); */
     172             :   NS_IMETHOD Init(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIDOMDocument *aDocument, nsIFile *aCustomProfileDir) = 0;
     173             : 
     174             :   /* void initPartial (in nsIURI aManifestURI, in ACString aClientID, in nsIURI aDocumentURI, in nsIPrincipal aPrincipal); */
     175             :   NS_IMETHOD InitPartial(nsIURI *aManifestURI, const nsACString & aClientID, nsIURI *aDocumentURI, nsIPrincipal *aPrincipal) = 0;
     176             : 
     177             :   /* void initForUpdateCheck (in nsIURI aManifestURI, in nsIPrincipal aLoadingPrincipal, in nsIObserver aObserver); */
     178             :   NS_IMETHOD InitForUpdateCheck(nsIURI *aManifestURI, nsIPrincipal *aLoadingPrincipal, nsIObserver *aObserver) = 0;
     179             : 
     180             :   /* void addDynamicURI (in nsIURI aURI); */
     181             :   NS_IMETHOD AddDynamicURI(nsIURI *aURI) = 0;
     182             : 
     183             :   /* void schedule (); */
     184             :   NS_IMETHOD Schedule(void) = 0;
     185             : 
     186             :   /* void addObserver (in nsIOfflineCacheUpdateObserver aObserver, [optional] in boolean aHoldWeak); */
     187             :   NS_IMETHOD AddObserver(nsIOfflineCacheUpdateObserver *aObserver, bool aHoldWeak) = 0;
     188             : 
     189             :   /* void removeObserver (in nsIOfflineCacheUpdateObserver aObserver); */
     190             :   NS_IMETHOD RemoveObserver(nsIOfflineCacheUpdateObserver *aObserver) = 0;
     191             : 
     192             :   /* void cancel (); */
     193             :   NS_IMETHOD Cancel(void) = 0;
     194             : 
     195             :   /* readonly attribute uint64_t byteProgress; */
     196             :   NS_IMETHOD GetByteProgress(uint64_t *aByteProgress) = 0;
     197             : 
     198             : };
     199             : 
     200             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIOfflineCacheUpdate, NS_IOFFLINECACHEUPDATE_IID)
     201             : 
     202             : /* Use this macro when declaring classes that implement this interface. */
     203             : #define NS_DECL_NSIOFFLINECACHEUPDATE \
     204             :   NS_IMETHOD GetStatus(uint16_t *aStatus) override; \
     205             :   NS_IMETHOD GetPartial(bool *aPartial) override; \
     206             :   NS_IMETHOD GetIsUpgrade(bool *aIsUpgrade) override; \
     207             :   NS_IMETHOD GetUpdateDomain(nsACString & aUpdateDomain) override; \
     208             :   NS_IMETHOD GetManifestURI(nsIURI * *aManifestURI) override; \
     209             :   NS_IMETHOD GetSucceeded(bool *aSucceeded) override; \
     210             :   NS_IMETHOD Init(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIDOMDocument *aDocument, nsIFile *aCustomProfileDir) override; \
     211             :   NS_IMETHOD InitPartial(nsIURI *aManifestURI, const nsACString & aClientID, nsIURI *aDocumentURI, nsIPrincipal *aPrincipal) override; \
     212             :   NS_IMETHOD InitForUpdateCheck(nsIURI *aManifestURI, nsIPrincipal *aLoadingPrincipal, nsIObserver *aObserver) override; \
     213             :   NS_IMETHOD AddDynamicURI(nsIURI *aURI) override; \
     214             :   NS_IMETHOD Schedule(void) override; \
     215             :   NS_IMETHOD AddObserver(nsIOfflineCacheUpdateObserver *aObserver, bool aHoldWeak) override; \
     216             :   NS_IMETHOD RemoveObserver(nsIOfflineCacheUpdateObserver *aObserver) override; \
     217             :   NS_IMETHOD Cancel(void) override; \
     218             :   NS_IMETHOD GetByteProgress(uint64_t *aByteProgress) override; 
     219             : 
     220             : /* Use this macro when declaring the members of this interface when the
     221             :    class doesn't implement the interface. This is useful for forwarding. */
     222             : #define NS_DECL_NON_VIRTUAL_NSIOFFLINECACHEUPDATE \
     223             :   nsresult GetStatus(uint16_t *aStatus); \
     224             :   nsresult GetPartial(bool *aPartial); \
     225             :   nsresult GetIsUpgrade(bool *aIsUpgrade); \
     226             :   nsresult GetUpdateDomain(nsACString & aUpdateDomain); \
     227             :   nsresult GetManifestURI(nsIURI * *aManifestURI); \
     228             :   nsresult GetSucceeded(bool *aSucceeded); \
     229             :   nsresult Init(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIDOMDocument *aDocument, nsIFile *aCustomProfileDir); \
     230             :   nsresult InitPartial(nsIURI *aManifestURI, const nsACString & aClientID, nsIURI *aDocumentURI, nsIPrincipal *aPrincipal); \
     231             :   nsresult InitForUpdateCheck(nsIURI *aManifestURI, nsIPrincipal *aLoadingPrincipal, nsIObserver *aObserver); \
     232             :   nsresult AddDynamicURI(nsIURI *aURI); \
     233             :   nsresult Schedule(void); \
     234             :   nsresult AddObserver(nsIOfflineCacheUpdateObserver *aObserver, bool aHoldWeak); \
     235             :   nsresult RemoveObserver(nsIOfflineCacheUpdateObserver *aObserver); \
     236             :   nsresult Cancel(void); \
     237             :   nsresult GetByteProgress(uint64_t *aByteProgress); 
     238             : 
     239             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     240             : #define NS_FORWARD_NSIOFFLINECACHEUPDATE(_to) \
     241             :   NS_IMETHOD GetStatus(uint16_t *aStatus) override { return _to GetStatus(aStatus); } \
     242             :   NS_IMETHOD GetPartial(bool *aPartial) override { return _to GetPartial(aPartial); } \
     243             :   NS_IMETHOD GetIsUpgrade(bool *aIsUpgrade) override { return _to GetIsUpgrade(aIsUpgrade); } \
     244             :   NS_IMETHOD GetUpdateDomain(nsACString & aUpdateDomain) override { return _to GetUpdateDomain(aUpdateDomain); } \
     245             :   NS_IMETHOD GetManifestURI(nsIURI * *aManifestURI) override { return _to GetManifestURI(aManifestURI); } \
     246             :   NS_IMETHOD GetSucceeded(bool *aSucceeded) override { return _to GetSucceeded(aSucceeded); } \
     247             :   NS_IMETHOD Init(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIDOMDocument *aDocument, nsIFile *aCustomProfileDir) override { return _to Init(aManifestURI, aDocumentURI, aLoadingPrincipal, aDocument, aCustomProfileDir); } \
     248             :   NS_IMETHOD InitPartial(nsIURI *aManifestURI, const nsACString & aClientID, nsIURI *aDocumentURI, nsIPrincipal *aPrincipal) override { return _to InitPartial(aManifestURI, aClientID, aDocumentURI, aPrincipal); } \
     249             :   NS_IMETHOD InitForUpdateCheck(nsIURI *aManifestURI, nsIPrincipal *aLoadingPrincipal, nsIObserver *aObserver) override { return _to InitForUpdateCheck(aManifestURI, aLoadingPrincipal, aObserver); } \
     250             :   NS_IMETHOD AddDynamicURI(nsIURI *aURI) override { return _to AddDynamicURI(aURI); } \
     251             :   NS_IMETHOD Schedule(void) override { return _to Schedule(); } \
     252             :   NS_IMETHOD AddObserver(nsIOfflineCacheUpdateObserver *aObserver, bool aHoldWeak) override { return _to AddObserver(aObserver, aHoldWeak); } \
     253             :   NS_IMETHOD RemoveObserver(nsIOfflineCacheUpdateObserver *aObserver) override { return _to RemoveObserver(aObserver); } \
     254             :   NS_IMETHOD Cancel(void) override { return _to Cancel(); } \
     255             :   NS_IMETHOD GetByteProgress(uint64_t *aByteProgress) override { return _to GetByteProgress(aByteProgress); } 
     256             : 
     257             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     258             : #define NS_FORWARD_SAFE_NSIOFFLINECACHEUPDATE(_to) \
     259             :   NS_IMETHOD GetStatus(uint16_t *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
     260             :   NS_IMETHOD GetPartial(bool *aPartial) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPartial(aPartial); } \
     261             :   NS_IMETHOD GetIsUpgrade(bool *aIsUpgrade) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsUpgrade(aIsUpgrade); } \
     262             :   NS_IMETHOD GetUpdateDomain(nsACString & aUpdateDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpdateDomain(aUpdateDomain); } \
     263             :   NS_IMETHOD GetManifestURI(nsIURI * *aManifestURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManifestURI(aManifestURI); } \
     264             :   NS_IMETHOD GetSucceeded(bool *aSucceeded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSucceeded(aSucceeded); } \
     265             :   NS_IMETHOD Init(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIDOMDocument *aDocument, nsIFile *aCustomProfileDir) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aManifestURI, aDocumentURI, aLoadingPrincipal, aDocument, aCustomProfileDir); } \
     266             :   NS_IMETHOD InitPartial(nsIURI *aManifestURI, const nsACString & aClientID, nsIURI *aDocumentURI, nsIPrincipal *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitPartial(aManifestURI, aClientID, aDocumentURI, aPrincipal); } \
     267             :   NS_IMETHOD InitForUpdateCheck(nsIURI *aManifestURI, nsIPrincipal *aLoadingPrincipal, nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitForUpdateCheck(aManifestURI, aLoadingPrincipal, aObserver); } \
     268             :   NS_IMETHOD AddDynamicURI(nsIURI *aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDynamicURI(aURI); } \
     269             :   NS_IMETHOD Schedule(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Schedule(); } \
     270             :   NS_IMETHOD AddObserver(nsIOfflineCacheUpdateObserver *aObserver, bool aHoldWeak) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver, aHoldWeak); } \
     271             :   NS_IMETHOD RemoveObserver(nsIOfflineCacheUpdateObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } \
     272             :   NS_IMETHOD Cancel(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(); } \
     273             :   NS_IMETHOD GetByteProgress(uint64_t *aByteProgress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetByteProgress(aByteProgress); } 
     274             : 
     275             : #if 0
     276             : /* Use the code below as a template for the implementation class for this interface. */
     277             : 
     278             : /* Header file */
     279             : class nsOfflineCacheUpdate : public nsIOfflineCacheUpdate
     280             : {
     281             : public:
     282             :   NS_DECL_ISUPPORTS
     283             :   NS_DECL_NSIOFFLINECACHEUPDATE
     284             : 
     285             :   nsOfflineCacheUpdate();
     286             : 
     287             : private:
     288             :   ~nsOfflineCacheUpdate();
     289             : 
     290             : protected:
     291             :   /* additional members */
     292             : };
     293             : 
     294             : /* Implementation file */
     295             : NS_IMPL_ISUPPORTS(nsOfflineCacheUpdate, nsIOfflineCacheUpdate)
     296             : 
     297             : nsOfflineCacheUpdate::nsOfflineCacheUpdate()
     298             : {
     299             :   /* member initializers and constructor code */
     300             : }
     301             : 
     302             : nsOfflineCacheUpdate::~nsOfflineCacheUpdate()
     303             : {
     304             :   /* destructor code */
     305             : }
     306             : 
     307             : /* readonly attribute unsigned short status; */
     308             : NS_IMETHODIMP nsOfflineCacheUpdate::GetStatus(uint16_t *aStatus)
     309             : {
     310             :     return NS_ERROR_NOT_IMPLEMENTED;
     311             : }
     312             : 
     313             : /* readonly attribute boolean partial; */
     314             : NS_IMETHODIMP nsOfflineCacheUpdate::GetPartial(bool *aPartial)
     315             : {
     316             :     return NS_ERROR_NOT_IMPLEMENTED;
     317             : }
     318             : 
     319             : /* readonly attribute boolean isUpgrade; */
     320             : NS_IMETHODIMP nsOfflineCacheUpdate::GetIsUpgrade(bool *aIsUpgrade)
     321             : {
     322             :     return NS_ERROR_NOT_IMPLEMENTED;
     323             : }
     324             : 
     325             : /* readonly attribute ACString updateDomain; */
     326             : NS_IMETHODIMP nsOfflineCacheUpdate::GetUpdateDomain(nsACString & aUpdateDomain)
     327             : {
     328             :     return NS_ERROR_NOT_IMPLEMENTED;
     329             : }
     330             : 
     331             : /* readonly attribute nsIURI manifestURI; */
     332             : NS_IMETHODIMP nsOfflineCacheUpdate::GetManifestURI(nsIURI * *aManifestURI)
     333             : {
     334             :     return NS_ERROR_NOT_IMPLEMENTED;
     335             : }
     336             : 
     337             : /* readonly attribute boolean succeeded; */
     338             : NS_IMETHODIMP nsOfflineCacheUpdate::GetSucceeded(bool *aSucceeded)
     339             : {
     340             :     return NS_ERROR_NOT_IMPLEMENTED;
     341             : }
     342             : 
     343             : /* void init (in nsIURI aManifestURI, in nsIURI aDocumentURI, in nsIPrincipal aLoadingPrincipal, in nsIDOMDocument aDocument, [optional] in nsIFile aCustomProfileDir); */
     344             : NS_IMETHODIMP nsOfflineCacheUpdate::Init(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIDOMDocument *aDocument, nsIFile *aCustomProfileDir)
     345             : {
     346             :     return NS_ERROR_NOT_IMPLEMENTED;
     347             : }
     348             : 
     349             : /* void initPartial (in nsIURI aManifestURI, in ACString aClientID, in nsIURI aDocumentURI, in nsIPrincipal aPrincipal); */
     350             : NS_IMETHODIMP nsOfflineCacheUpdate::InitPartial(nsIURI *aManifestURI, const nsACString & aClientID, nsIURI *aDocumentURI, nsIPrincipal *aPrincipal)
     351             : {
     352             :     return NS_ERROR_NOT_IMPLEMENTED;
     353             : }
     354             : 
     355             : /* void initForUpdateCheck (in nsIURI aManifestURI, in nsIPrincipal aLoadingPrincipal, in nsIObserver aObserver); */
     356             : NS_IMETHODIMP nsOfflineCacheUpdate::InitForUpdateCheck(nsIURI *aManifestURI, nsIPrincipal *aLoadingPrincipal, nsIObserver *aObserver)
     357             : {
     358             :     return NS_ERROR_NOT_IMPLEMENTED;
     359             : }
     360             : 
     361             : /* void addDynamicURI (in nsIURI aURI); */
     362             : NS_IMETHODIMP nsOfflineCacheUpdate::AddDynamicURI(nsIURI *aURI)
     363             : {
     364             :     return NS_ERROR_NOT_IMPLEMENTED;
     365             : }
     366             : 
     367             : /* void schedule (); */
     368             : NS_IMETHODIMP nsOfflineCacheUpdate::Schedule()
     369             : {
     370             :     return NS_ERROR_NOT_IMPLEMENTED;
     371             : }
     372             : 
     373             : /* void addObserver (in nsIOfflineCacheUpdateObserver aObserver, [optional] in boolean aHoldWeak); */
     374             : NS_IMETHODIMP nsOfflineCacheUpdate::AddObserver(nsIOfflineCacheUpdateObserver *aObserver, bool aHoldWeak)
     375             : {
     376             :     return NS_ERROR_NOT_IMPLEMENTED;
     377             : }
     378             : 
     379             : /* void removeObserver (in nsIOfflineCacheUpdateObserver aObserver); */
     380             : NS_IMETHODIMP nsOfflineCacheUpdate::RemoveObserver(nsIOfflineCacheUpdateObserver *aObserver)
     381             : {
     382             :     return NS_ERROR_NOT_IMPLEMENTED;
     383             : }
     384             : 
     385             : /* void cancel (); */
     386             : NS_IMETHODIMP nsOfflineCacheUpdate::Cancel()
     387             : {
     388             :     return NS_ERROR_NOT_IMPLEMENTED;
     389             : }
     390             : 
     391             : /* readonly attribute uint64_t byteProgress; */
     392             : NS_IMETHODIMP nsOfflineCacheUpdate::GetByteProgress(uint64_t *aByteProgress)
     393             : {
     394             :     return NS_ERROR_NOT_IMPLEMENTED;
     395             : }
     396             : 
     397             : /* End of implementation class template. */
     398             : #endif
     399             : 
     400             : 
     401             : /* starting interface:    nsIOfflineCacheUpdateService */
     402             : #define NS_IOFFLINECACHEUPDATESERVICE_IID_STR "44971e74-37e4-4140-8677-a4cf213a3f4b"
     403             : 
     404             : #define NS_IOFFLINECACHEUPDATESERVICE_IID \
     405             :   {0x44971e74, 0x37e4, 0x4140, \
     406             :     { 0x86, 0x77, 0xa4, 0xcf, 0x21, 0x3a, 0x3f, 0x4b }}
     407             : 
     408           1 : class NS_NO_VTABLE nsIOfflineCacheUpdateService : public nsISupports {
     409             :  public:
     410             : 
     411             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IOFFLINECACHEUPDATESERVICE_IID)
     412             : 
     413             :   enum {
     414             :     ALLOW_NO_WARN = 3U
     415             :   };
     416             : 
     417             :   /* readonly attribute unsigned long numUpdates; */
     418             :   NS_IMETHOD GetNumUpdates(uint32_t *aNumUpdates) = 0;
     419             : 
     420             :   /* nsIOfflineCacheUpdate getUpdate (in unsigned long index); */
     421             :   NS_IMETHOD GetUpdate(uint32_t index, nsIOfflineCacheUpdate * *_retval) = 0;
     422             : 
     423             :   /* nsIOfflineCacheUpdate scheduleUpdate (in nsIURI aManifestURI, in nsIURI aDocumentURI, in nsIPrincipal aLoadingPrincipal, in mozIDOMWindow aWindow); */
     424             :   NS_IMETHOD ScheduleUpdate(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, mozIDOMWindow *aWindow, nsIOfflineCacheUpdate * *_retval) = 0;
     425             : 
     426             :   /* nsIOfflineCacheUpdate scheduleAppUpdate (in nsIURI aManifestURI, in nsIURI aDocumentURI, in nsIPrincipal aLoadingPrincipal, in nsIFile aProfileDir); */
     427             :   NS_IMETHOD ScheduleAppUpdate(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIFile *aProfileDir, nsIOfflineCacheUpdate * *_retval) = 0;
     428             : 
     429             :   /* void scheduleOnDocumentStop (in nsIURI aManifestURI, in nsIURI aDocumentURI, in nsIPrincipal aLoadingPrincipal, in nsIDOMDocument aDocument); */
     430             :   NS_IMETHOD ScheduleOnDocumentStop(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIDOMDocument *aDocument) = 0;
     431             : 
     432             :   /* void checkForUpdate (in nsIURI aManifestURI, in nsIPrincipal aLoadingPrincipal, in nsIObserver aObserver); */
     433             :   NS_IMETHOD CheckForUpdate(nsIURI *aManifestURI, nsIPrincipal *aLoadingPrincipal, nsIObserver *aObserver) = 0;
     434             : 
     435             :   /* boolean offlineAppAllowed (in nsIPrincipal aPrincipal, in nsIPrefBranch aPrefBranch); */
     436             :   NS_IMETHOD OfflineAppAllowed(nsIPrincipal *aPrincipal, nsIPrefBranch *aPrefBranch, bool *_retval) = 0;
     437             : 
     438             :   /* boolean offlineAppAllowedForURI (in nsIURI aURI, in nsIPrefBranch aPrefBranch); */
     439             :   NS_IMETHOD OfflineAppAllowedForURI(nsIURI *aURI, nsIPrefBranch *aPrefBranch, bool *_retval) = 0;
     440             : 
     441             :   /* void allowOfflineApp (in nsIPrincipal aPrincipal); */
     442             :   NS_IMETHOD AllowOfflineApp(nsIPrincipal *aPrincipal) = 0;
     443             : 
     444             : };
     445             : 
     446             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIOfflineCacheUpdateService, NS_IOFFLINECACHEUPDATESERVICE_IID)
     447             : 
     448             : /* Use this macro when declaring classes that implement this interface. */
     449             : #define NS_DECL_NSIOFFLINECACHEUPDATESERVICE \
     450             :   NS_IMETHOD GetNumUpdates(uint32_t *aNumUpdates) override; \
     451             :   NS_IMETHOD GetUpdate(uint32_t index, nsIOfflineCacheUpdate * *_retval) override; \
     452             :   NS_IMETHOD ScheduleUpdate(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, mozIDOMWindow *aWindow, nsIOfflineCacheUpdate * *_retval) override; \
     453             :   NS_IMETHOD ScheduleAppUpdate(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIFile *aProfileDir, nsIOfflineCacheUpdate * *_retval) override; \
     454             :   NS_IMETHOD ScheduleOnDocumentStop(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIDOMDocument *aDocument) override; \
     455             :   NS_IMETHOD CheckForUpdate(nsIURI *aManifestURI, nsIPrincipal *aLoadingPrincipal, nsIObserver *aObserver) override; \
     456             :   NS_IMETHOD OfflineAppAllowed(nsIPrincipal *aPrincipal, nsIPrefBranch *aPrefBranch, bool *_retval) override; \
     457             :   NS_IMETHOD OfflineAppAllowedForURI(nsIURI *aURI, nsIPrefBranch *aPrefBranch, bool *_retval) override; \
     458             :   NS_IMETHOD AllowOfflineApp(nsIPrincipal *aPrincipal) override; 
     459             : 
     460             : /* Use this macro when declaring the members of this interface when the
     461             :    class doesn't implement the interface. This is useful for forwarding. */
     462             : #define NS_DECL_NON_VIRTUAL_NSIOFFLINECACHEUPDATESERVICE \
     463             :   nsresult GetNumUpdates(uint32_t *aNumUpdates); \
     464             :   nsresult GetUpdate(uint32_t index, nsIOfflineCacheUpdate * *_retval); \
     465             :   nsresult ScheduleUpdate(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, mozIDOMWindow *aWindow, nsIOfflineCacheUpdate * *_retval); \
     466             :   nsresult ScheduleAppUpdate(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIFile *aProfileDir, nsIOfflineCacheUpdate * *_retval); \
     467             :   nsresult ScheduleOnDocumentStop(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIDOMDocument *aDocument); \
     468             :   nsresult CheckForUpdate(nsIURI *aManifestURI, nsIPrincipal *aLoadingPrincipal, nsIObserver *aObserver); \
     469             :   nsresult OfflineAppAllowed(nsIPrincipal *aPrincipal, nsIPrefBranch *aPrefBranch, bool *_retval); \
     470             :   nsresult OfflineAppAllowedForURI(nsIURI *aURI, nsIPrefBranch *aPrefBranch, bool *_retval); \
     471             :   nsresult AllowOfflineApp(nsIPrincipal *aPrincipal); 
     472             : 
     473             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     474             : #define NS_FORWARD_NSIOFFLINECACHEUPDATESERVICE(_to) \
     475             :   NS_IMETHOD GetNumUpdates(uint32_t *aNumUpdates) override { return _to GetNumUpdates(aNumUpdates); } \
     476             :   NS_IMETHOD GetUpdate(uint32_t index, nsIOfflineCacheUpdate * *_retval) override { return _to GetUpdate(index, _retval); } \
     477             :   NS_IMETHOD ScheduleUpdate(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, mozIDOMWindow *aWindow, nsIOfflineCacheUpdate * *_retval) override { return _to ScheduleUpdate(aManifestURI, aDocumentURI, aLoadingPrincipal, aWindow, _retval); } \
     478             :   NS_IMETHOD ScheduleAppUpdate(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIFile *aProfileDir, nsIOfflineCacheUpdate * *_retval) override { return _to ScheduleAppUpdate(aManifestURI, aDocumentURI, aLoadingPrincipal, aProfileDir, _retval); } \
     479             :   NS_IMETHOD ScheduleOnDocumentStop(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIDOMDocument *aDocument) override { return _to ScheduleOnDocumentStop(aManifestURI, aDocumentURI, aLoadingPrincipal, aDocument); } \
     480             :   NS_IMETHOD CheckForUpdate(nsIURI *aManifestURI, nsIPrincipal *aLoadingPrincipal, nsIObserver *aObserver) override { return _to CheckForUpdate(aManifestURI, aLoadingPrincipal, aObserver); } \
     481             :   NS_IMETHOD OfflineAppAllowed(nsIPrincipal *aPrincipal, nsIPrefBranch *aPrefBranch, bool *_retval) override { return _to OfflineAppAllowed(aPrincipal, aPrefBranch, _retval); } \
     482             :   NS_IMETHOD OfflineAppAllowedForURI(nsIURI *aURI, nsIPrefBranch *aPrefBranch, bool *_retval) override { return _to OfflineAppAllowedForURI(aURI, aPrefBranch, _retval); } \
     483             :   NS_IMETHOD AllowOfflineApp(nsIPrincipal *aPrincipal) override { return _to AllowOfflineApp(aPrincipal); } 
     484             : 
     485             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     486             : #define NS_FORWARD_SAFE_NSIOFFLINECACHEUPDATESERVICE(_to) \
     487             :   NS_IMETHOD GetNumUpdates(uint32_t *aNumUpdates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumUpdates(aNumUpdates); } \
     488             :   NS_IMETHOD GetUpdate(uint32_t index, nsIOfflineCacheUpdate * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpdate(index, _retval); } \
     489             :   NS_IMETHOD ScheduleUpdate(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, mozIDOMWindow *aWindow, nsIOfflineCacheUpdate * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScheduleUpdate(aManifestURI, aDocumentURI, aLoadingPrincipal, aWindow, _retval); } \
     490             :   NS_IMETHOD ScheduleAppUpdate(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIFile *aProfileDir, nsIOfflineCacheUpdate * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScheduleAppUpdate(aManifestURI, aDocumentURI, aLoadingPrincipal, aProfileDir, _retval); } \
     491             :   NS_IMETHOD ScheduleOnDocumentStop(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIDOMDocument *aDocument) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScheduleOnDocumentStop(aManifestURI, aDocumentURI, aLoadingPrincipal, aDocument); } \
     492             :   NS_IMETHOD CheckForUpdate(nsIURI *aManifestURI, nsIPrincipal *aLoadingPrincipal, nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckForUpdate(aManifestURI, aLoadingPrincipal, aObserver); } \
     493             :   NS_IMETHOD OfflineAppAllowed(nsIPrincipal *aPrincipal, nsIPrefBranch *aPrefBranch, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OfflineAppAllowed(aPrincipal, aPrefBranch, _retval); } \
     494             :   NS_IMETHOD OfflineAppAllowedForURI(nsIURI *aURI, nsIPrefBranch *aPrefBranch, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OfflineAppAllowedForURI(aURI, aPrefBranch, _retval); } \
     495             :   NS_IMETHOD AllowOfflineApp(nsIPrincipal *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AllowOfflineApp(aPrincipal); } 
     496             : 
     497             : #if 0
     498             : /* Use the code below as a template for the implementation class for this interface. */
     499             : 
     500             : /* Header file */
     501             : class nsOfflineCacheUpdateService : public nsIOfflineCacheUpdateService
     502             : {
     503             : public:
     504             :   NS_DECL_ISUPPORTS
     505             :   NS_DECL_NSIOFFLINECACHEUPDATESERVICE
     506             : 
     507             :   nsOfflineCacheUpdateService();
     508             : 
     509             : private:
     510             :   ~nsOfflineCacheUpdateService();
     511             : 
     512             : protected:
     513             :   /* additional members */
     514             : };
     515             : 
     516             : /* Implementation file */
     517             : NS_IMPL_ISUPPORTS(nsOfflineCacheUpdateService, nsIOfflineCacheUpdateService)
     518             : 
     519             : nsOfflineCacheUpdateService::nsOfflineCacheUpdateService()
     520             : {
     521             :   /* member initializers and constructor code */
     522             : }
     523             : 
     524             : nsOfflineCacheUpdateService::~nsOfflineCacheUpdateService()
     525             : {
     526             :   /* destructor code */
     527             : }
     528             : 
     529             : /* readonly attribute unsigned long numUpdates; */
     530             : NS_IMETHODIMP nsOfflineCacheUpdateService::GetNumUpdates(uint32_t *aNumUpdates)
     531             : {
     532             :     return NS_ERROR_NOT_IMPLEMENTED;
     533             : }
     534             : 
     535             : /* nsIOfflineCacheUpdate getUpdate (in unsigned long index); */
     536             : NS_IMETHODIMP nsOfflineCacheUpdateService::GetUpdate(uint32_t index, nsIOfflineCacheUpdate * *_retval)
     537             : {
     538             :     return NS_ERROR_NOT_IMPLEMENTED;
     539             : }
     540             : 
     541             : /* nsIOfflineCacheUpdate scheduleUpdate (in nsIURI aManifestURI, in nsIURI aDocumentURI, in nsIPrincipal aLoadingPrincipal, in mozIDOMWindow aWindow); */
     542             : NS_IMETHODIMP nsOfflineCacheUpdateService::ScheduleUpdate(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, mozIDOMWindow *aWindow, nsIOfflineCacheUpdate * *_retval)
     543             : {
     544             :     return NS_ERROR_NOT_IMPLEMENTED;
     545             : }
     546             : 
     547             : /* nsIOfflineCacheUpdate scheduleAppUpdate (in nsIURI aManifestURI, in nsIURI aDocumentURI, in nsIPrincipal aLoadingPrincipal, in nsIFile aProfileDir); */
     548             : NS_IMETHODIMP nsOfflineCacheUpdateService::ScheduleAppUpdate(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIFile *aProfileDir, nsIOfflineCacheUpdate * *_retval)
     549             : {
     550             :     return NS_ERROR_NOT_IMPLEMENTED;
     551             : }
     552             : 
     553             : /* void scheduleOnDocumentStop (in nsIURI aManifestURI, in nsIURI aDocumentURI, in nsIPrincipal aLoadingPrincipal, in nsIDOMDocument aDocument); */
     554             : NS_IMETHODIMP nsOfflineCacheUpdateService::ScheduleOnDocumentStop(nsIURI *aManifestURI, nsIURI *aDocumentURI, nsIPrincipal *aLoadingPrincipal, nsIDOMDocument *aDocument)
     555             : {
     556             :     return NS_ERROR_NOT_IMPLEMENTED;
     557             : }
     558             : 
     559             : /* void checkForUpdate (in nsIURI aManifestURI, in nsIPrincipal aLoadingPrincipal, in nsIObserver aObserver); */
     560             : NS_IMETHODIMP nsOfflineCacheUpdateService::CheckForUpdate(nsIURI *aManifestURI, nsIPrincipal *aLoadingPrincipal, nsIObserver *aObserver)
     561             : {
     562             :     return NS_ERROR_NOT_IMPLEMENTED;
     563             : }
     564             : 
     565             : /* boolean offlineAppAllowed (in nsIPrincipal aPrincipal, in nsIPrefBranch aPrefBranch); */
     566             : NS_IMETHODIMP nsOfflineCacheUpdateService::OfflineAppAllowed(nsIPrincipal *aPrincipal, nsIPrefBranch *aPrefBranch, bool *_retval)
     567             : {
     568             :     return NS_ERROR_NOT_IMPLEMENTED;
     569             : }
     570             : 
     571             : /* boolean offlineAppAllowedForURI (in nsIURI aURI, in nsIPrefBranch aPrefBranch); */
     572             : NS_IMETHODIMP nsOfflineCacheUpdateService::OfflineAppAllowedForURI(nsIURI *aURI, nsIPrefBranch *aPrefBranch, bool *_retval)
     573             : {
     574             :     return NS_ERROR_NOT_IMPLEMENTED;
     575             : }
     576             : 
     577             : /* void allowOfflineApp (in nsIPrincipal aPrincipal); */
     578             : NS_IMETHODIMP nsOfflineCacheUpdateService::AllowOfflineApp(nsIPrincipal *aPrincipal)
     579             : {
     580             :     return NS_ERROR_NOT_IMPLEMENTED;
     581             : }
     582             : 
     583             : /* End of implementation class template. */
     584             : #endif
     585             : 
     586             : 
     587             : #endif /* __gen_nsIOfflineCacheUpdate_h__ */

Generated by: LCOV version 1.13