Index: chromecast/media/cdm/browser_cdm_cast.cc |
diff --git a/chromecast/media/cdm/browser_cdm_cast.cc b/chromecast/media/cdm/browser_cdm_cast.cc |
index c9fbee746bff4bf5d0241e67f8399f45717a7312..e726c2169b19fc9c9063d7d30a369dba56eff1a7 100644 |
--- a/chromecast/media/cdm/browser_cdm_cast.cc |
+++ b/chromecast/media/cdm/browser_cdm_cast.cc |
@@ -38,25 +38,25 @@ void BrowserCdmCast::UnregisterPlayer(int registration_id) { |
player_tracker_.UnregisterPlayer(registration_id); |
} |
-void BrowserCdmCast::OnSessionMessage(const std::string& web_session_id, |
+void BrowserCdmCast::OnSessionMessage(const std::string& session_id, |
const std::vector<uint8>& message, |
const GURL& destination_url) { |
// Note: Message type is not supported in Chromecast. Do our best guess here. |
::media::MediaKeys::MessageType message_type = |
destination_url.is_empty() ? ::media::MediaKeys::LICENSE_REQUEST |
: ::media::MediaKeys::LICENSE_RENEWAL; |
- session_message_cb_.Run(web_session_id, |
+ session_message_cb_.Run(session_id, |
message_type, |
message, |
destination_url); |
} |
-void BrowserCdmCast::OnSessionClosed(const std::string& web_session_id) { |
- session_closed_cb_.Run(web_session_id); |
+void BrowserCdmCast::OnSessionClosed(const std::string& session_id) { |
+ session_closed_cb_.Run(session_id); |
} |
void BrowserCdmCast::OnSessionKeysChange( |
- const std::string& web_session_id, |
+ const std::string& session_id, |
const ::media::KeyIdAndKeyPairs& keys) { |
::media::CdmKeysInfo cdm_keys_info; |
for (const std::pair<std::string, std::string>& key : keys) { |
@@ -65,7 +65,7 @@ void BrowserCdmCast::OnSessionKeysChange( |
cdm_key_information->key_id.assign(key.first.begin(), key.first.end()); |
cdm_keys_info.push_back(cdm_key_information.release()); |
} |
- session_keys_change_cb_.Run(web_session_id, true, cdm_keys_info.Pass()); |
+ session_keys_change_cb_.Run(session_id, true, cdm_keys_info.Pass()); |
// Notify listeners of a new key. |
player_tracker_.NotifyNewKey(); |