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