LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - mozIGeckoMediaPluginService.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 7 14.3 %
Date: 2017-07-14 16:53:18 Functions: 1 13 7.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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             : /* For IDL files that don't want to include root IDL files. */
      18             : #ifndef NS_NO_VTABLE
      19             : #define NS_NO_VTABLE
      20             : #endif
      21             : #include "mozilla/UniquePtr.h"
      22             : #include "nsTArray.h"
      23             : #include "nsStringGlue.h"
      24             : class GMPDecryptorProxy;
      25             : class GMPVideoDecoderProxy;
      26             : class GMPVideoEncoderProxy;
      27             : class GMPVideoHost;
      28             : namespace mozilla {
      29             : class GMPCrashHelper;
      30             : }
      31             : template<class T>
      32             : class GMPGetterCallback
      33             : {
      34             : public:
      35           0 :   GMPGetterCallback() { MOZ_COUNT_CTOR(GMPGetterCallback<T>); }
      36           0 :   virtual ~GMPGetterCallback() { MOZ_COUNT_DTOR(GMPGetterCallback<T>); }
      37             :   virtual void Done(T*) = 0;
      38             : };
      39             : template<class T>
      40             : class GMPVideoGetterCallback
      41             : {
      42             : public:
      43           0 :   GMPVideoGetterCallback() { MOZ_COUNT_CTOR(GMPVideoGetterCallback<T>); }
      44           0 :   virtual ~GMPVideoGetterCallback() { MOZ_COUNT_DTOR(GMPVideoGetterCallback<T>); }
      45             :   virtual void Done(T*, GMPVideoHost*) = 0;
      46             : };
      47             : typedef GMPGetterCallback<GMPDecryptorProxy> GetGMPDecryptorCallback;
      48             : typedef GMPVideoGetterCallback<GMPVideoDecoderProxy> GetGMPVideoDecoderCallback;
      49             : typedef GMPVideoGetterCallback<GMPVideoEncoderProxy> GetGMPVideoEncoderCallback;
      50             : class GetNodeIdCallback
      51             : {
      52             : public:
      53           0 :   GetNodeIdCallback() { MOZ_COUNT_CTOR(GetNodeIdCallback); }
      54           0 :   virtual ~GetNodeIdCallback() { MOZ_COUNT_DTOR(GetNodeIdCallback); }
      55             :   virtual void Done(nsresult aResult, const nsACString& aNodeId) = 0;
      56             : };
      57             : 
      58             : /* starting interface:    mozIGeckoMediaPluginService */
      59             : #define MOZIGECKOMEDIAPLUGINSERVICE_IID_STR "44d362ae-937a-4803-bee6-f2512a0149d1"
      60             : 
      61             : #define MOZIGECKOMEDIAPLUGINSERVICE_IID \
      62             :   {0x44d362ae, 0x937a, 0x4803, \
      63             :     { 0xbe, 0xe6, 0xf2, 0x51, 0x2a, 0x01, 0x49, 0xd1 }}
      64             : 
      65           1 : class NS_NO_VTABLE mozIGeckoMediaPluginService : public nsISupports {
      66             :  public:
      67             : 
      68             :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZIGECKOMEDIAPLUGINSERVICE_IID)
      69             : 
      70             :   /* readonly attribute nsIThread thread; */
      71             :   NS_IMETHOD GetThread(nsIThread * *aThread) = 0;
      72             : 
      73             :   /* void RunPluginCrashCallbacks (in unsigned long pluginId, in ACString pluginName); */
      74             :   NS_IMETHOD RunPluginCrashCallbacks(uint32_t pluginId, const nsACString & pluginName) = 0;
      75             : 
      76             :   /* [noscript] boolean hasPluginForAPI (in ACString api, in TagArray tags); */
      77             :   NS_IMETHOD HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval) = 0;
      78             : 
      79             :   /* [noscript] void getGMPVideoDecoder (in GMPCrashHelperPtr helper, in TagArray tags, [optional] in ACString nodeId, in GetGMPVideoDecoderCallback callback); */
      80             :   NS_IMETHOD GetGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback) = 0;
      81             : 
      82             :   /* [noscript] void getDecryptingGMPVideoDecoder (in GMPCrashHelperPtr helper, in TagArray tags, in ACString nodeId, in GetGMPVideoDecoderCallback callback, in uint32_t decryptorId); */
      83             :   NS_IMETHOD GetDecryptingGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId) = 0;
      84             : 
      85             :   /* [noscript] void getGMPVideoEncoder (in GMPCrashHelperPtr helper, in TagArray tags, [optional] in ACString nodeId, in GetGMPVideoEncoderCallback callback); */
      86             :   NS_IMETHOD GetGMPVideoEncoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback) = 0;
      87             : 
      88             :   /* [noscript] void getGMPDecryptor (in GMPCrashHelperPtr helper, in TagArray tags, in ACString nodeId, in GetGMPDecryptorCallback callback); */
      89             :   NS_IMETHOD GetGMPDecryptor(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPDecryptorCallback>&& callback) = 0;
      90             : 
      91             :   /* [noscript] void getNodeId (in AString origin, in AString topLevelOrigin, in AString gmpName, in GetNodeIdCallback callback); */
      92             :   NS_IMETHOD GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, const nsAString & gmpName, mozilla::UniquePtr<GetNodeIdCallback>&& callback) = 0;
      93             : 
      94             : };
      95             : 
      96             :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIGeckoMediaPluginService, MOZIGECKOMEDIAPLUGINSERVICE_IID)
      97             : 
      98             : /* Use this macro when declaring classes that implement this interface. */
      99             : #define NS_DECL_MOZIGECKOMEDIAPLUGINSERVICE \
     100             :   NS_IMETHOD GetThread(nsIThread * *aThread) override; \
     101             :   NS_IMETHOD RunPluginCrashCallbacks(uint32_t pluginId, const nsACString & pluginName) override; \
     102             :   NS_IMETHOD HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval) override; \
     103             :   NS_IMETHOD GetGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback) override; \
     104             :   NS_IMETHOD GetDecryptingGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId) override; \
     105             :   NS_IMETHOD GetGMPVideoEncoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback) override; \
     106             :   NS_IMETHOD GetGMPDecryptor(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPDecryptorCallback>&& callback) override; \
     107             :   NS_IMETHOD GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, const nsAString & gmpName, mozilla::UniquePtr<GetNodeIdCallback>&& callback) override; 
     108             : 
     109             : /* Use this macro when declaring the members of this interface when the
     110             :    class doesn't implement the interface. This is useful for forwarding. */
     111             : #define NS_DECL_NON_VIRTUAL_MOZIGECKOMEDIAPLUGINSERVICE \
     112             :   nsresult GetThread(nsIThread * *aThread); \
     113             :   nsresult RunPluginCrashCallbacks(uint32_t pluginId, const nsACString & pluginName); \
     114             :   nsresult HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval); \
     115             :   nsresult GetGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback); \
     116             :   nsresult GetDecryptingGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId); \
     117             :   nsresult GetGMPVideoEncoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback); \
     118             :   nsresult GetGMPDecryptor(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPDecryptorCallback>&& callback); \
     119             :   nsresult GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, const nsAString & gmpName, mozilla::UniquePtr<GetNodeIdCallback>&& callback); 
     120             : 
     121             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     122             : #define NS_FORWARD_MOZIGECKOMEDIAPLUGINSERVICE(_to) \
     123             :   NS_IMETHOD GetThread(nsIThread * *aThread) override { return _to GetThread(aThread); } \
     124             :   NS_IMETHOD RunPluginCrashCallbacks(uint32_t pluginId, const nsACString & pluginName) override { return _to RunPluginCrashCallbacks(pluginId, pluginName); } \
     125             :   NS_IMETHOD HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval) override { return _to HasPluginForAPI(api, tags, _retval); } \
     126             :   NS_IMETHOD GetGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback) override { return _to GetGMPVideoDecoder(helper, tags, nodeId, callback); } \
     127             :   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); } \
     128             :   NS_IMETHOD GetGMPVideoEncoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback) override { return _to GetGMPVideoEncoder(helper, tags, nodeId, callback); } \
     129             :   NS_IMETHOD GetGMPDecryptor(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPDecryptorCallback>&& callback) override { return _to GetGMPDecryptor(helper, tags, nodeId, callback); } \
     130             :   NS_IMETHOD GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, const nsAString & gmpName, mozilla::UniquePtr<GetNodeIdCallback>&& callback) override { return _to GetNodeId(origin, topLevelOrigin, gmpName, callback); } 
     131             : 
     132             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     133             : #define NS_FORWARD_SAFE_MOZIGECKOMEDIAPLUGINSERVICE(_to) \
     134             :   NS_IMETHOD GetThread(nsIThread * *aThread) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThread(aThread); } \
     135             :   NS_IMETHOD RunPluginCrashCallbacks(uint32_t pluginId, const nsACString & pluginName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RunPluginCrashCallbacks(pluginId, pluginName); } \
     136             :   NS_IMETHOD HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasPluginForAPI(api, tags, _retval); } \
     137             :   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); } \
     138             :   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); } \
     139             :   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); } \
     140             :   NS_IMETHOD GetGMPDecryptor(mozilla::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); } \
     141             :   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); } 
     142             : 
     143             : #if 0
     144             : /* Use the code below as a template for the implementation class for this interface. */
     145             : 
     146             : /* Header file */
     147             : class _MYCLASS_ : public mozIGeckoMediaPluginService
     148             : {
     149             : public:
     150             :   NS_DECL_ISUPPORTS
     151             :   NS_DECL_MOZIGECKOMEDIAPLUGINSERVICE
     152             : 
     153             :   _MYCLASS_();
     154             : 
     155             : private:
     156             :   ~_MYCLASS_();
     157             : 
     158             : protected:
     159             :   /* additional members */
     160             : };
     161             : 
     162             : /* Implementation file */
     163             : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIGeckoMediaPluginService)
     164             : 
     165             : _MYCLASS_::_MYCLASS_()
     166             : {
     167             :   /* member initializers and constructor code */
     168             : }
     169             : 
     170             : _MYCLASS_::~_MYCLASS_()
     171             : {
     172             :   /* destructor code */
     173             : }
     174             : 
     175             : /* readonly attribute nsIThread thread; */
     176             : NS_IMETHODIMP _MYCLASS_::GetThread(nsIThread * *aThread)
     177             : {
     178             :     return NS_ERROR_NOT_IMPLEMENTED;
     179             : }
     180             : 
     181             : /* void RunPluginCrashCallbacks (in unsigned long pluginId, in ACString pluginName); */
     182             : NS_IMETHODIMP _MYCLASS_::RunPluginCrashCallbacks(uint32_t pluginId, const nsACString & pluginName)
     183             : {
     184             :     return NS_ERROR_NOT_IMPLEMENTED;
     185             : }
     186             : 
     187             : /* [noscript] boolean hasPluginForAPI (in ACString api, in TagArray tags); */
     188             : NS_IMETHODIMP _MYCLASS_::HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval)
     189             : {
     190             :     return NS_ERROR_NOT_IMPLEMENTED;
     191             : }
     192             : 
     193             : /* [noscript] void getGMPVideoDecoder (in GMPCrashHelperPtr helper, in TagArray tags, [optional] in ACString nodeId, in GetGMPVideoDecoderCallback callback); */
     194             : NS_IMETHODIMP _MYCLASS_::GetGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback)
     195             : {
     196             :     return NS_ERROR_NOT_IMPLEMENTED;
     197             : }
     198             : 
     199             : /* [noscript] void getDecryptingGMPVideoDecoder (in GMPCrashHelperPtr helper, in TagArray tags, in ACString nodeId, in GetGMPVideoDecoderCallback callback, in uint32_t decryptorId); */
     200             : NS_IMETHODIMP _MYCLASS_::GetDecryptingGMPVideoDecoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoDecoderCallback>&& callback, uint32_t decryptorId)
     201             : {
     202             :     return NS_ERROR_NOT_IMPLEMENTED;
     203             : }
     204             : 
     205             : /* [noscript] void getGMPVideoEncoder (in GMPCrashHelperPtr helper, in TagArray tags, [optional] in ACString nodeId, in GetGMPVideoEncoderCallback callback); */
     206             : NS_IMETHODIMP _MYCLASS_::GetGMPVideoEncoder(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPVideoEncoderCallback>&& callback)
     207             : {
     208             :     return NS_ERROR_NOT_IMPLEMENTED;
     209             : }
     210             : 
     211             : /* [noscript] void getGMPDecryptor (in GMPCrashHelperPtr helper, in TagArray tags, in ACString nodeId, in GetGMPDecryptorCallback callback); */
     212             : NS_IMETHODIMP _MYCLASS_::GetGMPDecryptor(mozilla::GMPCrashHelper* helper, nsTArray<nsCString> *tags, const nsACString & nodeId, mozilla::UniquePtr<GetGMPDecryptorCallback>&& callback)
     213             : {
     214             :     return NS_ERROR_NOT_IMPLEMENTED;
     215             : }
     216             : 
     217             : /* [noscript] void getNodeId (in AString origin, in AString topLevelOrigin, in AString gmpName, in GetNodeIdCallback callback); */
     218             : NS_IMETHODIMP _MYCLASS_::GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, const nsAString & gmpName, mozilla::UniquePtr<GetNodeIdCallback>&& callback)
     219             : {
     220             :     return NS_ERROR_NOT_IMPLEMENTED;
     221             : }
     222             : 
     223             : /* End of implementation class template. */
     224             : #endif
     225             : 
     226             : 
     227             : #endif /* __gen_mozIGeckoMediaPluginService_h__ */

Generated by: LCOV version 1.13