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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2765343003: media: Add MediaDrmStorage (Closed)
Patch Set: fix compile error Created 3 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: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index bce986334fa2352fc329e3b6ba463e219fedad9a..1b7d7bb3483f0ebff3398d6a85b2fce18de89902 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -381,6 +381,9 @@
#if defined(ENABLE_MOJO_MEDIA)
#include "chrome/browser/media/output_protection_impl.h"
+#if defined(ENABLE_MOJO_CDM) && defined(OS_ANDROID)
+#include "chrome/browser/media/android/cdm/media_drm_storage_factory.h"
+#endif
#endif
#if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
@@ -3126,6 +3129,10 @@ void ChromeContentBrowserClient::ExposeInterfacesToMediaService(
#if defined(ENABLE_MOJO_MEDIA)
registry->AddInterface(
base::Bind(&OutputProtectionImpl::Create, render_frame_host));
+#if defined(ENABLE_MOJO_CDM) && defined(OS_ANDROID)
+ registry->AddInterface(
+ base::Bind(&chrome::CreateMediaDrmStorage, render_frame_host));
yucliu1 2017/03/27 19:06:41 Is it possible for media code to know the storage
xhwang 2017/03/27 20:28:46 This should be configured correctly during build t
xhwang 2017/03/27 20:46:33 Thought about this more, since not all content emb
+#endif
#endif // defined(ENABLE_MOJO_MEDIA)
}

Powered by Google App Engine
This is Rietveld 408576698