/usr/include/thunderbird/nsIFaviconService.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
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 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIFaviconService.idl
*/
#ifndef __gen_nsIFaviconService_h__
#define __gen_nsIFaviconService_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 */
/* starting interface: nsIFaviconService */
#define NS_IFAVICONSERVICE_IID_STR "e81e0b0c-b9f1-4c2e-8f3c-b809933cf73c"
#define NS_IFAVICONSERVICE_IID \
{0xe81e0b0c, 0xb9f1, 0x4c2e, \
{ 0x8f, 0x3c, 0xb8, 0x09, 0x93, 0x3c, 0xf7, 0x3c }}
class NS_NO_VTABLE nsIFaviconService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFAVICONSERVICE_IID)
enum {
FAVICON_LOAD_PRIVATE = 1U,
FAVICON_LOAD_NON_PRIVATE = 2U
};
/* nsIURI getFaviconLinkForIcon (in nsIURI aFaviconURI); */
NS_IMETHOD GetFaviconLinkForIcon(nsIURI *aFaviconURI, nsIURI * *_retval) = 0;
/* void expireAllFavicons (); */
NS_IMETHOD ExpireAllFavicons(void) = 0;
/* void addFailedFavicon (in nsIURI aFaviconURI); */
NS_IMETHOD AddFailedFavicon(nsIURI *aFaviconURI) = 0;
/* void removeFailedFavicon (in nsIURI aFaviconURI); */
NS_IMETHOD RemoveFailedFavicon(nsIURI *aFaviconURI) = 0;
/* boolean isFailedFavicon (in nsIURI aFaviconURI); */
NS_IMETHOD IsFailedFavicon(nsIURI *aFaviconURI, bool *_retval) = 0;
/* readonly attribute nsIURI defaultFavicon; */
NS_IMETHOD GetDefaultFavicon(nsIURI * *aDefaultFavicon) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIFaviconService, NS_IFAVICONSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFAVICONSERVICE \
NS_IMETHOD GetFaviconLinkForIcon(nsIURI *aFaviconURI, nsIURI * *_retval) override; \
NS_IMETHOD ExpireAllFavicons(void) override; \
NS_IMETHOD AddFailedFavicon(nsIURI *aFaviconURI) override; \
NS_IMETHOD RemoveFailedFavicon(nsIURI *aFaviconURI) override; \
NS_IMETHOD IsFailedFavicon(nsIURI *aFaviconURI, bool *_retval) override; \
NS_IMETHOD GetDefaultFavicon(nsIURI * *aDefaultFavicon) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFAVICONSERVICE(_to) \
NS_IMETHOD GetFaviconLinkForIcon(nsIURI *aFaviconURI, nsIURI * *_retval) override { return _to GetFaviconLinkForIcon(aFaviconURI, _retval); } \
NS_IMETHOD ExpireAllFavicons(void) override { return _to ExpireAllFavicons(); } \
NS_IMETHOD AddFailedFavicon(nsIURI *aFaviconURI) override { return _to AddFailedFavicon(aFaviconURI); } \
NS_IMETHOD RemoveFailedFavicon(nsIURI *aFaviconURI) override { return _to RemoveFailedFavicon(aFaviconURI); } \
NS_IMETHOD IsFailedFavicon(nsIURI *aFaviconURI, bool *_retval) override { return _to IsFailedFavicon(aFaviconURI, _retval); } \
NS_IMETHOD GetDefaultFavicon(nsIURI * *aDefaultFavicon) override { return _to GetDefaultFavicon(aDefaultFavicon); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFAVICONSERVICE(_to) \
NS_IMETHOD GetFaviconLinkForIcon(nsIURI *aFaviconURI, nsIURI * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFaviconLinkForIcon(aFaviconURI, _retval); } \
NS_IMETHOD ExpireAllFavicons(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExpireAllFavicons(); } \
NS_IMETHOD AddFailedFavicon(nsIURI *aFaviconURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddFailedFavicon(aFaviconURI); } \
NS_IMETHOD RemoveFailedFavicon(nsIURI *aFaviconURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveFailedFavicon(aFaviconURI); } \
NS_IMETHOD IsFailedFavicon(nsIURI *aFaviconURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsFailedFavicon(aFaviconURI, _retval); } \
NS_IMETHOD GetDefaultFavicon(nsIURI * *aDefaultFavicon) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultFavicon(aDefaultFavicon); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsFaviconService : public nsIFaviconService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIFAVICONSERVICE
nsFaviconService();
private:
~nsFaviconService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsFaviconService, nsIFaviconService)
nsFaviconService::nsFaviconService()
{
/* member initializers and constructor code */
}
nsFaviconService::~nsFaviconService()
{
/* destructor code */
}
/* nsIURI getFaviconLinkForIcon (in nsIURI aFaviconURI); */
NS_IMETHODIMP nsFaviconService::GetFaviconLinkForIcon(nsIURI *aFaviconURI, nsIURI * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void expireAllFavicons (); */
NS_IMETHODIMP nsFaviconService::ExpireAllFavicons()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addFailedFavicon (in nsIURI aFaviconURI); */
NS_IMETHODIMP nsFaviconService::AddFailedFavicon(nsIURI *aFaviconURI)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeFailedFavicon (in nsIURI aFaviconURI); */
NS_IMETHODIMP nsFaviconService::RemoveFailedFavicon(nsIURI *aFaviconURI)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isFailedFavicon (in nsIURI aFaviconURI); */
NS_IMETHODIMP nsFaviconService::IsFailedFavicon(nsIURI *aFaviconURI, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIURI defaultFavicon; */
NS_IMETHODIMP nsFaviconService::GetDefaultFavicon(nsIURI * *aDefaultFavicon)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIFaviconDataCallback */
#define NS_IFAVICONDATACALLBACK_IID_STR "c85e5c82-b70f-4621-9528-beb2aa47fb44"
#define NS_IFAVICONDATACALLBACK_IID \
{0xc85e5c82, 0xb70f, 0x4621, \
{ 0x95, 0x28, 0xbe, 0xb2, 0xaa, 0x47, 0xfb, 0x44 }}
class NS_NO_VTABLE nsIFaviconDataCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFAVICONDATACALLBACK_IID)
/* void onComplete (in nsIURI aFaviconURI, in unsigned long aDataLen, [array, size_is (aDataLen), const] in octet aData, in AUTF8String aMimeType); */
NS_IMETHOD OnComplete(nsIURI *aFaviconURI, uint32_t aDataLen, const uint8_t *aData, const nsACString & aMimeType) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIFaviconDataCallback, NS_IFAVICONDATACALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFAVICONDATACALLBACK \
NS_IMETHOD OnComplete(nsIURI *aFaviconURI, uint32_t aDataLen, const uint8_t *aData, const nsACString & aMimeType) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFAVICONDATACALLBACK(_to) \
NS_IMETHOD OnComplete(nsIURI *aFaviconURI, uint32_t aDataLen, const uint8_t *aData, const nsACString & aMimeType) override { return _to OnComplete(aFaviconURI, aDataLen, aData, aMimeType); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFAVICONDATACALLBACK(_to) \
NS_IMETHOD OnComplete(nsIURI *aFaviconURI, uint32_t aDataLen, const uint8_t *aData, const nsACString & aMimeType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnComplete(aFaviconURI, aDataLen, aData, aMimeType); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsFaviconDataCallback : public nsIFaviconDataCallback
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIFAVICONDATACALLBACK
nsFaviconDataCallback();
private:
~nsFaviconDataCallback();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsFaviconDataCallback, nsIFaviconDataCallback)
nsFaviconDataCallback::nsFaviconDataCallback()
{
/* member initializers and constructor code */
}
nsFaviconDataCallback::~nsFaviconDataCallback()
{
/* destructor code */
}
/* void onComplete (in nsIURI aFaviconURI, in unsigned long aDataLen, [array, size_is (aDataLen), const] in octet aData, in AUTF8String aMimeType); */
NS_IMETHODIMP nsFaviconDataCallback::OnComplete(nsIURI *aFaviconURI, uint32_t aDataLen, const uint8_t *aData, const nsACString & aMimeType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/**
* Notification sent when all favicons are expired.
*/
#define NS_PLACES_FAVICONS_EXPIRED_TOPIC_ID "places-favicons-expired"
#define FAVICON_DEFAULT_URL "chrome://mozapps/skin/places/defaultFavicon.png"
#define FAVICON_ERRORPAGE_URL "chrome://global/skin/icons/warning-16.png"
#endif /* __gen_nsIFaviconService_h__ */
|