Index: chrome/browser/sessions/session_tab_helper.h |
diff --git a/chrome/browser/sessions/session_tab_helper.h b/chrome/browser/sessions/session_tab_helper.h |
index 2fe66696dcf4d74fb0f23ae73d95e3bf70818c23..f377da7bfb146ee3f506f4f622b4106cea484e83 100644 |
--- a/chrome/browser/sessions/session_tab_helper.h |
+++ b/chrome/browser/sessions/session_tab_helper.h |
@@ -17,6 +17,10 @@ class SessionTabHelper : public content::WebContentsObserver, |
public: |
virtual ~SessionTabHelper(); |
+ // Create for WebContents with identifier |id|. |
+ static void CreateForWebContentsWithId(content::WebContents* contents, |
Nicolas Zea
2013/05/22 20:36:37
nit: contents can be modified, and is therefore an
shashi
2013/05/22 21:18:59
In this case contents will not be modified, if the
Nicolas Zea
2013/05/22 22:06:06
By modified, I include any mutable methods, which
shashi
2013/05/22 22:30:47
Ah, I misunderstood, makes sense. Done.
|
+ const SessionID& id); |
+ |
// Returns the identifier used by session restore for this tab. |
const SessionID& session_id() const { return session_id_; } |
@@ -31,6 +35,8 @@ class SessionTabHelper : public content::WebContentsObserver, |
private: |
explicit SessionTabHelper(content::WebContents* contents); |
+ explicit SessionTabHelper(content::WebContents* contents, |
+ const SessionID& id); |
friend class content::WebContentsUserData<SessionTabHelper>; |
// Unique identifier of the tab for session restore. This id is only unique |