Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: chrome/browser/sessions/session_tab_helper.h

Issue 15499005: Add a new SyncedTabDelegate for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698