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

Unified Diff: chromecast/media/cdm/browser_cdm_cast.cc

Issue 903663002: Encrypted Media: Replace web_session_id with session_id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chromecast/media/cdm/browser_cdm_cast.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « chromecast/media/cdm/browser_cdm_cast.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698