From a95986a837fc86e079b5c6dac357636478b50092 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Fri, 24 Dec 2010 06:19:28 +0000 Subject: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating whether a message was processed or not. TBR=brettw Review URL: http://codereview.chromium.org/5978003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70139 0039d316-1c4b-4281-b951-d872f2087c98 --- ipc/ipc_sync_channel.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ipc/ipc_sync_channel.cc') diff --git a/ipc/ipc_sync_channel.cc b/ipc/ipc_sync_channel.cc index 7425a9b..79b1e60 100644 --- a/ipc/ipc_sync_channel.cc +++ b/ipc/ipc_sync_channel.cc @@ -285,22 +285,22 @@ void SyncChannel::SyncContext::Clear() { Context::Clear(); } -void SyncChannel::SyncContext::OnMessageReceived(const Message& msg) { +bool SyncChannel::SyncContext::OnMessageReceived(const Message& msg) { // Give the filters a chance at processing this message. if (TryFilters(msg)) - return; + return true; if (TryToUnblockListener(&msg)) - return; + return true; if (msg.should_unblock()) { received_sync_msgs_->QueueMessage(msg, this); - return; + return true; } if (msg.is_reply()) { received_sync_msgs_->QueueReply(msg, this); - return; + return true; } return Context::OnMessageReceivedNoFilter(msg); -- cgit v1.1