summaryrefslogtreecommitdiffstats
path: root/chrome/browser/web_contents.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/web_contents.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/web_contents.cc')
-rw-r--r--chrome/browser/web_contents.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/web_contents.cc b/chrome/browser/web_contents.cc
index 32b1ecd..96834dc 100644
--- a/chrome/browser/web_contents.cc
+++ b/chrome/browser/web_contents.cc
@@ -1988,6 +1988,12 @@ void WebContents::DomOperationResponse(const std::string& json_string,
Details<DomOperationNotificationDetails>(&details));
}
+void WebContents::ProcessExternalHostMessage(const std::string& receiver,
+ const std::string& message) {
+ if (delegate())
+ delegate()->SendExternalHostMessage(receiver, message);
+}
+
void WebContents::GoToEntryAtOffset(int offset) {
if (!controller())
return;