summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/searchbox.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-19 23:35:50 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-19 23:35:50 +0000
commit2ccf45c50fad0f2c3c20d95eef6d0040b565b291 (patch)
tree73eac41769a4678fcdb566e78d6e3bde7c10617c /chrome/renderer/searchbox.cc
parentda930e1b7adfb28f6895d95004c25984af627080 (diff)
downloadchromium_src-2ccf45c50fad0f2c3c20d95eef6d0040b565b291.zip
chromium_src-2ccf45c50fad0f2c3c20d95eef6d0040b565b291.tar.gz
chromium_src-2ccf45c50fad0f2c3c20d95eef6d0040b565b291.tar.bz2
Prefix all IPC messages used by src\chrome with Chrome. For e.g ChromeViewMsg_, ChromeViewHostMsg, etc.
This makes it easier to identify which messages are specific to content and chrome. This is a preparation CL for bug http://code.google.com/p/chromium/issues/detail?id=87335 which requires IPC's to not span across content and chrome. When IPC's cross these boundaries they need to be handled as API calls. BUG=87335 Review URL: http://codereview.chromium.org/7631063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97536 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/searchbox.cc')
-rw-r--r--chrome/renderer/searchbox.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/renderer/searchbox.cc b/chrome/renderer/searchbox.cc
index 0b16ec5..9041c1f 100644
--- a/chrome/renderer/searchbox.cc
+++ b/chrome/renderer/searchbox.cc
@@ -25,7 +25,7 @@ SearchBox::~SearchBox() {
void SearchBox::SetSuggestions(const std::vector<std::string>& suggestions,
InstantCompleteBehavior behavior) {
// Explicitly allow empty vector to be sent to the browser.
- render_view()->Send(new ViewHostMsg_SetSuggestions(
+ render_view()->Send(new ChromeViewHostMsg_SetSuggestions(
render_view()->routing_id(), render_view()->page_id(), suggestions,
behavior));
}
@@ -33,11 +33,11 @@ void SearchBox::SetSuggestions(const std::vector<std::string>& suggestions,
bool SearchBox::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(SearchBox, message)
- IPC_MESSAGE_HANDLER(ViewMsg_SearchBoxChange, OnChange)
- IPC_MESSAGE_HANDLER(ViewMsg_SearchBoxSubmit, OnSubmit)
- IPC_MESSAGE_HANDLER(ViewMsg_SearchBoxCancel, OnCancel)
- IPC_MESSAGE_HANDLER(ViewMsg_SearchBoxResize, OnResize)
- IPC_MESSAGE_HANDLER(ViewMsg_DetermineIfPageSupportsInstant,
+ IPC_MESSAGE_HANDLER(ChromeViewMsg_SearchBoxChange, OnChange)
+ IPC_MESSAGE_HANDLER(ChromeViewMsg_SearchBoxSubmit, OnSubmit)
+ IPC_MESSAGE_HANDLER(ChromeViewMsg_SearchBoxCancel, OnCancel)
+ IPC_MESSAGE_HANDLER(ChromeViewMsg_SearchBoxResize, OnResize)
+ IPC_MESSAGE_HANDLER(ChromeViewMsg_DetermineIfPageSupportsInstant,
OnDetermineIfPageSupportsInstant)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -95,7 +95,7 @@ void SearchBox::OnDetermineIfPageSupportsInstant(const string16& value,
selection_end_ = selection_end;
bool result = extensions_v8::SearchBoxExtension::PageSupportsInstant(
render_view()->webview()->mainFrame());
- render_view()->Send(new ViewHostMsg_InstantSupportDetermined(
+ render_view()->Send(new ChromeViewHostMsg_InstantSupportDetermined(
render_view()->routing_id(), render_view()->page_id(), result));
}