From 3627aa3fa39aef7cbcc3dfd67b51e8fb9efa68c5 Mon Sep 17 00:00:00 2001 From: "ddorwin@chromium.org" Date: Tue, 17 Sep 2013 22:32:51 +0000 Subject: Check whether the Pepper CDM is available before adding the key system. This adds a synchronous IPC from chrome_key_systems.cc to the browser process to check with the PluginService. BUG=224793 TEST=existing IsTypeSupported browser tests and new negative tests Review URL: https://chromiumcodereview.appspot.com/23828007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223719 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/render_messages.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chrome/common/render_messages.h') diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 90dab6f..f5d997d 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -503,6 +503,14 @@ IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, std::string /* mime_type */, ChromeViewHostMsg_GetPluginInfo_Output /* output */) +// Returns whether any internal plugin supporting |mime_type| is registered +// Does not determine whether the plugin can actually be instantiated +// (e.g. whether it is allowed or has all its dependencies). +IPC_SYNC_MESSAGE_CONTROL1_1( + ChromeViewHostMsg_IsInternalPluginRegisteredForMimeType, + std::string /* mime_type */, + bool /* registered */) + #if defined(ENABLE_PLUGIN_INSTALLATION) // Tells the browser to search for a plug-in that can handle the given MIME // type. The result will be sent asynchronously to the routing ID -- cgit v1.1