diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-04 11:48:13 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-04 11:48:13 +0100 |
commit | d44c61bf60f82d8cc8389674fe61e6536087c273 (patch) | |
tree | 69fac2a00613f7e772a6e03d1c347bc82b08c5d6 /dom/media/gmp/GMPDecryptorProxy.h | |
parent | 99118e38e1a9f2ba3b48ed61ab7cc85610c9712f (diff) | |
download | UXP-d44c61bf60f82d8cc8389674fe61e6536087c273.tar UXP-d44c61bf60f82d8cc8389674fe61e6536087c273.tar.gz UXP-d44c61bf60f82d8cc8389674fe61e6536087c273.tar.lz UXP-d44c61bf60f82d8cc8389674fe61e6536087c273.tar.xz UXP-d44c61bf60f82d8cc8389674fe61e6536087c273.zip |
Issue #26 - Part 2b: Stub out GMPDecryptorProxy functions.
If EME isn't built, these functions would have no use and the callback
structures are unavailable. Stubbing these out will still allow the
callers to work unchanged, but in effect simply always return without
dispatching a promised task.
This fixes the dependency issue from part 2a.
Diffstat (limited to 'dom/media/gmp/GMPDecryptorProxy.h')
-rw-r--r-- | dom/media/gmp/GMPDecryptorProxy.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dom/media/gmp/GMPDecryptorProxy.h b/dom/media/gmp/GMPDecryptorProxy.h index 0ef31fd92..ed16755f8 100644 --- a/dom/media/gmp/GMPDecryptorProxy.h +++ b/dom/media/gmp/GMPDecryptorProxy.h @@ -6,7 +6,9 @@ #ifndef GMPDecryptorProxy_h_ #define GMPDecryptorProxy_h_ +#ifdef MOZ_EME #include "mozilla/DecryptorProxyCallback.h" +#endif #include "GMPCallbackBase.h" #include "gmp-decryption.h" #include "nsString.h" @@ -15,8 +17,13 @@ namespace mozilla { class CryptoSample; } // namespace mozilla +#ifdef MOZ_EME class GMPDecryptorProxyCallback : public DecryptorProxyCallback, public GMPCallbackBase { +#else +class GMPDecryptorProxyCallback : public GMPCallbackBase { +#endif + public: virtual ~GMPDecryptorProxyCallback() {} }; |