summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_automation.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-24 07:40:11 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-24 07:40:11 +0000
commitabac987398cdef01786a9acdc07c7aca5a6e8a58 (patch)
tree96a34e00f82b5674c2086a6cd06e953815272faa /chrome_frame/chrome_frame_automation.cc
parent52617df3c0d6b2f57763d52dd3c24dab32154d61 (diff)
downloadchromium_src-abac987398cdef01786a9acdc07c7aca5a6e8a58.zip
chromium_src-abac987398cdef01786a9acdc07c7aca5a6e8a58.tar.gz
chromium_src-abac987398cdef01786a9acdc07c7aca5a6e8a58.tar.bz2
Make a few more places use bool for OnMessageReceived.
TBR=brettw Review URL: http://codereview.chromium.org/6005006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70141 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_automation.cc')
-rw-r--r--chrome_frame/chrome_frame_automation.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc
index a026669..887e545 100644
--- a/chrome_frame/chrome_frame_automation.cc
+++ b/chrome_frame/chrome_frame_automation.cc
@@ -1168,19 +1168,20 @@ bool ChromeFrameAutomationClient::ProcessUrlRequestMessage(TabProxy* tab,
// kind of beings.
// By default we marshal the IPC message to the main/GUI thread and from there
// we safely invoke chrome_frame_delegate_->OnMessageReceived(msg).
-void ChromeFrameAutomationClient::OnMessageReceived(TabProxy* tab,
+bool ChromeFrameAutomationClient::OnMessageReceived(TabProxy* tab,
const IPC::Message& msg) {
DCHECK(tab == tab_.get());
// Quickly process network related messages.
if (url_fetcher_ && ProcessUrlRequestMessage(tab, msg, false))
- return;
+ return true;
// Early check to avoid needless marshaling
if (chrome_frame_delegate_ == NULL)
- return;
+ return false;
PostTask(FROM_HERE, NewRunnableMethod(this,
&ChromeFrameAutomationClient::OnMessageReceivedUIThread, msg));
+ return true;
}
void ChromeFrameAutomationClient::OnChannelError(TabProxy* tab) {