/usr/include/thunderbird/mozIGeckoMediaPluginService.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/mozIGeckoMediaPluginService.idl
*/
#ifndef __gen_mozIGeckoMediaPluginService_h__
#define __gen_mozIGeckoMediaPluginService_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIThread_h__
#include "nsIThread.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"
#include "nsTArray.h"
#include "nsStringGlue.h"
class GMPAudioDecoderProxy;
class GMPDecryptorProxy;
class GMPVideoDecoderProxy;
class GMPVideoEncoderProxy;
class GMPVideoHost;
class GMPCrashHelper;
template<class T>
class GMPGetterCallback
{
public:
GMPGetterCallback() { MOZ_COUNT_CTOR(GMPGetterCallback<T>); }
virtual ~GMPGetterCallback() { MOZ_COUNT_DTOR(GMPGetterCallback<T>); }
virtual void Done(T*) = 0;
};
template<class T>
class GMPVideoGetterCallback
{
public:
GMPVideoGetterCallback() { MOZ_COUNT_CTOR(GMPVideoGetterCallback<T>); }
virtual ~GMPVideoGetterCallback() { MOZ_COUNT_DTOR(GMPVideoGetterCallback<T>); }
virtual void Done(T*, GMPVideoHost*) = 0;
};
typedef GMPGetterCallback<GMPDecryptorProxy> GetGMPDecryptorCallback;
typedef GMPGetterCallback<GMPAudioDecoderProxy> GetGMPAudioDecoderCallback;
typedef GMPVideoGetterCallback<GMPVideoDecoderProxy> GetGMPVideoDecoderCallback;
typedef GMPVideoGetterCallback<GMPVideoEncoderProxy> GetGMPVideoEncoderCallback;
class GetNodeIdCallback
{
public:
GetNodeIdCallback() { MOZ_COUNT_CTOR(GetNodeIdCallback); }
virtual ~GetNodeIdCallback() { MOZ_COUNT_DTOR(GetNodeIdCallback); }
virtual void Done(nsresult aResult, const nsACString& aNodeId) = 0;
};
/* starting interface: mozIGeckoMediaPluginService */
#define MOZIGECKOMEDIAPLUGINSERVICE_IID_STR "44d362ae-937a-4803-bee6-f2512a0149d1"
#define MOZIGECKOMEDIAPLUGINSERVICE_IID \
{0x44d362ae, 0x937a, 0x4803, \
{ 0xbe, 0xe6, 0xf2, 0x51, 0x2a, 0x01, 0x49, 0xd1 }}
class NS_NO_VTABLE mozIGeckoMediaPluginService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(MOZIGECKOMEDIAPLUGINSERVICE_IID)
/* readonly attribute nsIThread thread; */
NS_IMETHOD GetThread(nsIThread * *aThread) = 0;
/* void RunPluginCrashCallbacks (in unsigned long pluginId, in ACString pluginName); */
NS_IMETHOD RunPluginCrashCallbacks(uint32_t pluginId, const nsACString & pluginName) = 0;
/* [noscript] boolean hasPluginForAPI (in ACString api, in TagArray tags); */
NS_IMETHOD HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval) = 0;
/* [noscript] void getGMPVideoDecoder (in GMPCrashHelperPtr helper, in TagArray tags, [optional] in ACString nodeId, in GetGMPVideoDecoderCallback callback); */
NS_IMETHOD GetGMPVideoDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback) = 0;
/* [noscript] void getDecryptingGMPVideoDecoder (in GMPCrashHelperPtr helper, in TagArray tags, in ACString nodeId, in GetGMPVideoDecoderCallback callback, in uint32_t decryptorId); */
NS_IMETHOD GetDecryptingGMPVideoDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId) = 0;
/* [noscript] void getGMPVideoEncoder (in GMPCrashHelperPtr helper, in TagArray tags, [optional] in ACString nodeId, in GetGMPVideoEncoderCallback callback); */
NS_IMETHOD GetGMPVideoEncoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback) = 0;
/* [noscript] void getGMPAudioDecoder (in GMPCrashHelperPtr helper, in TagArray tags, [optional] in ACString nodeId, in GetGMPAudioDecoderCallback callback); */
NS_IMETHOD GetGMPAudioDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPAudioDecoderCallback>&& callback) = 0;
/* [noscript] void getGMPDecryptor (in GMPCrashHelperPtr helper, in TagArray tags, in ACString nodeId, in GetGMPDecryptorCallback callback); */
NS_IMETHOD GetGMPDecryptor(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPDecryptorCallback>&& callback) = 0;
/* [noscript] void getNodeId (in AString origin, in AString topLevelOrigin, in AString gmpName, in bool inPrivateBrowsingMode, in GetNodeIdCallback callback); */
NS_IMETHOD GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, const nsAString & gmpName, bool inPrivateBrowsingMode, mozilla::UniquePtr<GetNodeIdCallback>&& callback) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(mozIGeckoMediaPluginService, MOZIGECKOMEDIAPLUGINSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_MOZIGECKOMEDIAPLUGINSERVICE \
NS_IMETHOD GetThread(nsIThread * *aThread) override; \
NS_IMETHOD RunPluginCrashCallbacks(uint32_t pluginId, const nsACString & pluginName) override; \
NS_IMETHOD HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval) override; \
NS_IMETHOD GetGMPVideoDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback) override; \
NS_IMETHOD GetDecryptingGMPVideoDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId) override; \
NS_IMETHOD GetGMPVideoEncoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback) override; \
NS_IMETHOD GetGMPAudioDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPAudioDecoderCallback>&& callback) override; \
NS_IMETHOD GetGMPDecryptor(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPDecryptorCallback>&& callback) override; \
NS_IMETHOD GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, const nsAString & gmpName, bool inPrivateBrowsingMode, mozilla::UniquePtr<GetNodeIdCallback>&& callback) 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_MOZIGECKOMEDIAPLUGINSERVICE \
NS_METHOD GetThread(nsIThread * *aThread); \
NS_METHOD RunPluginCrashCallbacks(uint32_t pluginId, const nsACString & pluginName); \
NS_METHOD HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval); \
NS_METHOD GetGMPVideoDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback); \
NS_METHOD GetDecryptingGMPVideoDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId); \
NS_METHOD GetGMPVideoEncoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback); \
NS_METHOD GetGMPAudioDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPAudioDecoderCallback>&& callback); \
NS_METHOD GetGMPDecryptor(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPDecryptorCallback>&& callback); \
NS_METHOD GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, const nsAString & gmpName, bool inPrivateBrowsingMode, mozilla::UniquePtr<GetNodeIdCallback>&& callback);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_MOZIGECKOMEDIAPLUGINSERVICE(_to) \
NS_IMETHOD GetThread(nsIThread * *aThread) override { return _to GetThread(aThread); } \
NS_IMETHOD RunPluginCrashCallbacks(uint32_t pluginId, const nsACString & pluginName) override { return _to RunPluginCrashCallbacks(pluginId, pluginName); } \
NS_IMETHOD HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval) override { return _to HasPluginForAPI(api, tags, _retval); } \
NS_IMETHOD GetGMPVideoDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback) override { return _to GetGMPVideoDecoder(helper, tags, nodeId, callback); } \
NS_IMETHOD GetDecryptingGMPVideoDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId) override { return _to GetDecryptingGMPVideoDecoder(helper, tags, nodeId, callback, decryptorId); } \
NS_IMETHOD GetGMPVideoEncoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback) override { return _to GetGMPVideoEncoder(helper, tags, nodeId, callback); } \
NS_IMETHOD GetGMPAudioDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPAudioDecoderCallback>&& callback) override { return _to GetGMPAudioDecoder(helper, tags, nodeId, callback); } \
NS_IMETHOD GetGMPDecryptor(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPDecryptorCallback>&& callback) override { return _to GetGMPDecryptor(helper, tags, nodeId, callback); } \
NS_IMETHOD GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, const nsAString & gmpName, bool inPrivateBrowsingMode, mozilla::UniquePtr<GetNodeIdCallback>&& callback) override { return _to GetNodeId(origin, topLevelOrigin, gmpName, inPrivateBrowsingMode, callback); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_MOZIGECKOMEDIAPLUGINSERVICE(_to) \
NS_IMETHOD GetThread(nsIThread * *aThread) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThread(aThread); } \
NS_IMETHOD RunPluginCrashCallbacks(uint32_t pluginId, const nsACString & pluginName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RunPluginCrashCallbacks(pluginId, pluginName); } \
NS_IMETHOD HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasPluginForAPI(api, tags, _retval); } \
NS_IMETHOD GetGMPVideoDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGMPVideoDecoder(helper, tags, nodeId, callback); } \
NS_IMETHOD GetDecryptingGMPVideoDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDecryptingGMPVideoDecoder(helper, tags, nodeId, callback, decryptorId); } \
NS_IMETHOD GetGMPVideoEncoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGMPVideoEncoder(helper, tags, nodeId, callback); } \
NS_IMETHOD GetGMPAudioDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPAudioDecoderCallback>&& callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGMPAudioDecoder(helper, tags, nodeId, callback); } \
NS_IMETHOD GetGMPDecryptor(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPDecryptorCallback>&& callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGMPDecryptor(helper, tags, nodeId, callback); } \
NS_IMETHOD GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, const nsAString & gmpName, bool inPrivateBrowsingMode, mozilla::UniquePtr<GetNodeIdCallback>&& callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNodeId(origin, topLevelOrigin, gmpName, inPrivateBrowsingMode, callback); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public mozIGeckoMediaPluginService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_MOZIGECKOMEDIAPLUGINSERVICE
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, mozIGeckoMediaPluginService)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* readonly attribute nsIThread thread; */
NS_IMETHODIMP _MYCLASS_::GetThread(nsIThread * *aThread)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void RunPluginCrashCallbacks (in unsigned long pluginId, in ACString pluginName); */
NS_IMETHODIMP _MYCLASS_::RunPluginCrashCallbacks(uint32_t pluginId, const nsACString & pluginName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] boolean hasPluginForAPI (in ACString api, in TagArray tags); */
NS_IMETHODIMP _MYCLASS_::HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void getGMPVideoDecoder (in GMPCrashHelperPtr helper, in TagArray tags, [optional] in ACString nodeId, in GetGMPVideoDecoderCallback callback); */
NS_IMETHODIMP _MYCLASS_::GetGMPVideoDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void getDecryptingGMPVideoDecoder (in GMPCrashHelperPtr helper, in TagArray tags, in ACString nodeId, in GetGMPVideoDecoderCallback callback, in uint32_t decryptorId); */
NS_IMETHODIMP _MYCLASS_::GetDecryptingGMPVideoDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void getGMPVideoEncoder (in GMPCrashHelperPtr helper, in TagArray tags, [optional] in ACString nodeId, in GetGMPVideoEncoderCallback callback); */
NS_IMETHODIMP _MYCLASS_::GetGMPVideoEncoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void getGMPAudioDecoder (in GMPCrashHelperPtr helper, in TagArray tags, [optional] in ACString nodeId, in GetGMPAudioDecoderCallback callback); */
NS_IMETHODIMP _MYCLASS_::GetGMPAudioDecoder(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPAudioDecoderCallback>&& callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void getGMPDecryptor (in GMPCrashHelperPtr helper, in TagArray tags, in ACString nodeId, in GetGMPDecryptorCallback callback); */
NS_IMETHODIMP _MYCLASS_::GetGMPDecryptor(GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPDecryptorCallback>&& callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void getNodeId (in AString origin, in AString topLevelOrigin, in AString gmpName, in bool inPrivateBrowsingMode, in GetNodeIdCallback callback); */
NS_IMETHODIMP _MYCLASS_::GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, const nsAString & gmpName, bool inPrivateBrowsingMode, mozilla::UniquePtr<GetNodeIdCallback>&& callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_mozIGeckoMediaPluginService_h__ */
|