LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsICacheSession.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/nsICacheSession.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsICacheSession_h__
       6             : #define __gen_nsICacheSession_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsICache_h__
      14             : #include "nsICache.h"
      15             : #endif
      16             : 
      17             : /* For IDL files that don't want to include root IDL files. */
      18             : #ifndef NS_NO_VTABLE
      19             : #define NS_NO_VTABLE
      20             : #endif
      21             : class nsICacheEntryDescriptor; /* forward declaration */
      22             : 
      23             : class nsICacheListener; /* forward declaration */
      24             : 
      25             : class nsIFile; /* forward declaration */
      26             : 
      27             : 
      28             : /* starting interface:    nsICacheSession */
      29             : #define NS_ICACHESESSION_IID_STR "1dd7708c-de48-4ffe-b5aa-cd218c762887"
      30             : 
      31             : #define NS_ICACHESESSION_IID \
      32             :   {0x1dd7708c, 0xde48, 0x4ffe, \
      33             :     { 0xb5, 0xaa, 0xcd, 0x21, 0x8c, 0x76, 0x28, 0x87 }}
      34             : 
      35           0 : class NS_NO_VTABLE nsICacheSession : public nsISupports {
      36             :  public:
      37             : 
      38             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHESESSION_IID)
      39             : 
      40             :   /* attribute boolean doomEntriesIfExpired; */
      41             :   NS_IMETHOD GetDoomEntriesIfExpired(bool *aDoomEntriesIfExpired) = 0;
      42             :   NS_IMETHOD SetDoomEntriesIfExpired(bool aDoomEntriesIfExpired) = 0;
      43             : 
      44             :   /* attribute nsIFile profileDirectory; */
      45             :   NS_IMETHOD GetProfileDirectory(nsIFile * *aProfileDirectory) = 0;
      46             :   NS_IMETHOD SetProfileDirectory(nsIFile *aProfileDirectory) = 0;
      47             : 
      48             :   /* nsICacheEntryDescriptor openCacheEntry (in ACString key, in nsCacheAccessMode accessRequested, in boolean blockingMode); */
      49             :   NS_IMETHOD OpenCacheEntry(const nsACString & key, nsCacheAccessMode accessRequested, bool blockingMode, nsICacheEntryDescriptor * *_retval) = 0;
      50             : 
      51             :   /* void asyncOpenCacheEntry (in ACString key, in nsCacheAccessMode accessRequested, in nsICacheListener listener, [optional] in boolean noWait); */
      52             :   NS_IMETHOD AsyncOpenCacheEntry(const nsACString & key, nsCacheAccessMode accessRequested, nsICacheListener *listener, bool noWait) = 0;
      53             : 
      54             :   /* void evictEntries (); */
      55             :   NS_IMETHOD EvictEntries(void) = 0;
      56             : 
      57             :   /* boolean isStorageEnabled (); */
      58             :   NS_IMETHOD IsStorageEnabled(bool *_retval) = 0;
      59             : 
      60             :   /* void doomEntry (in ACString key, in nsICacheListener listener); */
      61             :   NS_IMETHOD DoomEntry(const nsACString & key, nsICacheListener *listener) = 0;
      62             : 
      63             :   /* attribute boolean isPrivate; */
      64             :   NS_IMETHOD GetIsPrivate(bool *aIsPrivate) = 0;
      65             :   NS_IMETHOD SetIsPrivate(bool aIsPrivate) = 0;
      66             : 
      67             : };
      68             : 
      69             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheSession, NS_ICACHESESSION_IID)
      70             : 
      71             : /* Use this macro when declaring classes that implement this interface. */
      72             : #define NS_DECL_NSICACHESESSION \
      73             :   NS_IMETHOD GetDoomEntriesIfExpired(bool *aDoomEntriesIfExpired) override; \
      74             :   NS_IMETHOD SetDoomEntriesIfExpired(bool aDoomEntriesIfExpired) override; \
      75             :   NS_IMETHOD GetProfileDirectory(nsIFile * *aProfileDirectory) override; \
      76             :   NS_IMETHOD SetProfileDirectory(nsIFile *aProfileDirectory) override; \
      77             :   NS_IMETHOD OpenCacheEntry(const nsACString & key, nsCacheAccessMode accessRequested, bool blockingMode, nsICacheEntryDescriptor * *_retval) override; \
      78             :   NS_IMETHOD AsyncOpenCacheEntry(const nsACString & key, nsCacheAccessMode accessRequested, nsICacheListener *listener, bool noWait) override; \
      79             :   NS_IMETHOD EvictEntries(void) override; \
      80             :   NS_IMETHOD IsStorageEnabled(bool *_retval) override; \
      81             :   NS_IMETHOD DoomEntry(const nsACString & key, nsICacheListener *listener) override; \
      82             :   NS_IMETHOD GetIsPrivate(bool *aIsPrivate) override; \
      83             :   NS_IMETHOD SetIsPrivate(bool aIsPrivate) override; 
      84             : 
      85             : /* Use this macro when declaring the members of this interface when the
      86             :    class doesn't implement the interface. This is useful for forwarding. */
      87             : #define NS_DECL_NON_VIRTUAL_NSICACHESESSION \
      88             :   nsresult GetDoomEntriesIfExpired(bool *aDoomEntriesIfExpired); \
      89             :   nsresult SetDoomEntriesIfExpired(bool aDoomEntriesIfExpired); \
      90             :   nsresult GetProfileDirectory(nsIFile * *aProfileDirectory); \
      91             :   nsresult SetProfileDirectory(nsIFile *aProfileDirectory); \
      92             :   nsresult OpenCacheEntry(const nsACString & key, nsCacheAccessMode accessRequested, bool blockingMode, nsICacheEntryDescriptor * *_retval); \
      93             :   nsresult AsyncOpenCacheEntry(const nsACString & key, nsCacheAccessMode accessRequested, nsICacheListener *listener, bool noWait); \
      94             :   nsresult EvictEntries(void); \
      95             :   nsresult IsStorageEnabled(bool *_retval); \
      96             :   nsresult DoomEntry(const nsACString & key, nsICacheListener *listener); \
      97             :   nsresult GetIsPrivate(bool *aIsPrivate); \
      98             :   nsresult SetIsPrivate(bool aIsPrivate); 
      99             : 
     100             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     101             : #define NS_FORWARD_NSICACHESESSION(_to) \
     102             :   NS_IMETHOD GetDoomEntriesIfExpired(bool *aDoomEntriesIfExpired) override { return _to GetDoomEntriesIfExpired(aDoomEntriesIfExpired); } \
     103             :   NS_IMETHOD SetDoomEntriesIfExpired(bool aDoomEntriesIfExpired) override { return _to SetDoomEntriesIfExpired(aDoomEntriesIfExpired); } \
     104             :   NS_IMETHOD GetProfileDirectory(nsIFile * *aProfileDirectory) override { return _to GetProfileDirectory(aProfileDirectory); } \
     105             :   NS_IMETHOD SetProfileDirectory(nsIFile *aProfileDirectory) override { return _to SetProfileDirectory(aProfileDirectory); } \
     106             :   NS_IMETHOD OpenCacheEntry(const nsACString & key, nsCacheAccessMode accessRequested, bool blockingMode, nsICacheEntryDescriptor * *_retval) override { return _to OpenCacheEntry(key, accessRequested, blockingMode, _retval); } \
     107             :   NS_IMETHOD AsyncOpenCacheEntry(const nsACString & key, nsCacheAccessMode accessRequested, nsICacheListener *listener, bool noWait) override { return _to AsyncOpenCacheEntry(key, accessRequested, listener, noWait); } \
     108             :   NS_IMETHOD EvictEntries(void) override { return _to EvictEntries(); } \
     109             :   NS_IMETHOD IsStorageEnabled(bool *_retval) override { return _to IsStorageEnabled(_retval); } \
     110             :   NS_IMETHOD DoomEntry(const nsACString & key, nsICacheListener *listener) override { return _to DoomEntry(key, listener); } \
     111             :   NS_IMETHOD GetIsPrivate(bool *aIsPrivate) override { return _to GetIsPrivate(aIsPrivate); } \
     112             :   NS_IMETHOD SetIsPrivate(bool aIsPrivate) override { return _to SetIsPrivate(aIsPrivate); } 
     113             : 
     114             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     115             : #define NS_FORWARD_SAFE_NSICACHESESSION(_to) \
     116             :   NS_IMETHOD GetDoomEntriesIfExpired(bool *aDoomEntriesIfExpired) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDoomEntriesIfExpired(aDoomEntriesIfExpired); } \
     117             :   NS_IMETHOD SetDoomEntriesIfExpired(bool aDoomEntriesIfExpired) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDoomEntriesIfExpired(aDoomEntriesIfExpired); } \
     118             :   NS_IMETHOD GetProfileDirectory(nsIFile * *aProfileDirectory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileDirectory(aProfileDirectory); } \
     119             :   NS_IMETHOD SetProfileDirectory(nsIFile *aProfileDirectory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProfileDirectory(aProfileDirectory); } \
     120             :   NS_IMETHOD OpenCacheEntry(const nsACString & key, nsCacheAccessMode accessRequested, bool blockingMode, nsICacheEntryDescriptor * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenCacheEntry(key, accessRequested, blockingMode, _retval); } \
     121             :   NS_IMETHOD AsyncOpenCacheEntry(const nsACString & key, nsCacheAccessMode accessRequested, nsICacheListener *listener, bool noWait) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOpenCacheEntry(key, accessRequested, listener, noWait); } \
     122             :   NS_IMETHOD EvictEntries(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EvictEntries(); } \
     123             :   NS_IMETHOD IsStorageEnabled(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsStorageEnabled(_retval); } \
     124             :   NS_IMETHOD DoomEntry(const nsACString & key, nsICacheListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoomEntry(key, listener); } \
     125             :   NS_IMETHOD GetIsPrivate(bool *aIsPrivate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsPrivate(aIsPrivate); } \
     126             :   NS_IMETHOD SetIsPrivate(bool aIsPrivate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsPrivate(aIsPrivate); } 
     127             : 
     128             : #if 0
     129             : /* Use the code below as a template for the implementation class for this interface. */
     130             : 
     131             : /* Header file */
     132             : class nsCacheSession : public nsICacheSession
     133             : {
     134             : public:
     135             :   NS_DECL_ISUPPORTS
     136             :   NS_DECL_NSICACHESESSION
     137             : 
     138             :   nsCacheSession();
     139             : 
     140             : private:
     141             :   ~nsCacheSession();
     142             : 
     143             : protected:
     144             :   /* additional members */
     145             : };
     146             : 
     147             : /* Implementation file */
     148             : NS_IMPL_ISUPPORTS(nsCacheSession, nsICacheSession)
     149             : 
     150             : nsCacheSession::nsCacheSession()
     151             : {
     152             :   /* member initializers and constructor code */
     153             : }
     154             : 
     155             : nsCacheSession::~nsCacheSession()
     156             : {
     157             :   /* destructor code */
     158             : }
     159             : 
     160             : /* attribute boolean doomEntriesIfExpired; */
     161             : NS_IMETHODIMP nsCacheSession::GetDoomEntriesIfExpired(bool *aDoomEntriesIfExpired)
     162             : {
     163             :     return NS_ERROR_NOT_IMPLEMENTED;
     164             : }
     165             : NS_IMETHODIMP nsCacheSession::SetDoomEntriesIfExpired(bool aDoomEntriesIfExpired)
     166             : {
     167             :     return NS_ERROR_NOT_IMPLEMENTED;
     168             : }
     169             : 
     170             : /* attribute nsIFile profileDirectory; */
     171             : NS_IMETHODIMP nsCacheSession::GetProfileDirectory(nsIFile * *aProfileDirectory)
     172             : {
     173             :     return NS_ERROR_NOT_IMPLEMENTED;
     174             : }
     175             : NS_IMETHODIMP nsCacheSession::SetProfileDirectory(nsIFile *aProfileDirectory)
     176             : {
     177             :     return NS_ERROR_NOT_IMPLEMENTED;
     178             : }
     179             : 
     180             : /* nsICacheEntryDescriptor openCacheEntry (in ACString key, in nsCacheAccessMode accessRequested, in boolean blockingMode); */
     181             : NS_IMETHODIMP nsCacheSession::OpenCacheEntry(const nsACString & key, nsCacheAccessMode accessRequested, bool blockingMode, nsICacheEntryDescriptor * *_retval)
     182             : {
     183             :     return NS_ERROR_NOT_IMPLEMENTED;
     184             : }
     185             : 
     186             : /* void asyncOpenCacheEntry (in ACString key, in nsCacheAccessMode accessRequested, in nsICacheListener listener, [optional] in boolean noWait); */
     187             : NS_IMETHODIMP nsCacheSession::AsyncOpenCacheEntry(const nsACString & key, nsCacheAccessMode accessRequested, nsICacheListener *listener, bool noWait)
     188             : {
     189             :     return NS_ERROR_NOT_IMPLEMENTED;
     190             : }
     191             : 
     192             : /* void evictEntries (); */
     193             : NS_IMETHODIMP nsCacheSession::EvictEntries()
     194             : {
     195             :     return NS_ERROR_NOT_IMPLEMENTED;
     196             : }
     197             : 
     198             : /* boolean isStorageEnabled (); */
     199             : NS_IMETHODIMP nsCacheSession::IsStorageEnabled(bool *_retval)
     200             : {
     201             :     return NS_ERROR_NOT_IMPLEMENTED;
     202             : }
     203             : 
     204             : /* void doomEntry (in ACString key, in nsICacheListener listener); */
     205             : NS_IMETHODIMP nsCacheSession::DoomEntry(const nsACString & key, nsICacheListener *listener)
     206             : {
     207             :     return NS_ERROR_NOT_IMPLEMENTED;
     208             : }
     209             : 
     210             : /* attribute boolean isPrivate; */
     211             : NS_IMETHODIMP nsCacheSession::GetIsPrivate(bool *aIsPrivate)
     212             : {
     213             :     return NS_ERROR_NOT_IMPLEMENTED;
     214             : }
     215             : NS_IMETHODIMP nsCacheSession::SetIsPrivate(bool aIsPrivate)
     216             : {
     217             :     return NS_ERROR_NOT_IMPLEMENTED;
     218             : }
     219             : 
     220             : /* End of implementation class template. */
     221             : #endif
     222             : 
     223             : 
     224             : #endif /* __gen_nsICacheSession_h__ */

Generated by: LCOV version 1.13