mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 02:47:31 +09:00
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.
This commit is contained in:
parent
429f908af1
commit
995d48aa96
2 changed files with 35 additions and 1 deletions
|
|
@ -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() {}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue