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

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

Issue 10933105: Switch WebContentsUserData to be a friended base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
« no previous file with comments | « chrome/browser/extensions/tab_helper.h ('k') | chrome/browser/tab_contents/web_contents_user_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dad21d2d9d107ad3d20bf846c570aee13f880a86..2e371fd5b3dc69ca41b82f568797dd66fcf99f44 100644
--- a/chrome/browser/sessions/session_tab_helper.h
+++ b/chrome/browser/sessions/session_tab_helper.h
@@ -15,9 +15,7 @@
class SessionTabHelper : public content::WebContentsObserver,
public WebContentsUserData<SessionTabHelper> {
public:
- explicit SessionTabHelper(content::WebContents* contents);
virtual ~SessionTabHelper();
- static int kUserDataKey;
// Returns the identifier used by session restore for this tab.
const SessionID& session_id() const { return session_id_; }
@@ -32,6 +30,10 @@ class SessionTabHelper : public content::WebContentsObserver,
virtual void UserAgentOverrideSet(const std::string& user_agent) OVERRIDE;
private:
+ explicit SessionTabHelper(content::WebContents* contents);
+ static int kUserDataKey;
+ friend class WebContentsUserData<SessionTabHelper>;
+
// 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.
« no previous file with comments | « chrome/browser/extensions/tab_helper.h ('k') | chrome/browser/tab_contents/web_contents_user_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698