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 --- ppapi/proxy/dispatcher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ppapi') diff --git a/ppapi/proxy/dispatcher.cc b/ppapi/proxy/dispatcher.cc index df7383f..d27fbda 100644 --- a/ppapi/proxy/dispatcher.cc +++ b/ppapi/proxy/dispatcher.cc @@ -79,7 +79,7 @@ bool Dispatcher::InitWithChannel(MessageLoop* ipc_message_loop, base::WaitableEvent* shutdown_event) { IPC::Channel::Mode mode = is_client ? IPC::Channel::MODE_CLIENT : IPC::Channel::MODE_SERVER; - channel_.reset(new IPC::SyncChannel(channel_name, mode, this, NULL, + channel_.reset(new IPC::SyncChannel(channel_name, mode, this, ipc_message_loop, false, shutdown_event)); return true; } -- cgit v1.1