Chromium Code Reviews| Index: content/browser/ppapi_plugin_process_host.cc |
| =================================================================== |
| --- content/browser/ppapi_plugin_process_host.cc (revision 85766) |
| +++ content/browser/ppapi_plugin_process_host.cc (working copy) |
| @@ -16,8 +16,10 @@ |
| #include "ipc/ipc_switches.h" |
| #include "ppapi/proxy/ppapi_messages.h" |
| -PpapiPluginProcessHost::PpapiPluginProcessHost() |
| - : BrowserChildProcessHost(ChildProcessInfo::PPAPI_PLUGIN_PROCESS) { |
| +PpapiPluginProcessHost::PpapiPluginProcessHost(net::HostResolver* host_resolver) |
| + : BrowserChildProcessHost(ChildProcessInfo::PPAPI_PLUGIN_PROCESS), |
| + filter_(new PepperMessageFilter(host_resolver)) { |
| + AddFilter(filter_.get()); |
| } |
| PpapiPluginProcessHost::~PpapiPluginProcessHost() { |
| @@ -107,6 +109,13 @@ |
| } |
| bool PpapiPluginProcessHost::OnMessageReceived(const IPC::Message& msg) { |
| + // Some messages are handled by the filter. |
| + /* |
|
viettrungluu
2011/05/18 20:40:43
?
|
| + bool message_was_ok = false; |
| + if (filter_.OnMessageReceived(msg, &message_was_ok)) |
| + return true; |
| + */ |
| + |
| bool handled = true; |
| IPC_BEGIN_MESSAGE_MAP(PpapiPluginProcessHost, msg) |
| IPC_MESSAGE_HANDLER(PpapiHostMsg_ChannelCreated, |