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
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 90dab6fb..f5d997d 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -503,6 +503,14 @@
                             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