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

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

Issue 1165513004: Chromecast: adds MessageType to BrowserCdmCast::OnSessionMessage API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 d00a96f25ec8630241ab6d3a29ef95131772642e..6dc60e648b6a2899a3cd2917fca37e81bf088f02 100644
--- a/chromecast/media/cdm/browser_cdm_cast.cc
+++ b/chromecast/media/cdm/browser_cdm_cast.cc
@@ -69,13 +69,11 @@ void BrowserCdmCast::LoadSession(
return nullptr;
}
-void BrowserCdmCast::OnSessionMessage(const std::string& session_id,
- const std::vector<uint8_t>& 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;
+void BrowserCdmCast::OnSessionMessage(
+ const std::string& session_id,
+ const std::vector<uint8_t>& message,
+ const GURL& destination_url,
+ ::media::MediaKeys::MessageType message_type) {
session_message_cb_.Run(session_id,
message_type,
message,
« 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