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

Unified Diff: media/cdm/cdm_adapter.cc

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 | « media/cdm/cdm_adapter.h ('k') | media/cdm/cdm_adapter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/cdm_adapter.cc
diff --git a/media/cdm/cdm_adapter.cc b/media/cdm/cdm_adapter.cc
index 57207a09eb6c70dbc6cb280cb06249726c90800b..d2a977f9fcffcb7c0c40b7ea9ee3543b1623f3bf 100644
--- a/media/cdm/cdm_adapter.cc
+++ b/media/cdm/cdm_adapter.cc
@@ -35,13 +35,14 @@ namespace media {
namespace {
-cdm::SessionType ToCdmSessionType(MediaKeys::SessionType session_type) {
+cdm::SessionType ToCdmSessionType(
+ ContentDecryptionModule::SessionType session_type) {
switch (session_type) {
- case MediaKeys::TEMPORARY_SESSION:
+ case ContentDecryptionModule::TEMPORARY_SESSION:
return cdm::kTemporary;
- case MediaKeys::PERSISTENT_LICENSE_SESSION:
+ case ContentDecryptionModule::PERSISTENT_LICENSE_SESSION:
return cdm::kPersistentLicense;
- case MediaKeys::PERSISTENT_RELEASE_MESSAGE_SESSION:
+ case ContentDecryptionModule::PERSISTENT_RELEASE_MESSAGE_SESSION:
return cdm::kPersistentKeyRelease;
}
@@ -87,18 +88,19 @@ CdmPromise::Exception ToMediaExceptionType(cdm::Error error) {
return CdmPromise::UNKNOWN_ERROR;
}
-MediaKeys::MessageType ToMediaMessageType(cdm::MessageType message_type) {
+ContentDecryptionModule::MessageType ToMediaMessageType(
+ cdm::MessageType message_type) {
switch (message_type) {
case cdm::kLicenseRequest:
- return MediaKeys::LICENSE_REQUEST;
+ return ContentDecryptionModule::LICENSE_REQUEST;
case cdm::kLicenseRenewal:
- return MediaKeys::LICENSE_RENEWAL;
+ return ContentDecryptionModule::LICENSE_RENEWAL;
case cdm::kLicenseRelease:
- return MediaKeys::LICENSE_RELEASE;
+ return ContentDecryptionModule::LICENSE_RELEASE;
}
NOTREACHED() << "Unexpected cdm::MessageType " << message_type;
- return MediaKeys::LICENSE_REQUEST;
+ return ContentDecryptionModule::LICENSE_REQUEST;
}
CdmKeyInformation::KeyStatus ToCdmKeyInformationKeyStatus(
« no previous file with comments | « media/cdm/cdm_adapter.h ('k') | media/cdm/cdm_adapter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698