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

Unified Diff: content/renderer/pepper/content_decryptor_delegate.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 | « content/renderer/pepper/content_decryptor_delegate.h ('k') | media/base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/content_decryptor_delegate.cc
diff --git a/content/renderer/pepper/content_decryptor_delegate.cc b/content/renderer/pepper/content_decryptor_delegate.cc
index 549af1d251fc27dd35906883895d59b760af4130..db8fb6b9e251d06101bf22f87689a94b576d7fc3 100644
--- a/content/renderer/pepper/content_decryptor_delegate.cc
+++ b/content/renderer/pepper/content_decryptor_delegate.cc
@@ -38,7 +38,7 @@
using media::CdmPromise;
using media::Decryptor;
-using media::MediaKeys;
+using media::ContentDecryptionModule;
using media::NewSessionCdmPromise;
using media::SimpleCdmPromise;
using ppapi::ArrayBufferVar;
@@ -273,13 +273,13 @@ media::SampleFormat PpDecryptedSampleFormatToMediaSampleFormat(
}
PP_SessionType MediaSessionTypeToPpSessionType(
- MediaKeys::SessionType session_type) {
+ ContentDecryptionModule::SessionType session_type) {
switch (session_type) {
- case MediaKeys::TEMPORARY_SESSION:
+ case ContentDecryptionModule::TEMPORARY_SESSION:
return PP_SESSIONTYPE_TEMPORARY;
- case MediaKeys::PERSISTENT_LICENSE_SESSION:
+ case ContentDecryptionModule::PERSISTENT_LICENSE_SESSION:
return PP_SESSIONTYPE_PERSISTENT_LICENSE;
- case MediaKeys::PERSISTENT_RELEASE_MESSAGE_SESSION:
+ case ContentDecryptionModule::PERSISTENT_RELEASE_MESSAGE_SESSION:
return PP_SESSIONTYPE_PERSISTENT_RELEASE;
default:
NOTREACHED();
@@ -349,18 +349,18 @@ media::CdmKeyInformation::KeyStatus PpCdmKeyStatusToCdmKeyInformationKeyStatus(
}
}
-MediaKeys::MessageType PpCdmMessageTypeToMediaMessageType(
+ContentDecryptionModule::MessageType PpCdmMessageTypeToMediaMessageType(
PP_CdmMessageType message_type) {
switch (message_type) {
case PP_CDMMESSAGETYPE_LICENSE_REQUEST:
- return MediaKeys::LICENSE_REQUEST;
+ return ContentDecryptionModule::LICENSE_REQUEST;
case PP_CDMMESSAGETYPE_LICENSE_RENEWAL:
- return MediaKeys::LICENSE_RENEWAL;
+ return ContentDecryptionModule::LICENSE_RENEWAL;
case PP_CDMMESSAGETYPE_LICENSE_RELEASE:
- return MediaKeys::LICENSE_RELEASE;
+ return ContentDecryptionModule::LICENSE_RELEASE;
default:
NOTREACHED();
- return MediaKeys::LICENSE_REQUEST;
+ return ContentDecryptionModule::LICENSE_REQUEST;
}
}
@@ -444,7 +444,7 @@ void ContentDecryptorDelegate::SetServerCertificate(
}
void ContentDecryptorDelegate::CreateSessionAndGenerateRequest(
- MediaKeys::SessionType session_type,
+ ContentDecryptionModule::SessionType session_type,
media::EmeInitDataType init_data_type,
const std::vector<uint8_t>& init_data,
std::unique_ptr<NewSessionCdmPromise> promise) {
@@ -458,7 +458,7 @@ void ContentDecryptorDelegate::CreateSessionAndGenerateRequest(
}
void ContentDecryptorDelegate::LoadSession(
- media::MediaKeys::SessionType session_type,
+ ContentDecryptionModule::SessionType session_type,
const std::string& session_id,
std::unique_ptr<NewSessionCdmPromise> promise) {
uint32_t promise_id = cdm_promise_adapter_.SavePromise(std::move(promise));
« no previous file with comments | « content/renderer/pepper/content_decryptor_delegate.h ('k') | media/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698