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

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

Issue 10891044: RestoreTabHelper > SessionTabHelper, move more session stuff into it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/sessions/session_service.cc ('k') | chrome/browser/sessions/session_tab_helper.cc » ('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/restore_tab_helper.h b/chrome/browser/sessions/session_tab_helper.h
similarity index 71%
rename from chrome/browser/sessions/restore_tab_helper.h
rename to chrome/browser/sessions/session_tab_helper.h
index 4fea42b08d60a3e78209946cf971a18c3823fae0..8c30656128f693afcc92f10b642a2dc441a1c8a8 100644
--- a/chrome/browser/sessions/restore_tab_helper.h
+++ b/chrome/browser/sessions/session_tab_helper.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_SESSIONS_RESTORE_TAB_HELPER_H_
-#define CHROME_BROWSER_SESSIONS_RESTORE_TAB_HELPER_H_
+#ifndef CHROME_BROWSER_SESSIONS_SESSION_TAB_HELPER_H_
+#define CHROME_BROWSER_SESSIONS_SESSION_TAB_HELPER_H_
#include "base/basictypes.h"
#include "chrome/browser/sessions/session_id.h"
@@ -11,10 +11,10 @@
// This class keeps the extension API's windowID up-to-date with the current
// window of the tab.
-class RestoreTabHelper : public content::WebContentsObserver {
+class SessionTabHelper : public content::WebContentsObserver {
public:
- explicit RestoreTabHelper(content::WebContents* contents);
- virtual ~RestoreTabHelper();
+ explicit SessionTabHelper(content::WebContents* contents);
+ virtual ~SessionTabHelper();
// Returns the identifier used by session restore for this tab.
const SessionID& session_id() const { return session_id_; }
@@ -26,6 +26,7 @@ class RestoreTabHelper : public content::WebContentsObserver {
// content::WebContentsObserver:
virtual void RenderViewCreated(
content::RenderViewHost* render_view_host) OVERRIDE;
+ virtual void UserAgentOverrideSet(const std::string& user_agent) OVERRIDE;
private:
// Unique identifier of the tab for session restore. This id is only unique
@@ -36,7 +37,7 @@ class RestoreTabHelper : public content::WebContentsObserver {
// Unique identifier of the window the tab is in.
SessionID window_id_;
- DISALLOW_COPY_AND_ASSIGN(RestoreTabHelper);
+ DISALLOW_COPY_AND_ASSIGN(SessionTabHelper);
};
-#endif // CHROME_BROWSER_SESSIONS_RESTORE_TAB_HELPER_H_
+#endif // CHROME_BROWSER_SESSIONS_SESSION_TAB_HELPER_H_
« no previous file with comments | « chrome/browser/sessions/session_service.cc ('k') | chrome/browser/sessions/session_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698