LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsICacheStorage.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/nsICacheStorage.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsICacheStorage_h__
       6             : #define __gen_nsICacheStorage_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 nsIURI; /* forward declaration */
      18             : 
      19             : class nsICacheEntry; /* forward declaration */
      20             : 
      21             : class nsICacheEntryOpenCallback; /* forward declaration */
      22             : 
      23             : class nsICacheEntryDoomCallback; /* forward declaration */
      24             : 
      25             : class nsICacheStorageVisitor; /* forward declaration */
      26             : 
      27             : 
      28             : /* starting interface:    nsICacheStorage */
      29             : #define NS_ICACHESTORAGE_IID_STR "35d104a6-d252-4fd4-8a56-3c14657cad3b"
      30             : 
      31             : #define NS_ICACHESTORAGE_IID \
      32             :   {0x35d104a6, 0xd252, 0x4fd4, \
      33             :     { 0x8a, 0x56, 0x3c, 0x14, 0x65, 0x7c, 0xad, 0x3b }}
      34             : 
      35          10 : class NS_NO_VTABLE nsICacheStorage : public nsISupports {
      36             :  public:
      37             : 
      38             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHESTORAGE_IID)
      39             : 
      40             :   enum {
      41             :     OPEN_NORMALLY = 0U,
      42             :     OPEN_TRUNCATE = 1U,
      43             :     OPEN_READONLY = 2U,
      44             :     OPEN_PRIORITY = 4U,
      45             :     OPEN_BYPASS_IF_BUSY = 8U,
      46             :     CHECK_MULTITHREADED = 16U,
      47             :     OPEN_SECRETLY = 32U,
      48             :     OPEN_INTERCEPTED = 64U
      49             :   };
      50             : 
      51             :   /* void asyncOpenURI (in nsIURI aURI, in ACString aIdExtension, in uint32_t aFlags, in nsICacheEntryOpenCallback aCallback); */
      52             :   NS_IMETHOD AsyncOpenURI(nsIURI *aURI, const nsACString & aIdExtension, uint32_t aFlags, nsICacheEntryOpenCallback *aCallback) = 0;
      53             : 
      54             :   /* nsICacheEntry openTruncate (in nsIURI aURI, in ACString aIdExtension); */
      55             :   NS_IMETHOD OpenTruncate(nsIURI *aURI, const nsACString & aIdExtension, nsICacheEntry * *_retval) = 0;
      56             : 
      57             :   /* boolean exists (in nsIURI aURI, in ACString aIdExtension); */
      58             :   NS_IMETHOD Exists(nsIURI *aURI, const nsACString & aIdExtension, bool *_retval) = 0;
      59             : 
      60             :   /* void getCacheIndexEntryAttrs (in nsIURI aURI, in ACString aIdExtension, out bool aHasAltData, out uint32_t aSizeInKB); */
      61             :   NS_IMETHOD GetCacheIndexEntryAttrs(nsIURI *aURI, const nsACString & aIdExtension, bool *aHasAltData, uint32_t *aSizeInKB) = 0;
      62             : 
      63             :   /* void asyncDoomURI (in nsIURI aURI, in ACString aIdExtension, in nsICacheEntryDoomCallback aCallback); */
      64             :   NS_IMETHOD AsyncDoomURI(nsIURI *aURI, const nsACString & aIdExtension, nsICacheEntryDoomCallback *aCallback) = 0;
      65             : 
      66             :   /* void asyncEvictStorage (in nsICacheEntryDoomCallback aCallback); */
      67             :   NS_IMETHOD AsyncEvictStorage(nsICacheEntryDoomCallback *aCallback) = 0;
      68             : 
      69             :   /* void asyncVisitStorage (in nsICacheStorageVisitor aVisitor, in boolean aVisitEntries); */
      70             :   NS_IMETHOD AsyncVisitStorage(nsICacheStorageVisitor *aVisitor, bool aVisitEntries) = 0;
      71             : 
      72             : };
      73             : 
      74             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheStorage, NS_ICACHESTORAGE_IID)
      75             : 
      76             : /* Use this macro when declaring classes that implement this interface. */
      77             : #define NS_DECL_NSICACHESTORAGE \
      78             :   NS_IMETHOD AsyncOpenURI(nsIURI *aURI, const nsACString & aIdExtension, uint32_t aFlags, nsICacheEntryOpenCallback *aCallback) override; \
      79             :   NS_IMETHOD OpenTruncate(nsIURI *aURI, const nsACString & aIdExtension, nsICacheEntry * *_retval) override; \
      80             :   NS_IMETHOD Exists(nsIURI *aURI, const nsACString & aIdExtension, bool *_retval) override; \
      81             :   NS_IMETHOD GetCacheIndexEntryAttrs(nsIURI *aURI, const nsACString & aIdExtension, bool *aHasAltData, uint32_t *aSizeInKB) override; \
      82             :   NS_IMETHOD AsyncDoomURI(nsIURI *aURI, const nsACString & aIdExtension, nsICacheEntryDoomCallback *aCallback) override; \
      83             :   NS_IMETHOD AsyncEvictStorage(nsICacheEntryDoomCallback *aCallback) override; \
      84             :   NS_IMETHOD AsyncVisitStorage(nsICacheStorageVisitor *aVisitor, bool aVisitEntries) override; 
      85             : 
      86             : /* Use this macro when declaring the members of this interface when the
      87             :    class doesn't implement the interface. This is useful for forwarding. */
      88             : #define NS_DECL_NON_VIRTUAL_NSICACHESTORAGE \
      89             :   nsresult AsyncOpenURI(nsIURI *aURI, const nsACString & aIdExtension, uint32_t aFlags, nsICacheEntryOpenCallback *aCallback); \
      90             :   nsresult OpenTruncate(nsIURI *aURI, const nsACString & aIdExtension, nsICacheEntry * *_retval); \
      91             :   nsresult Exists(nsIURI *aURI, const nsACString & aIdExtension, bool *_retval); \
      92             :   nsresult GetCacheIndexEntryAttrs(nsIURI *aURI, const nsACString & aIdExtension, bool *aHasAltData, uint32_t *aSizeInKB); \
      93             :   nsresult AsyncDoomURI(nsIURI *aURI, const nsACString & aIdExtension, nsICacheEntryDoomCallback *aCallback); \
      94             :   nsresult AsyncEvictStorage(nsICacheEntryDoomCallback *aCallback); \
      95             :   nsresult AsyncVisitStorage(nsICacheStorageVisitor *aVisitor, bool aVisitEntries); 
      96             : 
      97             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      98             : #define NS_FORWARD_NSICACHESTORAGE(_to) \
      99             :   NS_IMETHOD AsyncOpenURI(nsIURI *aURI, const nsACString & aIdExtension, uint32_t aFlags, nsICacheEntryOpenCallback *aCallback) override { return _to AsyncOpenURI(aURI, aIdExtension, aFlags, aCallback); } \
     100             :   NS_IMETHOD OpenTruncate(nsIURI *aURI, const nsACString & aIdExtension, nsICacheEntry * *_retval) override { return _to OpenTruncate(aURI, aIdExtension, _retval); } \
     101             :   NS_IMETHOD Exists(nsIURI *aURI, const nsACString & aIdExtension, bool *_retval) override { return _to Exists(aURI, aIdExtension, _retval); } \
     102             :   NS_IMETHOD GetCacheIndexEntryAttrs(nsIURI *aURI, const nsACString & aIdExtension, bool *aHasAltData, uint32_t *aSizeInKB) override { return _to GetCacheIndexEntryAttrs(aURI, aIdExtension, aHasAltData, aSizeInKB); } \
     103             :   NS_IMETHOD AsyncDoomURI(nsIURI *aURI, const nsACString & aIdExtension, nsICacheEntryDoomCallback *aCallback) override { return _to AsyncDoomURI(aURI, aIdExtension, aCallback); } \
     104             :   NS_IMETHOD AsyncEvictStorage(nsICacheEntryDoomCallback *aCallback) override { return _to AsyncEvictStorage(aCallback); } \
     105             :   NS_IMETHOD AsyncVisitStorage(nsICacheStorageVisitor *aVisitor, bool aVisitEntries) override { return _to AsyncVisitStorage(aVisitor, aVisitEntries); } 
     106             : 
     107             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     108             : #define NS_FORWARD_SAFE_NSICACHESTORAGE(_to) \
     109             :   NS_IMETHOD AsyncOpenURI(nsIURI *aURI, const nsACString & aIdExtension, uint32_t aFlags, nsICacheEntryOpenCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOpenURI(aURI, aIdExtension, aFlags, aCallback); } \
     110             :   NS_IMETHOD OpenTruncate(nsIURI *aURI, const nsACString & aIdExtension, nsICacheEntry * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenTruncate(aURI, aIdExtension, _retval); } \
     111             :   NS_IMETHOD Exists(nsIURI *aURI, const nsACString & aIdExtension, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Exists(aURI, aIdExtension, _retval); } \
     112             :   NS_IMETHOD GetCacheIndexEntryAttrs(nsIURI *aURI, const nsACString & aIdExtension, bool *aHasAltData, uint32_t *aSizeInKB) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheIndexEntryAttrs(aURI, aIdExtension, aHasAltData, aSizeInKB); } \
     113             :   NS_IMETHOD AsyncDoomURI(nsIURI *aURI, const nsACString & aIdExtension, nsICacheEntryDoomCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncDoomURI(aURI, aIdExtension, aCallback); } \
     114             :   NS_IMETHOD AsyncEvictStorage(nsICacheEntryDoomCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncEvictStorage(aCallback); } \
     115             :   NS_IMETHOD AsyncVisitStorage(nsICacheStorageVisitor *aVisitor, bool aVisitEntries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncVisitStorage(aVisitor, aVisitEntries); } 
     116             : 
     117             : #if 0
     118             : /* Use the code below as a template for the implementation class for this interface. */
     119             : 
     120             : /* Header file */
     121             : class nsCacheStorage : public nsICacheStorage
     122             : {
     123             : public:
     124             :   NS_DECL_ISUPPORTS
     125             :   NS_DECL_NSICACHESTORAGE
     126             : 
     127             :   nsCacheStorage();
     128             : 
     129             : private:
     130             :   ~nsCacheStorage();
     131             : 
     132             : protected:
     133             :   /* additional members */
     134             : };
     135             : 
     136             : /* Implementation file */
     137             : NS_IMPL_ISUPPORTS(nsCacheStorage, nsICacheStorage)
     138             : 
     139             : nsCacheStorage::nsCacheStorage()
     140             : {
     141             :   /* member initializers and constructor code */
     142             : }
     143             : 
     144             : nsCacheStorage::~nsCacheStorage()
     145             : {
     146             :   /* destructor code */
     147             : }
     148             : 
     149             : /* void asyncOpenURI (in nsIURI aURI, in ACString aIdExtension, in uint32_t aFlags, in nsICacheEntryOpenCallback aCallback); */
     150             : NS_IMETHODIMP nsCacheStorage::AsyncOpenURI(nsIURI *aURI, const nsACString & aIdExtension, uint32_t aFlags, nsICacheEntryOpenCallback *aCallback)
     151             : {
     152             :     return NS_ERROR_NOT_IMPLEMENTED;
     153             : }
     154             : 
     155             : /* nsICacheEntry openTruncate (in nsIURI aURI, in ACString aIdExtension); */
     156             : NS_IMETHODIMP nsCacheStorage::OpenTruncate(nsIURI *aURI, const nsACString & aIdExtension, nsICacheEntry * *_retval)
     157             : {
     158             :     return NS_ERROR_NOT_IMPLEMENTED;
     159             : }
     160             : 
     161             : /* boolean exists (in nsIURI aURI, in ACString aIdExtension); */
     162             : NS_IMETHODIMP nsCacheStorage::Exists(nsIURI *aURI, const nsACString & aIdExtension, bool *_retval)
     163             : {
     164             :     return NS_ERROR_NOT_IMPLEMENTED;
     165             : }
     166             : 
     167             : /* void getCacheIndexEntryAttrs (in nsIURI aURI, in ACString aIdExtension, out bool aHasAltData, out uint32_t aSizeInKB); */
     168             : NS_IMETHODIMP nsCacheStorage::GetCacheIndexEntryAttrs(nsIURI *aURI, const nsACString & aIdExtension, bool *aHasAltData, uint32_t *aSizeInKB)
     169             : {
     170             :     return NS_ERROR_NOT_IMPLEMENTED;
     171             : }
     172             : 
     173             : /* void asyncDoomURI (in nsIURI aURI, in ACString aIdExtension, in nsICacheEntryDoomCallback aCallback); */
     174             : NS_IMETHODIMP nsCacheStorage::AsyncDoomURI(nsIURI *aURI, const nsACString & aIdExtension, nsICacheEntryDoomCallback *aCallback)
     175             : {
     176             :     return NS_ERROR_NOT_IMPLEMENTED;
     177             : }
     178             : 
     179             : /* void asyncEvictStorage (in nsICacheEntryDoomCallback aCallback); */
     180             : NS_IMETHODIMP nsCacheStorage::AsyncEvictStorage(nsICacheEntryDoomCallback *aCallback)
     181             : {
     182             :     return NS_ERROR_NOT_IMPLEMENTED;
     183             : }
     184             : 
     185             : /* void asyncVisitStorage (in nsICacheStorageVisitor aVisitor, in boolean aVisitEntries); */
     186             : NS_IMETHODIMP nsCacheStorage::AsyncVisitStorage(nsICacheStorageVisitor *aVisitor, bool aVisitEntries)
     187             : {
     188             :     return NS_ERROR_NOT_IMPLEMENTED;
     189             : }
     190             : 
     191             : /* End of implementation class template. */
     192             : #endif
     193             : 
     194             : 
     195             : #endif /* __gen_nsICacheStorage_h__ */

Generated by: LCOV version 1.13