summaryrefslogtreecommitdiffstats
path: root/chrome/browser/render_view_host.cc
diff options
context:
space:
mode:
authorjoshia@google.com <joshia@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 20:12:42 +0000
committerjoshia@google.com <joshia@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 20:12:42 +0000
commit9a2051dfb8a1b02f0ae06bd03c94f8d7945db669 (patch)
tree3e3c3b91866a6439fcc22fa52d9852de304815d2 /chrome/browser/render_view_host.cc
parent849890b62b75f95cf91ebd3fe49f1525ff6595bd (diff)
downloadchromium_src-9a2051dfb8a1b02f0ae06bd03c94f8d7945db669.zip
chromium_src-9a2051dfb8a1b02f0ae06bd03c94f8d7945db669.tar.gz
chromium_src-9a2051dfb8a1b02f0ae06bd03c94f8d7945db669.tar.bz2
Code to facilitate sending message to external host.
Note that at this time the parameters to the message are still tentative. The call goes as a sync call from renderer to the browser. From then onwards it happens async and no return value is available yet. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@957 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_view_host.cc')
-rw-r--r--chrome/browser/render_view_host.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/render_view_host.cc b/chrome/browser/render_view_host.cc
index 0b84911..a6b0f9d 100644
--- a/chrome/browser/render_view_host.cc
+++ b/chrome/browser/render_view_host.cc
@@ -665,6 +665,8 @@ void RenderViewHost::OnMessageReceived(const IPC::Message& msg) {
OnMsgDomOperationResponse)
IPC_MESSAGE_HANDLER(ViewHostMsg_DOMUISend,
OnMsgDOMUISend)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_ExternalHostMessage,
+ OnMsgExternalHostMessage)
#ifdef CHROME_PERSONALIZATION
IPC_MESSAGE_HANDLER(ViewHostMsg_PersonalizationEvent,
OnPersonalizationEvent)
@@ -1013,6 +1015,12 @@ void RenderViewHost::OnMsgDOMUISend(
delegate_->ProcessDOMUIMessage(message, content);
}
+void RenderViewHost::OnMsgExternalHostMessage(
+ const std::string& receiver,
+ const std::string& message) {
+ delegate_->ProcessExternalHostMessage(receiver, message);
+}
+
#ifdef CHROME_PERSONALIZATION
void RenderViewHost::OnPersonalizationEvent(const std::string& message,
const std::string& content) {