/usr/include/thunderbird/nsICacheStorageVisitor.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsICacheStorageVisitor.idl
*/
#ifndef __gen_nsICacheStorageVisitor_h__
#define __gen_nsICacheStorageVisitor_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIURI; /* forward declaration */
class nsIFile; /* forward declaration */
/* starting interface: nsICacheStorageVisitor */
#define NS_ICACHESTORAGEVISITOR_IID_STR "6cc7c253-93b6-482b-8e9d-1e04d8e9d655"
#define NS_ICACHESTORAGEVISITOR_IID \
{0x6cc7c253, 0x93b6, 0x482b, \
{ 0x8e, 0x9d, 0x1e, 0x04, 0xd8, 0xe9, 0xd6, 0x55 }}
class NS_NO_VTABLE nsICacheStorageVisitor : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHESTORAGEVISITOR_IID)
/* void onCacheStorageInfo (in uint32_t aEntryCount, in uint64_t aConsumption, in uint64_t aCapacity, in nsIFile aDiskDirectory); */
NS_IMETHOD OnCacheStorageInfo(uint32_t aEntryCount, uint64_t aConsumption, uint64_t aCapacity, nsIFile *aDiskDirectory) = 0;
/* void onCacheEntryInfo (in nsIURI aURI, in ACString aIdEnhance, in int64_t aDataSize, in long aFetchCount, in uint32_t aLastModifiedTime, in uint32_t aExpirationTime, in boolean aPinned); */
NS_IMETHOD OnCacheEntryInfo(nsIURI *aURI, const nsACString & aIdEnhance, int64_t aDataSize, int32_t aFetchCount, uint32_t aLastModifiedTime, uint32_t aExpirationTime, bool aPinned) = 0;
/* void onCacheEntryVisitCompleted (); */
NS_IMETHOD OnCacheEntryVisitCompleted(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheStorageVisitor, NS_ICACHESTORAGEVISITOR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICACHESTORAGEVISITOR \
NS_IMETHOD OnCacheStorageInfo(uint32_t aEntryCount, uint64_t aConsumption, uint64_t aCapacity, nsIFile *aDiskDirectory) override; \
NS_IMETHOD OnCacheEntryInfo(nsIURI *aURI, const nsACString & aIdEnhance, int64_t aDataSize, int32_t aFetchCount, uint32_t aLastModifiedTime, uint32_t aExpirationTime, bool aPinned) override; \
NS_IMETHOD OnCacheEntryVisitCompleted(void) 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_NSICACHESTORAGEVISITOR \
NS_METHOD OnCacheStorageInfo(uint32_t aEntryCount, uint64_t aConsumption, uint64_t aCapacity, nsIFile *aDiskDirectory); \
NS_METHOD OnCacheEntryInfo(nsIURI *aURI, const nsACString & aIdEnhance, int64_t aDataSize, int32_t aFetchCount, uint32_t aLastModifiedTime, uint32_t aExpirationTime, bool aPinned); \
NS_METHOD OnCacheEntryVisitCompleted(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICACHESTORAGEVISITOR(_to) \
NS_IMETHOD OnCacheStorageInfo(uint32_t aEntryCount, uint64_t aConsumption, uint64_t aCapacity, nsIFile *aDiskDirectory) override { return _to OnCacheStorageInfo(aEntryCount, aConsumption, aCapacity, aDiskDirectory); } \
NS_IMETHOD OnCacheEntryInfo(nsIURI *aURI, const nsACString & aIdEnhance, int64_t aDataSize, int32_t aFetchCount, uint32_t aLastModifiedTime, uint32_t aExpirationTime, bool aPinned) override { return _to OnCacheEntryInfo(aURI, aIdEnhance, aDataSize, aFetchCount, aLastModifiedTime, aExpirationTime, aPinned); } \
NS_IMETHOD OnCacheEntryVisitCompleted(void) override { return _to OnCacheEntryVisitCompleted(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICACHESTORAGEVISITOR(_to) \
NS_IMETHOD OnCacheStorageInfo(uint32_t aEntryCount, uint64_t aConsumption, uint64_t aCapacity, nsIFile *aDiskDirectory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCacheStorageInfo(aEntryCount, aConsumption, aCapacity, aDiskDirectory); } \
NS_IMETHOD OnCacheEntryInfo(nsIURI *aURI, const nsACString & aIdEnhance, int64_t aDataSize, int32_t aFetchCount, uint32_t aLastModifiedTime, uint32_t aExpirationTime, bool aPinned) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCacheEntryInfo(aURI, aIdEnhance, aDataSize, aFetchCount, aLastModifiedTime, aExpirationTime, aPinned); } \
NS_IMETHOD OnCacheEntryVisitCompleted(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCacheEntryVisitCompleted(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsCacheStorageVisitor : public nsICacheStorageVisitor
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSICACHESTORAGEVISITOR
nsCacheStorageVisitor();
private:
~nsCacheStorageVisitor();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsCacheStorageVisitor, nsICacheStorageVisitor)
nsCacheStorageVisitor::nsCacheStorageVisitor()
{
/* member initializers and constructor code */
}
nsCacheStorageVisitor::~nsCacheStorageVisitor()
{
/* destructor code */
}
/* void onCacheStorageInfo (in uint32_t aEntryCount, in uint64_t aConsumption, in uint64_t aCapacity, in nsIFile aDiskDirectory); */
NS_IMETHODIMP nsCacheStorageVisitor::OnCacheStorageInfo(uint32_t aEntryCount, uint64_t aConsumption, uint64_t aCapacity, nsIFile *aDiskDirectory)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onCacheEntryInfo (in nsIURI aURI, in ACString aIdEnhance, in int64_t aDataSize, in long aFetchCount, in uint32_t aLastModifiedTime, in uint32_t aExpirationTime, in boolean aPinned); */
NS_IMETHODIMP nsCacheStorageVisitor::OnCacheEntryInfo(nsIURI *aURI, const nsACString & aIdEnhance, int64_t aDataSize, int32_t aFetchCount, uint32_t aLastModifiedTime, uint32_t aExpirationTime, bool aPinned)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onCacheEntryVisitCompleted (); */
NS_IMETHODIMP nsCacheStorageVisitor::OnCacheEntryVisitCompleted()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsICacheStorageVisitor_h__ */
|