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

Unified Diff: content/renderer/media/webmediaplayer_proxy_impl_android.cc

Issue 17289006: Separate CDM initialization from GenerateKeyRequest & remove key_system parameters. (Closed) Base URL: master
Patch Set: rebase only Created 7 years, 6 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
« no previous file with comments | « content/renderer/media/webmediaplayer_proxy_impl_android.h ('k') | media/base/android/media_drm_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webmediaplayer_proxy_impl_android.cc
diff --git a/content/renderer/media/webmediaplayer_proxy_impl_android.cc b/content/renderer/media/webmediaplayer_proxy_impl_android.cc
index e89adb87f6b69fc456754dc8b93b78d7d5910ee8..1c2f5c6ec2a4fe25fc66b35ab133156288c434ba 100644
--- a/content/renderer/media/webmediaplayer_proxy_impl_android.cc
+++ b/content/renderer/media/webmediaplayer_proxy_impl_android.cc
@@ -185,28 +185,25 @@ void WebMediaPlayerProxyImplAndroid::ReadFromDemuxerAck(
void WebMediaPlayerProxyImplAndroid::GenerateKeyRequest(
int player_id,
- const std::string& key_system,
const std::string& type,
const std::vector<uint8>& init_data) {
Send(new MediaPlayerHostMsg_GenerateKeyRequest(
- routing_id(), player_id, key_system, type, init_data));
+ routing_id(), player_id, type, init_data));
}
void WebMediaPlayerProxyImplAndroid::AddKey(int player_id,
- const std::string& key_system,
const std::vector<uint8>& key,
const std::vector<uint8>& init_data,
const std::string& session_id) {
Send(new MediaPlayerHostMsg_AddKey(
- routing_id(), player_id, key_system, key, init_data, session_id));
+ routing_id(), player_id, key, init_data, session_id));
}
void WebMediaPlayerProxyImplAndroid::CancelKeyRequest(
int player_id,
- const std::string& key_system,
const std::string& session_id) {
Send(new MediaPlayerHostMsg_CancelKeyRequest(
- routing_id(), player_id, key_system, session_id));
+ routing_id(), player_id, session_id));
}
#if defined(GOOGLE_TV)
@@ -272,33 +269,30 @@ void WebMediaPlayerProxyImplAndroid::OnMediaConfigRequest(int player_id) {
}
void WebMediaPlayerProxyImplAndroid::OnKeyAdded(int player_id,
- const std::string& key_system,
const std::string& session_id) {
webkit_media::WebMediaPlayerAndroid* player = GetWebMediaPlayer(player_id);
if (player)
- player->OnKeyAdded(key_system, session_id);
+ player->OnKeyAdded(session_id);
}
void WebMediaPlayerProxyImplAndroid::OnKeyError(
int player_id,
- const std::string& key_system,
const std::string& session_id,
media::MediaKeys::KeyError error_code,
int system_code) {
webkit_media::WebMediaPlayerAndroid* player = GetWebMediaPlayer(player_id);
if (player)
- player->OnKeyError(key_system, session_id, error_code, system_code);
+ player->OnKeyError(session_id, error_code, system_code);
}
void WebMediaPlayerProxyImplAndroid::OnKeyMessage(
int player_id,
- const std::string& key_system,
const std::string& session_id,
const std::string& message,
const std::string& destination_url) {
webkit_media::WebMediaPlayerAndroid* player = GetWebMediaPlayer(player_id);
if (player)
- player->OnKeyMessage(key_system, session_id, message, destination_url);
+ player->OnKeyMessage(session_id, message, destination_url);
}
} // namespace content
« no previous file with comments | « content/renderer/media/webmediaplayer_proxy_impl_android.h ('k') | media/base/android/media_drm_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698