summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/plugins')
-rw-r--r--chrome/browser/plugins/plugin_info_message_filter.cc4
-rw-r--r--chrome/browser/plugins/plugin_info_message_filter.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/plugins/plugin_info_message_filter.cc b/chrome/browser/plugins/plugin_info_message_filter.cc
index 9aec50d..ac2e82b 100644
--- a/chrome/browser/plugins/plugin_info_message_filter.cc
+++ b/chrome/browser/plugins/plugin_info_message_filter.cc
@@ -98,9 +98,11 @@ bool PluginInfoMessageFilter::OnMessageReceived(const IPC::Message& message) {
IPC_BEGIN_MESSAGE_MAP(PluginInfoMessageFilter, message)
IPC_MESSAGE_HANDLER_DELAY_REPLY(ChromeViewHostMsg_GetPluginInfo,
OnGetPluginInfo)
+#if defined(ENABLE_PEPPER_CDMS)
IPC_MESSAGE_HANDLER(
ChromeViewHostMsg_IsInternalPluginRegisteredForMimeType,
OnIsInternalPluginRegisteredForMimeType)
+#endif
IPC_MESSAGE_UNHANDLED(return false)
IPC_END_MESSAGE_MAP()
return true;
@@ -168,6 +170,7 @@ void PluginInfoMessageFilter::PluginsLoaded(
Send(reply_msg);
}
+#if defined(ENABLE_PEPPER_CDMS)
void PluginInfoMessageFilter::OnIsInternalPluginRegisteredForMimeType(
const std::string& mime_type,
bool* is_registered,
@@ -190,6 +193,7 @@ void PluginInfoMessageFilter::OnIsInternalPluginRegisteredForMimeType(
*is_registered = false;
}
+#endif
void PluginInfoMessageFilter::Context::DecidePluginStatus(
const GetPluginInfo_Params& params,
diff --git a/chrome/browser/plugins/plugin_info_message_filter.h b/chrome/browser/plugins/plugin_info_message_filter.h
index eb8dcb9..c9987c5 100644
--- a/chrome/browser/plugins/plugin_info_message_filter.h
+++ b/chrome/browser/plugins/plugin_info_message_filter.h
@@ -99,6 +99,7 @@ class PluginInfoMessageFilter : public content::BrowserMessageFilter {
IPC::Message* reply_msg,
const std::vector<content::WebPluginInfo>& plugins);
+#if defined(ENABLE_PEPPER_CDMS)
// 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).
@@ -110,6 +111,7 @@ class PluginInfoMessageFilter : public content::BrowserMessageFilter {
bool* is_registered,
std::vector<base::string16>* additional_param_names,
std::vector<base::string16>* additional_param_values);
+#endif
Context context_;