/usr/include/thunderbird/nsIStartupCache.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIStartupCache.idl
*/
#ifndef __gen_nsIStartupCache_h__
#define __gen_nsIStartupCache_h__
#ifndef __gen_nsIInputStream_h__
#include "nsIInputStream.h"
#endif
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIObserver_h__
#include "nsIObserver.h"
#endif
#ifndef __gen_nsIObjectOutputStream_h__
#include "nsIObjectOutputStream.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#include "mozilla/UniquePtr.h"
/* starting interface: nsIStartupCache */
#define NS_ISTARTUPCACHE_IID_STR "25957820-90a1-428c-8739-b0845d3cc534"
#define NS_ISTARTUPCACHE_IID \
{0x25957820, 0x90a1, 0x428c, \
{ 0x87, 0x39, 0xb0, 0x84, 0x5d, 0x3c, 0xc5, 0x34 }}
class nsIStartupCache : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTARTUPCACHE_IID)
/* uint32_t getBuffer (in string aID, out charPtr aBuffer); */
NS_IMETHOD GetBuffer(const char * aID, char **aBuffer, uint32_t *_retval) = 0;
/* A more convenient interface for using from C++. */
nsresult GetBuffer(const char* id, mozilla::UniquePtr<char[]>* outbuf, uint32_t* length)
{
char* buf;
nsresult rv = GetBuffer(id, &buf, length);
NS_ENSURE_SUCCESS(rv, rv);
outbuf->reset(buf);
return rv;
}
/* void putBuffer (in string aID, in string aBuffer, in uint32_t aLength); */
NS_IMETHOD PutBuffer(const char * aID, const char * aBuffer, uint32_t aLength) = 0;
/* void invalidateCache (); */
NS_IMETHOD InvalidateCache(void) = 0;
/* void ignoreDiskCache (); */
NS_IMETHOD IgnoreDiskCache(void) = 0;
/* nsIObjectOutputStream getDebugObjectOutputStream (in nsIObjectOutputStream aStream); */
NS_IMETHOD GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval) = 0;
/* boolean startupWriteComplete (); */
NS_IMETHOD StartupWriteComplete(bool *_retval) = 0;
/* void resetStartupWriteTimer (); */
NS_IMETHOD ResetStartupWriteTimer(void) = 0;
/* void recordAgesAlways (); */
NS_IMETHOD RecordAgesAlways(void) = 0;
/* readonly attribute nsIObserver observer; */
NS_IMETHOD GetObserver(nsIObserver * *aObserver) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIStartupCache, NS_ISTARTUPCACHE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISTARTUPCACHE \
NS_IMETHOD GetBuffer(const char * aID, char **aBuffer, uint32_t *_retval) override; \
NS_IMETHOD PutBuffer(const char * aID, const char * aBuffer, uint32_t aLength) override; \
NS_IMETHOD InvalidateCache(void) override; \
NS_IMETHOD IgnoreDiskCache(void) override; \
NS_IMETHOD GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval) override; \
NS_IMETHOD StartupWriteComplete(bool *_retval) override; \
NS_IMETHOD ResetStartupWriteTimer(void) override; \
NS_IMETHOD RecordAgesAlways(void) override; \
NS_IMETHOD GetObserver(nsIObserver * *aObserver) 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_NSISTARTUPCACHE \
NS_METHOD GetBuffer(const char * aID, char **aBuffer, uint32_t *_retval); \
NS_METHOD PutBuffer(const char * aID, const char * aBuffer, uint32_t aLength); \
NS_METHOD InvalidateCache(void); \
NS_METHOD IgnoreDiskCache(void); \
NS_METHOD GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval); \
NS_METHOD StartupWriteComplete(bool *_retval); \
NS_METHOD ResetStartupWriteTimer(void); \
NS_METHOD RecordAgesAlways(void); \
NS_METHOD GetObserver(nsIObserver * *aObserver);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISTARTUPCACHE(_to) \
NS_IMETHOD GetBuffer(const char * aID, char **aBuffer, uint32_t *_retval) override { return _to GetBuffer(aID, aBuffer, _retval); } \
NS_IMETHOD PutBuffer(const char * aID, const char * aBuffer, uint32_t aLength) override { return _to PutBuffer(aID, aBuffer, aLength); } \
NS_IMETHOD InvalidateCache(void) override { return _to InvalidateCache(); } \
NS_IMETHOD IgnoreDiskCache(void) override { return _to IgnoreDiskCache(); } \
NS_IMETHOD GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval) override { return _to GetDebugObjectOutputStream(aStream, _retval); } \
NS_IMETHOD StartupWriteComplete(bool *_retval) override { return _to StartupWriteComplete(_retval); } \
NS_IMETHOD ResetStartupWriteTimer(void) override { return _to ResetStartupWriteTimer(); } \
NS_IMETHOD RecordAgesAlways(void) override { return _to RecordAgesAlways(); } \
NS_IMETHOD GetObserver(nsIObserver * *aObserver) override { return _to GetObserver(aObserver); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISTARTUPCACHE(_to) \
NS_IMETHOD GetBuffer(const char * aID, char **aBuffer, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuffer(aID, aBuffer, _retval); } \
NS_IMETHOD PutBuffer(const char * aID, const char * aBuffer, uint32_t aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PutBuffer(aID, aBuffer, aLength); } \
NS_IMETHOD InvalidateCache(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateCache(); } \
NS_IMETHOD IgnoreDiskCache(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IgnoreDiskCache(); } \
NS_IMETHOD GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDebugObjectOutputStream(aStream, _retval); } \
NS_IMETHOD StartupWriteComplete(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartupWriteComplete(_retval); } \
NS_IMETHOD ResetStartupWriteTimer(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetStartupWriteTimer(); } \
NS_IMETHOD RecordAgesAlways(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RecordAgesAlways(); } \
NS_IMETHOD GetObserver(nsIObserver * *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObserver(aObserver); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsStartupCache : public nsIStartupCache
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISTARTUPCACHE
nsStartupCache();
private:
~nsStartupCache();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsStartupCache, nsIStartupCache)
nsStartupCache::nsStartupCache()
{
/* member initializers and constructor code */
}
nsStartupCache::~nsStartupCache()
{
/* destructor code */
}
/* uint32_t getBuffer (in string aID, out charPtr aBuffer); */
NS_IMETHODIMP nsStartupCache::GetBuffer(const char * aID, char **aBuffer, uint32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void putBuffer (in string aID, in string aBuffer, in uint32_t aLength); */
NS_IMETHODIMP nsStartupCache::PutBuffer(const char * aID, const char * aBuffer, uint32_t aLength)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void invalidateCache (); */
NS_IMETHODIMP nsStartupCache::InvalidateCache()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void ignoreDiskCache (); */
NS_IMETHODIMP nsStartupCache::IgnoreDiskCache()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIObjectOutputStream getDebugObjectOutputStream (in nsIObjectOutputStream aStream); */
NS_IMETHODIMP nsStartupCache::GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean startupWriteComplete (); */
NS_IMETHODIMP nsStartupCache::StartupWriteComplete(bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void resetStartupWriteTimer (); */
NS_IMETHODIMP nsStartupCache::ResetStartupWriteTimer()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void recordAgesAlways (); */
NS_IMETHODIMP nsStartupCache::RecordAgesAlways()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIObserver observer; */
NS_IMETHODIMP nsStartupCache::GetObserver(nsIObserver * *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIStartupCache_h__ */
|