Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: media/cdm/ppapi/cdm_adapter.h

Issue 1023003002: Add support for cdm::ContentDecryptionModule_8, remove CDM_6 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new bug # Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | media/cdm/ppapi/cdm_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/ppapi/cdm_adapter.h
diff --git a/media/cdm/ppapi/cdm_adapter.h b/media/cdm/ppapi/cdm_adapter.h
index 9d0dd110a399f9ec3cb41cabcb68c233dbde4279..6c550e1de01eade1bbca1ff45a6e74fe69646857 100644
--- a/media/cdm/ppapi/cdm_adapter.h
+++ b/media/cdm/ppapi/cdm_adapter.h
@@ -37,8 +37,8 @@ void* GetCdmHost(int host_interface_version, void* user_data);
// Content Decryption Module (CDM).
class CdmAdapter : public pp::Instance,
public pp::ContentDecryptor_Private,
- public cdm::Host_6,
- public cdm::Host_7 {
+ public cdm::Host_7,
+ public cdm::Host_8 {
public:
CdmAdapter(PP_Instance instance, pp::Module* module);
virtual ~CdmAdapter();
@@ -84,7 +84,7 @@ class CdmAdapter : public pp::Instance,
pp::Buffer_Dev encrypted_buffer,
const PP_EncryptedBlockInfo& encrypted_block_info) override;
- // cdm::Host_6 and cdm::Host_7 implementation.
+ // cdm::Host_7 and cdm::Host_8 implementation.
cdm::Buffer* Allocate(uint32_t capacity) override;
void SetTimer(int64_t delay_ms, void* context) override;
cdm::Time GetCurrentWallTime() override;
@@ -97,22 +97,6 @@ class CdmAdapter : public pp::Instance,
uint32_t system_code,
const char* error_message,
uint32_t error_message_size) override;
- void OnExpirationChange(const char* session_id,
- uint32_t session_id_size,
- cdm::Time new_expiry_time) override;
- void OnSessionClosed(const char* session_id,
- uint32_t session_id_size) override;
- void SendPlatformChallenge(const char* service_id,
- uint32_t service_id_size,
- const char* challenge,
- uint32_t challenge_size) override;
- void EnableOutputProtection(uint32_t desired_protection_mask) override;
- void QueryOutputProtectionStatus() override;
- void OnDeferredInitializationDone(cdm::StreamType stream_type,
- cdm::Status decoder_status) override;
- cdm::FileIO* CreateFileIO(cdm::FileIOClient* client) override;
-
- // cdm::Host_7 implementation.
void OnSessionMessage(const char* session_id,
uint32_t session_id_size,
cdm::MessageType message_type,
@@ -125,32 +109,26 @@ class CdmAdapter : public pp::Instance,
bool has_additional_usable_key,
const cdm::KeyInformation* keys_info,
uint32_t keys_info_count) override;
+ void OnExpirationChange(const char* session_id,
+ uint32_t session_id_size,
+ cdm::Time new_expiry_time) override;
+ void OnSessionClosed(const char* session_id,
+ uint32_t session_id_size) override;
void OnLegacySessionError(const char* session_id,
uint32_t session_id_size,
cdm::Error error,
uint32_t system_code,
const char* error_message,
uint32_t error_message_size) override;
-
- // cdm::Host_6 implementation.
- void OnResolveKeyIdsPromise(uint32_t promise_id,
- const cdm::BinaryData* usable_key_ids,
- uint32_t usable_key_ids_size) override;
- void OnSessionMessage(const char* session_id,
- uint32_t session_id_size,
- const char* message,
- uint32_t message_size,
- const char* destination_url,
- uint32_t destination_url_size) override;
- void OnSessionUsableKeysChange(const char* session_id,
- uint32_t session_id_size,
- bool has_additional_usable_key) override;
- void OnSessionError(const char* session_id,
- uint32_t session_id_size,
- cdm::Error error,
- uint32_t system_code,
- const char* error_message,
- uint32_t error_message_size) override;
+ void SendPlatformChallenge(const char* service_id,
+ uint32_t service_id_size,
+ const char* challenge,
+ uint32_t challenge_size) override;
+ void EnableOutputProtection(uint32_t desired_protection_mask) override;
+ void QueryOutputProtectionStatus() override;
+ void OnDeferredInitializationDone(cdm::StreamType stream_type,
+ cdm::Status decoder_status) override;
+ cdm::FileIO* CreateFileIO(cdm::FileIOClient* client) override;
private:
// These are reported to UMA server. Do not change the existing values!
« no previous file with comments | « DEPS ('k') | media/cdm/ppapi/cdm_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698