summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorjoshia@google.com <joshia@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 20:33:28 +0000
committerjoshia@google.com <joshia@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 20:33:28 +0000
commit5e40e26d39ea8bf3f6eb879e09e4e5b1f335b9ad (patch)
treed53d181f4d8db21bc854259a6108c40802cdc484 /chrome/browser
parent7c094b94db4da177d8b950f23a1223b9c5346a3e (diff)
downloadchromium_src-5e40e26d39ea8bf3f6eb879e09e4e5b1f335b9ad.zip
chromium_src-5e40e26d39ea8bf3f6eb879e09e4e5b1f335b9ad.tar.gz
chromium_src-5e40e26d39ea8bf3f6eb879e09e4e5b1f335b9ad.tar.bz2
Add missing files from the previous change
TBR=iyengar git-svn-id: svn://svn.chromium.org/chrome/trunk/src@959 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/external_tab_container.cc8
-rw-r--r--chrome/browser/external_tab_container.h3
-rw-r--r--chrome/browser/tab_contents_delegate.h4
3 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index 069896a..13bb2a7 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -236,6 +236,14 @@ void ExternalTabContainer::DidNavigate(NavigationType nav_type,
}
}
+void ExternalTabContainer::SendExternalHostMessage(const std::string& receiver,
+ const std::string& message) {
+ if(automation_) {
+ automation_->Send(
+ new AutomationMsg_SendExternalHostMessage(0, receiver, message));
+ }
+}
+
void ExternalTabContainer::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
diff --git a/chrome/browser/external_tab_container.h b/chrome/browser/external_tab_container.h
index eb8bd94..b8ccc8c 100644
--- a/chrome/browser/external_tab_container.h
+++ b/chrome/browser/external_tab_container.h
@@ -104,6 +104,9 @@ class ExternalTabContainer : public TabContentsDelegate,
virtual void ToolbarSizeChanged(TabContents* source, bool is_animating);
virtual void DidNavigate(NavigationType nav_type,
int relative_navigation_offet);
+ virtual void SendExternalHostMessage(const std::string& receiver,
+ const std::string& message);
+
// Notification service callback.
virtual void Observe(NotificationType type,
diff --git a/chrome/browser/tab_contents_delegate.h b/chrome/browser/tab_contents_delegate.h
index 40183d6..7bd4137 100644
--- a/chrome/browser/tab_contents_delegate.h
+++ b/chrome/browser/tab_contents_delegate.h
@@ -188,6 +188,10 @@ class TabContentsDelegate : public PageNavigator {
bool* proceed_to_fire_unload) {
*proceed_to_fire_unload = true;
}
+
+ // Send IPC to external host. Default implementation is do nothing.
+ virtual void SendExternalHostMessage(const std::string& receiver,
+ const std::string& message) {};
};
#endif // CHROME_BROWSER_TAB_CONTENTS_DELEGATE_H_