summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_automation.h
diff options
context:
space:
mode:
authorhansl@google.com <hansl@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-28 16:05:36 +0000
committerhansl@google.com <hansl@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-28 16:05:36 +0000
commitd57b6ab5930b827b56d412b1d334620c91e8cdbd (patch)
tree7ec5d9867db431d3a89092fcebd2327078c64c16 /chrome_frame/chrome_frame_automation.h
parent8073fb0ca593e537c75d1b40b7206b4f58434d86 (diff)
downloadchromium_src-d57b6ab5930b827b56d412b1d334620c91e8cdbd.zip
chromium_src-d57b6ab5930b827b56d412b1d334620c91e8cdbd.tar.gz
chromium_src-d57b6ab5930b827b56d412b1d334620c91e8cdbd.tar.bz2
The ChromeFrame objects now provides an unfrozen interface called IChromeFramePrivate. This interface provides a GetSessionId() which returns the ID used by Chrome in its Tab javascript object.
Review URL: http://codereview.chromium.org/3541017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64252 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_automation.h')
-rw-r--r--chrome_frame/chrome_frame_automation.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome_frame/chrome_frame_automation.h b/chrome_frame/chrome_frame_automation.h
index 47b03c0..cb1b282 100644
--- a/chrome_frame/chrome_frame_automation.h
+++ b/chrome_frame/chrome_frame_automation.h
@@ -364,6 +364,9 @@ class ChromeFrameAutomationClient
void* user_data,
std::vector<FilePath>* extension_directories);
+ // Returns the session ID used to identify a Tab in Chrome.
+ virtual int GetSessionId() const;
+
virtual void OnChromeFrameHostMoved();
TabProxy* tab() const { return tab_.get(); }
@@ -458,7 +461,8 @@ class ChromeFrameAutomationClient
void CreateExternalTab();
AutomationLaunchResult CreateExternalTabComplete(HWND chrome_window,
HWND tab_window,
- int tab_handle);
+ int tab_handle,
+ int session_id);
// Called in UI thread. Here we fire event to the client notifying for
// the result of Initialize() method call.
void InitializeComplete(AutomationLaunchResult result);
@@ -529,6 +533,8 @@ class ChromeFrameAutomationClient
bool handle_top_level_requests_;
ProxyFactory* proxy_factory_;
int tab_handle_;
+ // The SessionId used by Chrome as the id in the Javascript Tab object.
+ int session_id_;
// Only used if we attach to an existing tab.
uint64 external_tab_cookie_;