diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-23 10:25:15 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-23 10:29:19 -0500 |
commit | 5513afc0d22151a69dbee6abe6f7655892f4b59e (patch) | |
tree | 70dcda341ed73246a981e2c13a680850824f0f50 /dom/media/eme/CDMCaps.h | |
parent | 38e595cb2d37cb30b094e9e79c9a73ef16baab1a (diff) | |
download | uxp-eme.tar.gz |
Issue #26 - Undo Bug 1290830 - Make Decryptor APIs reusable by not only GMP framework - Part 1: Reverse patch applicable hunks (Auto)eme
Diffstat (limited to 'dom/media/eme/CDMCaps.h')
-rw-r--r-- | dom/media/eme/CDMCaps.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/dom/media/eme/CDMCaps.h b/dom/media/eme/CDMCaps.h index 7749bdc675..87fd2fec35 100644 --- a/dom/media/eme/CDMCaps.h +++ b/dom/media/eme/CDMCaps.h @@ -7,16 +7,13 @@ #ifndef CDMCaps_h_ #define CDMCaps_h_ -#include "gmp-decryption.h" -#include "nsIThread.h" -#include "nsTArray.h" #include "nsString.h" -#include "SamplesWaitingForKey.h" - #include "mozilla/Monitor.h" +#include "nsIThread.h" +#include "nsTArray.h" #include "mozilla/Attributes.h" -#include "mozilla/dom/MediaKeyStatusMapBinding.h" // For MediaKeyStatus -#include "mozilla/dom/BindingDeclarations.h" // For Optional +#include "SamplesWaitingForKey.h" +#include "gmp-decryption.h" namespace mozilla { @@ -30,7 +27,7 @@ public: struct KeyStatus { KeyStatus(const CencKeyId& aId, const nsString& aSessionId, - dom::MediaKeyStatus aStatus) + GMPMediaKeyStatus aStatus) : mId(aId) , mSessionId(aSessionId) , mStatus(aStatus) @@ -47,7 +44,7 @@ public: CencKeyId mId; nsString mSessionId; - dom::MediaKeyStatus mStatus; + GMPMediaKeyStatus mStatus; }; // Locks the CDMCaps. It must be locked to access its shared state. @@ -61,9 +58,7 @@ public: // Returns true if key status changed, // i.e. the key status changed from usable to expired. - bool SetKeyStatus(const CencKeyId& aKeyId, - const nsString& aSessionId, - const dom::Optional<dom::MediaKeyStatus>& aStatus); + bool SetKeyStatus(const CencKeyId& aKeyId, const nsString& aSessionId, GMPMediaKeyStatus aStatus); void GetKeyStatusesForSession(const nsAString& aSessionId, nsTArray<KeyStatus>& aOutKeyStatuses); |