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

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

Issue 193523002: Encrypted Media: Implement IPC based SetCdm(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 6 years, 9 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
Index: content/renderer/media/cdm_session_adapter.cc
diff --git a/content/renderer/media/cdm_session_adapter.cc b/content/renderer/media/cdm_session_adapter.cc
index b77cb3805dd58da15d8dd0097ba28b08925ae890..cf8d849771c990a806bced8505c1fb2e5bf1837d 100644
--- a/content/renderer/media/cdm_session_adapter.cc
+++ b/content/renderer/media/cdm_session_adapter.cc
@@ -26,7 +26,9 @@ CdmSessionAdapter::~CdmSessionAdapter() {}
bool CdmSessionAdapter::Initialize(
#if defined(ENABLE_PEPPER_CDMS)
const CreatePepperCdmCB& create_pepper_cdm_cb,
-#endif
+#elif defined(OS_ANDROID)
+ int* cdm_id,
+#endif // defined(ENABLE_PEPPER_CDMS)
const std::string& key_system) {
base::WeakPtr<CdmSessionAdapter> weak_this = weak_ptr_factory_.GetWeakPtr();
media_keys_ =
@@ -37,9 +39,9 @@ bool CdmSessionAdapter::Initialize(
#elif defined(OS_ANDROID)
// TODO(xhwang): Support Android.
NULL,
- 0,
// TODO(ddorwin): Get the URL for the frame containing the MediaKeys.
GURL(),
+ cdm_id,
#endif // defined(ENABLE_PEPPER_CDMS)
base::Bind(&CdmSessionAdapter::OnSessionCreated, weak_this),
base::Bind(&CdmSessionAdapter::OnSessionMessage, weak_this),

Powered by Google App Engine
This is Rietveld 408576698