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

Unified Diff: media/cdm/ppapi/external_clear_key/clear_key_cdm.cc

Issue 2568463003: media: Rename MediaKeys to ContentDecryptionModule (Closed)
Patch Set: 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
Index: media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
diff --git a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
index 23b61afb7ec42ff54e6b1e60a3acfe270a5cfb32..3946ab61c7cced9c25aed19058ab2a21c8a34c62 100644
--- a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
+++ b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
@@ -145,18 +145,18 @@ static cdm::Error ConvertException(
return cdm::kUnknownError;
}
-static media::MediaKeys::SessionType ConvertSessionType(
+static media::ContentDecryptionModule::SessionType ConvertSessionType(
cdm::SessionType session_type) {
switch (session_type) {
case cdm::kTemporary:
- return media::MediaKeys::TEMPORARY_SESSION;
+ return media::ContentDecryptionModule::TEMPORARY_SESSION;
case cdm::kPersistentLicense:
- return media::MediaKeys::PERSISTENT_LICENSE_SESSION;
+ return media::ContentDecryptionModule::PERSISTENT_LICENSE_SESSION;
case cdm::kPersistentKeyRelease:
- return media::MediaKeys::PERSISTENT_RELEASE_MESSAGE_SESSION;
+ return media::ContentDecryptionModule::PERSISTENT_RELEASE_MESSAGE_SESSION;
}
NOTREACHED();
- return media::MediaKeys::TEMPORARY_SESSION;
+ return media::ContentDecryptionModule::TEMPORARY_SESSION;
}
static media::EmeInitDataType ConvertInitDataType(
@@ -351,9 +351,9 @@ void ClearKeyCdm::LoadSession(uint32_t promise_id,
std::vector<uint8_t> key_id(
kLoadableSessionKeyId,
kLoadableSessionKeyId + arraysize(kLoadableSessionKeyId) - 1);
- decryptor_->CreateSessionAndGenerateRequest(MediaKeys::TEMPORARY_SESSION,
- EmeInitDataType::WEBM, key_id,
- std::move(promise));
+ decryptor_->CreateSessionAndGenerateRequest(
+ ContentDecryptionModule::TEMPORARY_SESSION, EmeInitDataType::WEBM, key_id,
+ std::move(promise));
}
void ClearKeyCdm::UpdateSession(uint32_t promise_id,
@@ -757,9 +757,10 @@ void ClearKeyCdm::LoadLoadableSession() {
std::vector<uint8_t>(jwk_set.begin(), jwk_set.end()), std::move(promise));
}
-void ClearKeyCdm::OnSessionMessage(const std::string& session_id,
- MediaKeys::MessageType message_type,
- const std::vector<uint8_t>& message) {
+void ClearKeyCdm::OnSessionMessage(
+ const std::string& session_id,
+ ContentDecryptionModule::MessageType message_type,
+ const std::vector<uint8_t>& message) {
DVLOG(1) << "OnSessionMessage: " << message.size();
// Ignore the message when we are waiting to update the loadable session.

Powered by Google App Engine
This is Rietveld 408576698