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 |