diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-18 08:12:19 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-18 08:12:19 +0100 |
commit | c7c3c8600febd196152e5b23f687cbe8aa493627 (patch) | |
tree | a0a4cdee6d626fb3a983daf113f3b171c9143929 /dom/media/gmp/widevine-adapter/WidevineUtils.h | |
parent | d791dfed61bbc963351e5965657a3b13d4e6dceb (diff) | |
parent | e9261d329b443e588de408ff85917ac29d4ab62d (diff) | |
download | UXP-c7c3c8600febd196152e5b23f687cbe8aa493627.tar UXP-c7c3c8600febd196152e5b23f687cbe8aa493627.tar.gz UXP-c7c3c8600febd196152e5b23f687cbe8aa493627.tar.lz UXP-c7c3c8600febd196152e5b23f687cbe8aa493627.tar.xz UXP-c7c3c8600febd196152e5b23f687cbe8aa493627.zip |
Merge branch 'cdm-work'
Diffstat (limited to 'dom/media/gmp/widevine-adapter/WidevineUtils.h')
-rw-r--r-- | dom/media/gmp/widevine-adapter/WidevineUtils.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dom/media/gmp/widevine-adapter/WidevineUtils.h b/dom/media/gmp/widevine-adapter/WidevineUtils.h index 57c004a87..2f6137fe3 100644 --- a/dom/media/gmp/widevine-adapter/WidevineUtils.h +++ b/dom/media/gmp/widevine-adapter/WidevineUtils.h @@ -48,12 +48,16 @@ class CDMWrapper { public: NS_INLINE_DECL_THREADSAFE_REFCOUNTING(CDMWrapper) - explicit CDMWrapper(cdm::ContentDecryptionModule_8* aCDM, + explicit CDMWrapper(cdm::ContentDecryptionModule_9* aCDM, WidevineDecryptor* aDecryptor); - cdm::ContentDecryptionModule_8* GetCDM() const { return mCDM; } + cdm::ContentDecryptionModule_9* GetCDM() const { return mCDM; } + void OnStorageId(uint32_t aVersion, const uint8_t* aStorageId, + uint32_t aStorageIdSize) { + mCDM->OnStorageId(aVersion, aStorageId, aStorageIdSize); + } private: ~CDMWrapper(); - cdm::ContentDecryptionModule_8* mCDM; + cdm::ContentDecryptionModule_9* mCDM; RefPtr<WidevineDecryptor> mDecryptor; }; |