/work/obj-fuzz/dist/include/mozIGeckoMediaPluginService.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/dom/media/gmp/mozIGeckoMediaPluginService.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_mozIGeckoMediaPluginService_h__ |
6 | | #define __gen_mozIGeckoMediaPluginService_h__ |
7 | | |
8 | | |
9 | | #ifndef __gen_nsISupports_h__ |
10 | | #include "nsISupports.h" |
11 | | #endif |
12 | | |
13 | | #ifndef __gen_nsIThread_h__ |
14 | | #include "nsIThread.h" |
15 | | #endif |
16 | | |
17 | | #include "js/GCAnnotations.h" |
18 | | |
19 | | /* For IDL files that don't want to include root IDL files. */ |
20 | | #ifndef NS_NO_VTABLE |
21 | | #define NS_NO_VTABLE |
22 | | #endif |
23 | | #include "mozilla/UniquePtr.h" |
24 | | #include "nsTArray.h" |
25 | | #include "nsString.h" |
26 | | class GMPDecryptorProxy; |
27 | | class GMPVideoDecoderProxy; |
28 | | class GMPVideoEncoderProxy; |
29 | | class GMPVideoHost; |
30 | | namespace mozilla { |
31 | | class GMPCrashHelper; |
32 | | } |
33 | | template<class T> |
34 | | class GMPGetterCallback |
35 | | { |
36 | | public: |
37 | | GMPGetterCallback() { MOZ_COUNT_CTOR(GMPGetterCallback<T>); } |
38 | | virtual ~GMPGetterCallback() { MOZ_COUNT_DTOR(GMPGetterCallback<T>); } |
39 | | virtual void Done(T*) = 0; |
40 | | }; |
41 | | template<class T> |
42 | | class GMPVideoGetterCallback |
43 | | { |
44 | | public: |
45 | 0 | GMPVideoGetterCallback() { MOZ_COUNT_CTOR(GMPVideoGetterCallback<T>); } Unexecuted instantiation: GMPVideoGetterCallback<GMPVideoEncoderProxy>::GMPVideoGetterCallback() Unexecuted instantiation: GMPVideoGetterCallback<GMPVideoDecoderProxy>::GMPVideoGetterCallback() |
46 | 0 | virtual ~GMPVideoGetterCallback() { MOZ_COUNT_DTOR(GMPVideoGetterCallback<T>); } Unexecuted instantiation: GMPVideoGetterCallback<GMPVideoEncoderProxy>::~GMPVideoGetterCallback() Unexecuted instantiation: GMPVideoGetterCallback<GMPVideoDecoderProxy>::~GMPVideoGetterCallback() |
47 | | virtual void Done(T*, GMPVideoHost*) = 0; |
48 | | }; |
49 | | typedef GMPGetterCallback<GMPDecryptorProxy> GetGMPDecryptorCallback; |
50 | | typedef GMPVideoGetterCallback<GMPVideoDecoderProxy> GetGMPVideoDecoderCallback; |
51 | | typedef GMPVideoGetterCallback<GMPVideoEncoderProxy> GetGMPVideoEncoderCallback; |
52 | | class GetNodeIdCallback |
53 | | { |
54 | | public: |
55 | 0 | GetNodeIdCallback() { MOZ_COUNT_CTOR(GetNodeIdCallback); } |
56 | 0 | virtual ~GetNodeIdCallback() { MOZ_COUNT_DTOR(GetNodeIdCallback); } |
57 | | virtual void Done(nsresult aResult, const nsACString& aNodeId) = 0; |
58 | | }; |
59 | | |
60 | | /* starting interface: mozIGeckoMediaPluginService */ |
61 | | #define MOZIGECKOMEDIAPLUGINSERVICE_IID_STR "44d362ae-937a-4803-bee6-f2512a0149d1" |
62 | | |
63 | | #define MOZIGECKOMEDIAPLUGINSERVICE_IID \ |
64 | | {0x44d362ae, 0x937a, 0x4803, \ |
65 | | { 0xbe, 0xe6, 0xf2, 0x51, 0x2a, 0x01, 0x49, 0xd1 }} |
66 | | |
67 | | class NS_NO_VTABLE mozIGeckoMediaPluginService : public nsISupports { |
68 | | public: |
69 | | |
70 | | NS_DECLARE_STATIC_IID_ACCESSOR(MOZIGECKOMEDIAPLUGINSERVICE_IID) |
71 | | |
72 | | /* readonly attribute nsIThread thread; */ |
73 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetThread(nsIThread **aThread) = 0; |
74 | | |
75 | | /* void RunPluginCrashCallbacks (in unsigned long pluginId, in ACString pluginName); */ |
76 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RunPluginCrashCallbacks(uint32_t pluginId, const nsACString& pluginName) = 0; |
77 | | |
78 | | /* [noscript] boolean hasPluginForAPI (in ACString api, in TagArray tags); */ |
79 | | NS_IMETHOD HasPluginForAPI(const nsACString& api, nsTArray<nsCString> * tags, bool *_retval) = 0; |
80 | | |
81 | | /* [noscript] void getGMPVideoDecoder (in GMPCrashHelperPtr helper, in TagArray tags, [optional] in ACString nodeId, in GetGMPVideoDecoderCallback callback); */ |
82 | | NS_IMETHOD GetGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> * tags, const nsACString& nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback) = 0; |
83 | | |
84 | | /* [noscript] void getDecryptingGMPVideoDecoder (in GMPCrashHelperPtr helper, in TagArray tags, in ACString nodeId, in GetGMPVideoDecoderCallback callback, in uint32_t decryptorId); */ |
85 | | NS_IMETHOD GetDecryptingGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> * tags, const nsACString& nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId) = 0; |
86 | | |
87 | | /* [noscript] void getGMPVideoEncoder (in GMPCrashHelperPtr helper, in TagArray tags, [optional] in ACString nodeId, in GetGMPVideoEncoderCallback callback); */ |
88 | | NS_IMETHOD GetGMPVideoEncoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> * tags, const nsACString& nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback) = 0; |
89 | | |
90 | | /* [noscript] void getNodeId (in AString origin, in AString topLevelOrigin, in AString gmpName, in GetNodeIdCallback callback); */ |
91 | | NS_IMETHOD GetNodeId(const nsAString& origin, const nsAString& topLevelOrigin, const nsAString& gmpName, mozilla::UniquePtr<GetNodeIdCallback>&& callback) = 0; |
92 | | |
93 | | }; |
94 | | |
95 | | NS_DEFINE_STATIC_IID_ACCESSOR(mozIGeckoMediaPluginService, MOZIGECKOMEDIAPLUGINSERVICE_IID) |
96 | | |
97 | | /* Use this macro when declaring classes that implement this interface. */ |
98 | | #define NS_DECL_MOZIGECKOMEDIAPLUGINSERVICE \ |
99 | | NS_IMETHOD GetThread(nsIThread **aThread) override; \ |
100 | | NS_IMETHOD RunPluginCrashCallbacks(uint32_t pluginId, const nsACString& pluginName) override; \ |
101 | | NS_IMETHOD HasPluginForAPI(const nsACString& api, nsTArray<nsCString> * tags, bool *_retval) override; \ |
102 | | NS_IMETHOD GetGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> * tags, const nsACString& nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback) override; \ |
103 | | NS_IMETHOD GetDecryptingGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> * tags, const nsACString& nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId) override; \ |
104 | | NS_IMETHOD GetGMPVideoEncoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> * tags, const nsACString& nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback) override; \ |
105 | | NS_IMETHOD GetNodeId(const nsAString& origin, const nsAString& topLevelOrigin, const nsAString& gmpName, mozilla::UniquePtr<GetNodeIdCallback>&& callback) override; |
106 | | |
107 | | /* Use this macro when declaring the members of this interface when the |
108 | | class doesn't implement the interface. This is useful for forwarding. */ |
109 | | #define NS_DECL_NON_VIRTUAL_MOZIGECKOMEDIAPLUGINSERVICE \ |
110 | | nsresult GetThread(nsIThread **aThread); \ |
111 | | nsresult RunPluginCrashCallbacks(uint32_t pluginId, const nsACString& pluginName); \ |
112 | | nsresult HasPluginForAPI(const nsACString& api, nsTArray<nsCString> * tags, bool *_retval); \ |
113 | | nsresult GetGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> * tags, const nsACString& nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback); \ |
114 | | nsresult GetDecryptingGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> * tags, const nsACString& nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId); \ |
115 | | nsresult GetGMPVideoEncoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> * tags, const nsACString& nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback); \ |
116 | | nsresult GetNodeId(const nsAString& origin, const nsAString& topLevelOrigin, const nsAString& gmpName, mozilla::UniquePtr<GetNodeIdCallback>&& callback); |
117 | | |
118 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
119 | | #define NS_FORWARD_MOZIGECKOMEDIAPLUGINSERVICE(_to) \ |
120 | | NS_IMETHOD GetThread(nsIThread **aThread) override { return _to GetThread(aThread); } \ |
121 | | NS_IMETHOD RunPluginCrashCallbacks(uint32_t pluginId, const nsACString& pluginName) override { return _to RunPluginCrashCallbacks(pluginId, pluginName); } \ |
122 | | NS_IMETHOD HasPluginForAPI(const nsACString& api, nsTArray<nsCString> * tags, bool *_retval) override { return _to HasPluginForAPI(api, tags, _retval); } \ |
123 | | NS_IMETHOD GetGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> * tags, const nsACString& nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback) override { return _to GetGMPVideoDecoder(helper, tags, nodeId, callback); } \ |
124 | | NS_IMETHOD GetDecryptingGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> * tags, const nsACString& nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId) override { return _to GetDecryptingGMPVideoDecoder(helper, tags, nodeId, callback, decryptorId); } \ |
125 | | NS_IMETHOD GetGMPVideoEncoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> * tags, const nsACString& nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback) override { return _to GetGMPVideoEncoder(helper, tags, nodeId, callback); } \ |
126 | | NS_IMETHOD GetNodeId(const nsAString& origin, const nsAString& topLevelOrigin, const nsAString& gmpName, mozilla::UniquePtr<GetNodeIdCallback>&& callback) override { return _to GetNodeId(origin, topLevelOrigin, gmpName, callback); } |
127 | | |
128 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
129 | | #define NS_FORWARD_SAFE_MOZIGECKOMEDIAPLUGINSERVICE(_to) \ |
130 | | NS_IMETHOD GetThread(nsIThread **aThread) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThread(aThread); } \ |
131 | | NS_IMETHOD RunPluginCrashCallbacks(uint32_t pluginId, const nsACString& pluginName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RunPluginCrashCallbacks(pluginId, pluginName); } \ |
132 | | NS_IMETHOD HasPluginForAPI(const nsACString& api, nsTArray<nsCString> * tags, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasPluginForAPI(api, tags, _retval); } \ |
133 | | NS_IMETHOD GetGMPVideoDecoder(mozilla::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); } \ |
134 | | NS_IMETHOD GetDecryptingGMPVideoDecoder(mozilla::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); } \ |
135 | | NS_IMETHOD GetGMPVideoEncoder(mozilla::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); } \ |
136 | | NS_IMETHOD GetNodeId(const nsAString& origin, const nsAString& topLevelOrigin, const nsAString& gmpName, mozilla::UniquePtr<GetNodeIdCallback>&& callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNodeId(origin, topLevelOrigin, gmpName, callback); } |
137 | | |
138 | | |
139 | | #endif /* __gen_mozIGeckoMediaPluginService_h__ */ |