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

Unified Diff: chromecast/media/cdm/cast_cdm.h

Issue 2568463003: media: Rename MediaKeys to ContentDecryptionModule (Closed)
Patch Set: comments addressed Created 4 years 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 | « no previous file | chromecast/media/cdm/cast_cdm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cdm/cast_cdm.h
diff --git a/chromecast/media/cdm/cast_cdm.h b/chromecast/media/cdm/cast_cdm.h
index b5de75e49f0161ad5abad828343bb530c45baf56..bf8da0a32c3d565d24754c4393358c077ad70533 100644
--- a/chromecast/media/cdm/cast_cdm.h
+++ b/chromecast/media/cdm/cast_cdm.h
@@ -20,7 +20,7 @@
#include "chromecast/media/cdm/cast_cdm_context.h"
#include "chromecast/public/media/cast_key_status.h"
#include "media/base/cdm_context.h"
-#include "media/base/media_keys.h"
+#include "media/base/content_decryption_module.h"
#include "media/base/player_tracker.h"
#include "media/cdm/json_web_key.h"
@@ -32,14 +32,14 @@ namespace chromecast {
namespace media {
class DecryptContextImpl;
-// CastCdm is an extension of MediaKeys that provides common
+// CastCdm is an extension of ContentDecryptionModule that provides common
// functionality across CDM implementations.
// All these additional functions are synchronous so:
// - either both the CDM and the media pipeline must be running on the same
// thread,
// - or CastCdm implementations must use some locks.
//
-class CastCdm : public ::media::MediaKeys {
+class CastCdm : public ::media::ContentDecryptionModule {
public:
explicit CastCdm(MediaResourceTracker* media_resource_tracker);
@@ -64,15 +64,16 @@ class CastCdm : public ::media::MediaKeys {
CastKeyStatus key_status,
uint32_t system_code) = 0;
- // ::media::MediaKeys implementation.
+ // ::media::ContentDecryptionModule implementation.
::media::CdmContext* GetCdmContext() override;
protected:
~CastCdm() override;
- void OnSessionMessage(const std::string& session_id,
- const std::vector<uint8_t>& message,
- ::media::MediaKeys::MessageType message_type);
+ void OnSessionMessage(
+ const std::string& session_id,
+ const std::vector<uint8_t>& message,
+ ::media::ContentDecryptionModule::MessageType message_type);
void OnSessionClosed(const std::string& session_id);
void OnSessionKeysChange(const std::string& session_id,
bool newly_usable_keys,
« no previous file with comments | « no previous file | chromecast/media/cdm/cast_cdm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698