Commit 5ebf3147 authored by bauerb's avatar bauerb Committed by Commit bot

Receive all messages in PluginObserver from the RenderFrameHost.

BUG=444203

Review URL: https://codereview.chromium.org/1063413002

Cr-Commit-Position: refs/heads/master@{#324407}
parent 340539c3
...@@ -336,17 +336,6 @@ bool PluginObserver::OnMessageReceived( ...@@ -336,17 +336,6 @@ bool PluginObserver::OnMessageReceived(
IPC_BEGIN_MESSAGE_MAP(PluginObserver, message) IPC_BEGIN_MESSAGE_MAP(PluginObserver, message)
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_BlockedOutdatedPlugin, IPC_MESSAGE_HANDLER(ChromeViewHostMsg_BlockedOutdatedPlugin,
OnBlockedOutdatedPlugin) OnBlockedOutdatedPlugin)
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_NPAPINotSupported,
OnNPAPINotSupported)
IPC_MESSAGE_UNHANDLED(return false)
IPC_END_MESSAGE_MAP()
return true;
}
bool PluginObserver::OnMessageReceived(const IPC::Message& message) {
IPC_BEGIN_MESSAGE_MAP(PluginObserver, message)
#if defined(ENABLE_PLUGIN_INSTALLATION) #if defined(ENABLE_PLUGIN_INSTALLATION)
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_RemovePluginPlaceholderHost, IPC_MESSAGE_HANDLER(ChromeViewHostMsg_RemovePluginPlaceholderHost,
OnRemovePluginPlaceholderHost) OnRemovePluginPlaceholderHost)
...@@ -355,6 +344,8 @@ bool PluginObserver::OnMessageReceived(const IPC::Message& message) { ...@@ -355,6 +344,8 @@ bool PluginObserver::OnMessageReceived(const IPC::Message& message) {
OnOpenAboutPlugins) OnOpenAboutPlugins)
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_CouldNotLoadPlugin, IPC_MESSAGE_HANDLER(ChromeViewHostMsg_CouldNotLoadPlugin,
OnCouldNotLoadPlugin) OnCouldNotLoadPlugin)
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_NPAPINotSupported,
OnNPAPINotSupported)
IPC_MESSAGE_UNHANDLED(return false) IPC_MESSAGE_UNHANDLED(return false)
IPC_END_MESSAGE_MAP() IPC_END_MESSAGE_MAP()
......
...@@ -42,7 +42,6 @@ class PluginObserver : public content::WebContentsObserver, ...@@ -42,7 +42,6 @@ class PluginObserver : public content::WebContentsObserver,
base::ProcessId plugin_pid) override; base::ProcessId plugin_pid) override;
bool OnMessageReceived(const IPC::Message& message, bool OnMessageReceived(const IPC::Message& message,
content::RenderFrameHost* render_frame_host) override; content::RenderFrameHost* render_frame_host) override;
bool OnMessageReceived(const IPC::Message& message) override;
private: private:
explicit PluginObserver(content::WebContents* web_contents); explicit PluginObserver(content::WebContents* web_contents);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment