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

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

Issue 15055003: Do not submit: high level overview patch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build. 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..658a99bf125895574ccd27dcf9df033a077c1593 100644
--- a/chrome/browser/sessions/session_tab_helper.h
+++ b/chrome/browser/sessions/session_tab_helper.h
@@ -19,6 +19,7 @@ class SessionTabHelper : public content::WebContentsObserver,
// Returns the identifier used by session restore for this tab.
const SessionID& session_id() const { return session_id_; }
+ void SetSessionId(const SessionID& id);
// Identifier of the window the tab is in.
void SetWindowID(const SessionID& id);
@@ -29,6 +30,9 @@ class SessionTabHelper : public content::WebContentsObserver,
content::RenderViewHost* render_view_host) OVERRIDE;
virtual void UserAgentOverrideSet(const std::string& user_agent) OVERRIDE;
+ void SetSessionSyncId(const int64 sync_id);
+ int64 GetSessionSyncId() const { return sync_session_id_; }
+
private:
explicit SessionTabHelper(content::WebContents* contents);
friend class content::WebContentsUserData<SessionTabHelper>;
@@ -36,11 +40,13 @@ 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_;
+ int64 sync_session_id_;
+
DISALLOW_COPY_AND_ASSIGN(SessionTabHelper);
};

Powered by Google App Engine
This is Rietveld 408576698