summaryrefslogtreecommitdiffstats
path: root/dom/media/gmp/ChromiumCDMProxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/gmp/ChromiumCDMProxy.h')
-rw-r--r--dom/media/gmp/ChromiumCDMProxy.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/dom/media/gmp/ChromiumCDMProxy.h b/dom/media/gmp/ChromiumCDMProxy.h
index 13fa28b..9200969 100644
--- a/dom/media/gmp/ChromiumCDMProxy.h
+++ b/dom/media/gmp/ChromiumCDMProxy.h
@@ -7,8 +7,8 @@
#ifndef ChromiumCDMProxy_h_
#define ChromiumCDMProxy_h_
-#include "mozilla/CDMProxy.h"
#include "mozilla/AbstractThread.h"
+#include "mozilla/CDMProxy.h"
#include "ChromiumCDMParent.h"
namespace mozilla {
@@ -23,7 +23,7 @@ class ChromiumCDMProxy : public CDMProxy {
ChromiumCDMProxy(dom::MediaKeys* aKeys, const nsAString& aKeySystem,
GMPCrashHelper* aCrashHelper,
bool aAllowDistinctiveIdentifier, bool aAllowPersistentState,
- nsIEventTarget* aMainThread);
+ nsISerialEventTarget* aMainThread);
void Init(PromiseId aPromiseId, const nsAString& aOrigin,
const nsAString& aTopLevelOrigin,
@@ -108,9 +108,14 @@ class ChromiumCDMProxy : public CDMProxy {
private:
void OnCDMCreated(uint32_t aPromiseId);
+ void ShutdownCDMIfExists();
~ChromiumCDMProxy();
+ // True if Shutdown() has been called. Should only be read and written on
+ // main thread.
+ bool mIsShutdown = false;
+
GMPCrashHelper* mCrashHelper;
Mutex mCDMMutex;