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

Unified Diff: content/browser/media/android/browser_media_player_manager.cc

Issue 181903003: Reland r253665 "Rename MediaKeys*Msg to Cdm*Msg." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
Index: content/browser/media/android/browser_media_player_manager.cc
diff --git a/content/browser/media/android/browser_media_player_manager.cc b/content/browser/media/android/browser_media_player_manager.cc
index e508d4686f360d8f166806927885f7a40346b100..7c6ca150a4d4c07a89bbaedbf8a8aad0d0bff2ed 100644
--- a/content/browser/media/android/browser_media_player_manager.cc
+++ b/content/browser/media/android/browser_media_player_manager.cc
@@ -139,12 +139,11 @@ bool BrowserMediaPlayerManager::OnMessageReceived(const IPC::Message& msg) {
IPC_MESSAGE_HANDLER(MediaPlayerHostMsg_DestroyMediaPlayer, OnDestroyPlayer)
IPC_MESSAGE_HANDLER(MediaPlayerHostMsg_DestroyAllMediaPlayers,
DestroyAllMediaPlayers)
- IPC_MESSAGE_HANDLER(MediaKeysHostMsg_InitializeCDM,
- OnInitializeCDM)
- IPC_MESSAGE_HANDLER(MediaKeysHostMsg_CreateSession, OnCreateSession)
- IPC_MESSAGE_HANDLER(MediaKeysHostMsg_UpdateSession, OnUpdateSession)
- IPC_MESSAGE_HANDLER(MediaKeysHostMsg_ReleaseSession, OnReleaseSession)
- IPC_MESSAGE_HANDLER(MediaKeysHostMsg_DestroyCdm, OnDestroyCdm)
+ IPC_MESSAGE_HANDLER(CdmHostMsg_InitializeCDM, OnInitializeCDM)
+ IPC_MESSAGE_HANDLER(CdmHostMsg_CreateSession, OnCreateSession)
+ IPC_MESSAGE_HANDLER(CdmHostMsg_UpdateSession, OnUpdateSession)
+ IPC_MESSAGE_HANDLER(CdmHostMsg_ReleaseSession, OnReleaseSession)
+ IPC_MESSAGE_HANDLER(CdmHostMsg_DestroyCdm, OnDestroyCdm)
#if defined(VIDEO_HOLE)
IPC_MESSAGE_HANDLER(MediaPlayerHostMsg_NotifyExternalSurface,
OnNotifyExternalSurface)
@@ -416,7 +415,7 @@ void BrowserMediaPlayerManager::OnSessionCreated(
int media_keys_id,
uint32 session_id,
const std::string& web_session_id) {
- Send(new MediaKeysMsg_SessionCreated(
+ Send(new CdmMsg_SessionCreated(
routing_id(), media_keys_id, session_id, web_session_id));
}
@@ -425,18 +424,18 @@ void BrowserMediaPlayerManager::OnSessionMessage(
uint32 session_id,
const std::vector<uint8>& message,
const GURL& destination_url) {
- Send(new MediaKeysMsg_SessionMessage(
+ Send(new CdmMsg_SessionMessage(
routing_id(), media_keys_id, session_id, message, destination_url));
}
void BrowserMediaPlayerManager::OnSessionReady(int media_keys_id,
uint32 session_id) {
- Send(new MediaKeysMsg_SessionReady(routing_id(), media_keys_id, session_id));
+ Send(new CdmMsg_SessionReady(routing_id(), media_keys_id, session_id));
}
void BrowserMediaPlayerManager::OnSessionClosed(int media_keys_id,
uint32 session_id) {
- Send(new MediaKeysMsg_SessionClosed(routing_id(), media_keys_id, session_id));
+ Send(new CdmMsg_SessionClosed(routing_id(), media_keys_id, session_id));
}
void BrowserMediaPlayerManager::OnSessionError(
@@ -444,7 +443,7 @@ void BrowserMediaPlayerManager::OnSessionError(
uint32 session_id,
media::MediaKeys::KeyError error_code,
int system_code) {
- Send(new MediaKeysMsg_SessionError(
+ Send(new CdmMsg_SessionError(
routing_id(), media_keys_id, session_id, error_code, system_code));
}
@@ -622,7 +621,7 @@ void BrowserMediaPlayerManager::OnInitializeCDM(
void BrowserMediaPlayerManager::OnCreateSession(
int media_keys_id,
uint32 session_id,
- MediaKeysHostMsg_CreateSession_Type content_type,
+ CdmHostMsg_CreateSession_Type content_type,
const std::vector<uint8>& init_data) {
if (init_data.size() > kEmeInitDataMaximum) {
LOG(WARNING) << "InitData for ID: " << media_keys_id
« no previous file with comments | « content/browser/media/android/browser_media_player_manager.h ('k') | content/common/media/media_player_messages_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698