/usr/include/thunderbird/nsIPluginHost.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 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPluginHost.idl
*/
#ifndef __gen_nsIPluginHost_h__
#define __gen_nsIPluginHost_h__
#ifndef __gen_nspluginroot_h__
#include "nspluginroot.h"
#endif
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIPluginTag_h__
#include "nsIPluginTag.h"
#endif
#include "js/Value.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#define MOZ_PLUGIN_HOST_CONTRACTID \
"@mozilla.org/plugin/host;1"
/* starting interface: nsIClearSiteDataCallback */
#define NS_ICLEARSITEDATACALLBACK_IID_STR "9c311778-7c2c-4ad8-b439-b8a2786a20dd"
#define NS_ICLEARSITEDATACALLBACK_IID \
{0x9c311778, 0x7c2c, 0x4ad8, \
{ 0xb4, 0x39, 0xb8, 0xa2, 0x78, 0x6a, 0x20, 0xdd }}
class NS_NO_VTABLE nsIClearSiteDataCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICLEARSITEDATACALLBACK_IID)
/* void callback (in nsresult rv); */
NS_IMETHOD Callback(nsresult rv) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIClearSiteDataCallback, NS_ICLEARSITEDATACALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICLEARSITEDATACALLBACK \
NS_IMETHOD Callback(nsresult rv) 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_NSICLEARSITEDATACALLBACK \
NS_METHOD Callback(nsresult rv);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICLEARSITEDATACALLBACK(_to) \
NS_IMETHOD Callback(nsresult rv) override { return _to Callback(rv); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICLEARSITEDATACALLBACK(_to) \
NS_IMETHOD Callback(nsresult rv) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Callback(rv); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsClearSiteDataCallback : public nsIClearSiteDataCallback
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSICLEARSITEDATACALLBACK
nsClearSiteDataCallback();
private:
~nsClearSiteDataCallback();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsClearSiteDataCallback, nsIClearSiteDataCallback)
nsClearSiteDataCallback::nsClearSiteDataCallback()
{
/* member initializers and constructor code */
}
nsClearSiteDataCallback::~nsClearSiteDataCallback()
{
/* destructor code */
}
/* void callback (in nsresult rv); */
NS_IMETHODIMP nsClearSiteDataCallback::Callback(nsresult rv)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIPluginHost */
#define NS_IPLUGINHOST_IID_STR "f938f5ba-7093-42cd-a559-af8039d99204"
#define NS_IPLUGINHOST_IID \
{0xf938f5ba, 0x7093, 0x42cd, \
{ 0xa5, 0x59, 0xaf, 0x80, 0x39, 0xd9, 0x92, 0x04 }}
class NS_NO_VTABLE nsIPluginHost : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPLUGINHOST_IID)
/* void reloadPlugins (); */
NS_IMETHOD ReloadPlugins(void) = 0;
/* void getPluginTags ([optional] out unsigned long aPluginCount, [array, size_is (aPluginCount), retval] out nsIPluginTag aResults); */
NS_IMETHOD GetPluginTags(uint32_t *aPluginCount, nsIPluginTag * **aResults) = 0;
enum {
FLAG_CLEAR_ALL = 0U,
FLAG_CLEAR_CACHE = 1U,
EXCLUDE_NONE = 0U,
EXCLUDE_DISABLED = 1U,
EXCLUDE_FAKE = 2U
};
/* void clearSiteData (in nsIPluginTag plugin, in AUTF8String domain, in uint64_t flags, in int64_t maxAge, in nsIClearSiteDataCallback callback); */
NS_IMETHOD ClearSiteData(nsIPluginTag *plugin, const nsACString & domain, uint64_t flags, int64_t maxAge, nsIClearSiteDataCallback *callback) = 0;
/* boolean siteHasData (in nsIPluginTag plugin, in AUTF8String domain); */
NS_IMETHOD SiteHasData(nsIPluginTag *plugin, const nsACString & domain, bool *_retval) = 0;
/* ACString getPermissionStringForType (in AUTF8String mimeType, [optional] in uint32_t excludeFlags); */
NS_IMETHOD GetPermissionStringForType(const nsACString & mimeType, uint32_t excludeFlags, nsACString & _retval) = 0;
/* ACString getPermissionStringForTag (in nsIPluginTag tag, [optional] in uint32_t excludeFlags); */
NS_IMETHOD GetPermissionStringForTag(nsIPluginTag *tag, uint32_t excludeFlags, nsACString & _retval) = 0;
/* nsIPluginTag getPluginTagForType (in AUTF8String mimeType, [optional] in uint32_t excludeFlags); */
NS_IMETHOD GetPluginTagForType(const nsACString & mimeType, uint32_t excludeFlags, nsIPluginTag * *_retval) = 0;
/* unsigned long getStateForType (in AUTF8String mimeType, [optional] in uint32_t excludeFlags); */
NS_IMETHOD GetStateForType(const nsACString & mimeType, uint32_t excludeFlags, uint32_t *_retval) = 0;
/* uint32_t getBlocklistStateForType (in AUTF8String aMimeType, [optional] in uint32_t excludeFlags); */
NS_IMETHOD GetBlocklistStateForType(const nsACString & aMimeType, uint32_t excludeFlags, uint32_t *_retval) = 0;
/* [implicit_jscontext] nsIFakePluginTag registerFakePlugin (in jsval initDictionary); */
NS_IMETHOD RegisterFakePlugin(JS::HandleValue initDictionary, JSContext* cx, nsIFakePluginTag * *_retval) = 0;
/* nsIFakePluginTag getFakePlugin (in AUTF8String mimeType); */
NS_IMETHOD GetFakePlugin(const nsACString & mimeType, nsIFakePluginTag * *_retval) = 0;
/* void unregisterFakePlugin (in AUTF8String handlerURI); */
NS_IMETHOD UnregisterFakePlugin(const nsACString & handlerURI) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIPluginHost, NS_IPLUGINHOST_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPLUGINHOST \
NS_IMETHOD ReloadPlugins(void) override; \
NS_IMETHOD GetPluginTags(uint32_t *aPluginCount, nsIPluginTag * **aResults) override; \
NS_IMETHOD ClearSiteData(nsIPluginTag *plugin, const nsACString & domain, uint64_t flags, int64_t maxAge, nsIClearSiteDataCallback *callback) override; \
NS_IMETHOD SiteHasData(nsIPluginTag *plugin, const nsACString & domain, bool *_retval) override; \
NS_IMETHOD GetPermissionStringForType(const nsACString & mimeType, uint32_t excludeFlags, nsACString & _retval) override; \
NS_IMETHOD GetPermissionStringForTag(nsIPluginTag *tag, uint32_t excludeFlags, nsACString & _retval) override; \
NS_IMETHOD GetPluginTagForType(const nsACString & mimeType, uint32_t excludeFlags, nsIPluginTag * *_retval) override; \
NS_IMETHOD GetStateForType(const nsACString & mimeType, uint32_t excludeFlags, uint32_t *_retval) override; \
NS_IMETHOD GetBlocklistStateForType(const nsACString & aMimeType, uint32_t excludeFlags, uint32_t *_retval) override; \
NS_IMETHOD RegisterFakePlugin(JS::HandleValue initDictionary, JSContext* cx, nsIFakePluginTag * *_retval) override; \
NS_IMETHOD GetFakePlugin(const nsACString & mimeType, nsIFakePluginTag * *_retval) override; \
NS_IMETHOD UnregisterFakePlugin(const nsACString & handlerURI) 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_NSIPLUGINHOST \
NS_METHOD ReloadPlugins(void); \
NS_METHOD GetPluginTags(uint32_t *aPluginCount, nsIPluginTag * **aResults); \
NS_METHOD ClearSiteData(nsIPluginTag *plugin, const nsACString & domain, uint64_t flags, int64_t maxAge, nsIClearSiteDataCallback *callback); \
NS_METHOD SiteHasData(nsIPluginTag *plugin, const nsACString & domain, bool *_retval); \
NS_METHOD GetPermissionStringForType(const nsACString & mimeType, uint32_t excludeFlags, nsACString & _retval); \
NS_METHOD GetPermissionStringForTag(nsIPluginTag *tag, uint32_t excludeFlags, nsACString & _retval); \
NS_METHOD GetPluginTagForType(const nsACString & mimeType, uint32_t excludeFlags, nsIPluginTag * *_retval); \
NS_METHOD GetStateForType(const nsACString & mimeType, uint32_t excludeFlags, uint32_t *_retval); \
NS_METHOD GetBlocklistStateForType(const nsACString & aMimeType, uint32_t excludeFlags, uint32_t *_retval); \
NS_METHOD RegisterFakePlugin(JS::HandleValue initDictionary, JSContext* cx, nsIFakePluginTag * *_retval); \
NS_METHOD GetFakePlugin(const nsACString & mimeType, nsIFakePluginTag * *_retval); \
NS_METHOD UnregisterFakePlugin(const nsACString & handlerURI);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPLUGINHOST(_to) \
NS_IMETHOD ReloadPlugins(void) override { return _to ReloadPlugins(); } \
NS_IMETHOD GetPluginTags(uint32_t *aPluginCount, nsIPluginTag * **aResults) override { return _to GetPluginTags(aPluginCount, aResults); } \
NS_IMETHOD ClearSiteData(nsIPluginTag *plugin, const nsACString & domain, uint64_t flags, int64_t maxAge, nsIClearSiteDataCallback *callback) override { return _to ClearSiteData(plugin, domain, flags, maxAge, callback); } \
NS_IMETHOD SiteHasData(nsIPluginTag *plugin, const nsACString & domain, bool *_retval) override { return _to SiteHasData(plugin, domain, _retval); } \
NS_IMETHOD GetPermissionStringForType(const nsACString & mimeType, uint32_t excludeFlags, nsACString & _retval) override { return _to GetPermissionStringForType(mimeType, excludeFlags, _retval); } \
NS_IMETHOD GetPermissionStringForTag(nsIPluginTag *tag, uint32_t excludeFlags, nsACString & _retval) override { return _to GetPermissionStringForTag(tag, excludeFlags, _retval); } \
NS_IMETHOD GetPluginTagForType(const nsACString & mimeType, uint32_t excludeFlags, nsIPluginTag * *_retval) override { return _to GetPluginTagForType(mimeType, excludeFlags, _retval); } \
NS_IMETHOD GetStateForType(const nsACString & mimeType, uint32_t excludeFlags, uint32_t *_retval) override { return _to GetStateForType(mimeType, excludeFlags, _retval); } \
NS_IMETHOD GetBlocklistStateForType(const nsACString & aMimeType, uint32_t excludeFlags, uint32_t *_retval) override { return _to GetBlocklistStateForType(aMimeType, excludeFlags, _retval); } \
NS_IMETHOD RegisterFakePlugin(JS::HandleValue initDictionary, JSContext* cx, nsIFakePluginTag * *_retval) override { return _to RegisterFakePlugin(initDictionary, cx, _retval); } \
NS_IMETHOD GetFakePlugin(const nsACString & mimeType, nsIFakePluginTag * *_retval) override { return _to GetFakePlugin(mimeType, _retval); } \
NS_IMETHOD UnregisterFakePlugin(const nsACString & handlerURI) override { return _to UnregisterFakePlugin(handlerURI); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPLUGINHOST(_to) \
NS_IMETHOD ReloadPlugins(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReloadPlugins(); } \
NS_IMETHOD GetPluginTags(uint32_t *aPluginCount, nsIPluginTag * **aResults) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPluginTags(aPluginCount, aResults); } \
NS_IMETHOD ClearSiteData(nsIPluginTag *plugin, const nsACString & domain, uint64_t flags, int64_t maxAge, nsIClearSiteDataCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearSiteData(plugin, domain, flags, maxAge, callback); } \
NS_IMETHOD SiteHasData(nsIPluginTag *plugin, const nsACString & domain, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SiteHasData(plugin, domain, _retval); } \
NS_IMETHOD GetPermissionStringForType(const nsACString & mimeType, uint32_t excludeFlags, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPermissionStringForType(mimeType, excludeFlags, _retval); } \
NS_IMETHOD GetPermissionStringForTag(nsIPluginTag *tag, uint32_t excludeFlags, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPermissionStringForTag(tag, excludeFlags, _retval); } \
NS_IMETHOD GetPluginTagForType(const nsACString & mimeType, uint32_t excludeFlags, nsIPluginTag * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPluginTagForType(mimeType, excludeFlags, _retval); } \
NS_IMETHOD GetStateForType(const nsACString & mimeType, uint32_t excludeFlags, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStateForType(mimeType, excludeFlags, _retval); } \
NS_IMETHOD GetBlocklistStateForType(const nsACString & aMimeType, uint32_t excludeFlags, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBlocklistStateForType(aMimeType, excludeFlags, _retval); } \
NS_IMETHOD RegisterFakePlugin(JS::HandleValue initDictionary, JSContext* cx, nsIFakePluginTag * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterFakePlugin(initDictionary, cx, _retval); } \
NS_IMETHOD GetFakePlugin(const nsACString & mimeType, nsIFakePluginTag * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFakePlugin(mimeType, _retval); } \
NS_IMETHOD UnregisterFakePlugin(const nsACString & handlerURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterFakePlugin(handlerURI); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsPluginHost : public nsIPluginHost
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPLUGINHOST
nsPluginHost();
private:
~nsPluginHost();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsPluginHost, nsIPluginHost)
nsPluginHost::nsPluginHost()
{
/* member initializers and constructor code */
}
nsPluginHost::~nsPluginHost()
{
/* destructor code */
}
/* void reloadPlugins (); */
NS_IMETHODIMP nsPluginHost::ReloadPlugins()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getPluginTags ([optional] out unsigned long aPluginCount, [array, size_is (aPluginCount), retval] out nsIPluginTag aResults); */
NS_IMETHODIMP nsPluginHost::GetPluginTags(uint32_t *aPluginCount, nsIPluginTag * **aResults)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void clearSiteData (in nsIPluginTag plugin, in AUTF8String domain, in uint64_t flags, in int64_t maxAge, in nsIClearSiteDataCallback callback); */
NS_IMETHODIMP nsPluginHost::ClearSiteData(nsIPluginTag *plugin, const nsACString & domain, uint64_t flags, int64_t maxAge, nsIClearSiteDataCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean siteHasData (in nsIPluginTag plugin, in AUTF8String domain); */
NS_IMETHODIMP nsPluginHost::SiteHasData(nsIPluginTag *plugin, const nsACString & domain, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString getPermissionStringForType (in AUTF8String mimeType, [optional] in uint32_t excludeFlags); */
NS_IMETHODIMP nsPluginHost::GetPermissionStringForType(const nsACString & mimeType, uint32_t excludeFlags, nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString getPermissionStringForTag (in nsIPluginTag tag, [optional] in uint32_t excludeFlags); */
NS_IMETHODIMP nsPluginHost::GetPermissionStringForTag(nsIPluginTag *tag, uint32_t excludeFlags, nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIPluginTag getPluginTagForType (in AUTF8String mimeType, [optional] in uint32_t excludeFlags); */
NS_IMETHODIMP nsPluginHost::GetPluginTagForType(const nsACString & mimeType, uint32_t excludeFlags, nsIPluginTag * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long getStateForType (in AUTF8String mimeType, [optional] in uint32_t excludeFlags); */
NS_IMETHODIMP nsPluginHost::GetStateForType(const nsACString & mimeType, uint32_t excludeFlags, uint32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* uint32_t getBlocklistStateForType (in AUTF8String aMimeType, [optional] in uint32_t excludeFlags); */
NS_IMETHODIMP nsPluginHost::GetBlocklistStateForType(const nsACString & aMimeType, uint32_t excludeFlags, uint32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] nsIFakePluginTag registerFakePlugin (in jsval initDictionary); */
NS_IMETHODIMP nsPluginHost::RegisterFakePlugin(JS::HandleValue initDictionary, JSContext* cx, nsIFakePluginTag * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIFakePluginTag getFakePlugin (in AUTF8String mimeType); */
NS_IMETHODIMP nsPluginHost::GetFakePlugin(const nsACString & mimeType, nsIFakePluginTag * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unregisterFakePlugin (in AUTF8String handlerURI); */
NS_IMETHODIMP nsPluginHost::UnregisterFakePlugin(const nsACString & handlerURI)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIPluginHost_h__ */
|