summaryrefslogtreecommitdiffstats
path: root/chrome/browser/render_view_host_delegate.h
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_delegate.h
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_delegate.h')
-rw-r--r--chrome/browser/render_view_host_delegate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/render_view_host_delegate.h b/chrome/browser/render_view_host_delegate.h
index 959f427..c6cc9a2 100644
--- a/chrome/browser/render_view_host_delegate.h
+++ b/chrome/browser/render_view_host_delegate.h
@@ -220,6 +220,12 @@ class RenderViewHostDelegate {
virtual void ProcessDOMUIMessage(const std::string& message,
const std::string& content) { }
+ // A message for external host. By default we ignore such messages.
+ // |receiver| can be a receiving script and |message| is any
+ // arbitrary string that makes sense to the receiver.
+ virtual void ProcessExternalHostMessage(const std::string& receiver,
+ const std::string& message) { }
+
// Navigate to the history entry for the given offset from the current
// position within the NavigationController. Makes no change if offset is
// not valid.