From 4b580bf3020b1e0eaf5b7efad50896b4c62474c5 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Thu, 2 Dec 2010 19:16:07 +0000 Subject: Add a base class for objects that want to filter messages on the IO thread. I'll switch the filters to it in future separate changes. I've also taken out the special case for an initial filter from the IPC classes. The reason it existed was that there was a race condition of some messages not being filtered if a filter is added after construction but before launching the peer process. Taking it out allows us to add more than one filter and makes things a little cleaner. Review URL: http://codereview.chromium.org/5513001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68043 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/plugin/plugin_channel_base.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/plugin') diff --git a/chrome/plugin/plugin_channel_base.cc b/chrome/plugin/plugin_channel_base.cc index dd1beb7..6494afb 100644 --- a/chrome/plugin/plugin_channel_base.cc +++ b/chrome/plugin/plugin_channel_base.cc @@ -115,7 +115,7 @@ NPObjectBase* PluginChannelBase::GetNPObjectListenerForRoute(int route_id) { bool PluginChannelBase::Init(MessageLoop* ipc_message_loop, bool create_pipe_now) { channel_.reset(new IPC::SyncChannel( - channel_name_, mode_, this, NULL, ipc_message_loop, create_pipe_now, + channel_name_, mode_, this, ipc_message_loop, create_pipe_now, ChildProcess::current()->GetShutDownEvent())); channel_valid_ = true; return true; -- cgit v1.1