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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 23513055: Populate canPlayType to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/renderer/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index 4a76b19e8546e08744740d2c55b745c33ccf0013..c301439bc9f65ffe2f1836a810901e96cf5b6689 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -108,6 +108,11 @@
#include "chrome/renderer/spellchecker/spellcheck_provider.h"
#endif
+#if defined(OS_ANDROID)
+#include "chrome/common/media/encrypted_media_messages_android.h"
+#include "chrome/renderer/media/encrypted_media_utils_android.h"
+#endif
+
using autofill::AutofillAgent;
using autofill::PasswordAutofillAgent;
using autofill::PasswordGenerationManager;
@@ -1307,6 +1312,16 @@ void ChromeContentRendererClient::AddKeySystems(
// TODO(ddorwin): In the next CL, move code from
// content/renderer/media/crypto/key_systems_info.cc to chrome_key_systems.cc
// and call AddKeySystems.
+#if defined(OS_ANDROID)
+ std::vector<SupportedKeySystem> supported_systems;
+ RenderThread::Get()->GetChannel()->Send(
+ new ChromeViewHostMsg_GetSupportedKeySystems(
+ MSG_ROUTING_NONE, &supported_systems));
+ for (unsigned i = 0; i < supported_systems.size(); ++i) {
+ key_systems->push_back(
+ SupportedKeySystemToKeySystemInfo(supported_systems[i]));
+ }
+#endif // defined(OS_ANDROID)
}
bool ChromeContentRendererClient::ShouldReportDetailedMessageForSource(

Powered by Google App Engine
This is Rietveld 408576698