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

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: add a ResetWebContents to SyncedTabDelegateAndroid. 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..9279c0d278c2b699e2c48b4b390c56a8806a9e2f 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,
+ const SessionID& id);
+
// Returns the identifier used by session restore for this tab.
const SessionID& session_id() const { return session_id_; }
@@ -36,7 +40,7 @@ class SessionTabHelper : public content::WebContentsObserver,
// Unique identifier of the tab for session restore. This id is only unique
// within the current session, and is not guaranteed to be unique across
// sessions.
- const SessionID session_id_;
+ SessionID session_id_;
// Unique identifier of the window the tab is in.
SessionID window_id_;

Powered by Google App Engine
This is Rietveld 408576698