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

Side by Side Diff: chrome/browser/sessions/session_tab_helper.h

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_TAB_HELPER_H_
6 #define CHROME_BROWSER_SESSIONS_SESSION_TAB_HELPER_H_ 6 #define CHROME_BROWSER_SESSIONS_SESSION_TAB_HELPER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "components/sessions/session_id.h" 9 #include "components/sessions/session_id.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
(...skipping 27 matching lines...) Expand all
38 // If the WebContents has a SessionTabHelper but has never been attached to a 38 // If the WebContents has a SessionTabHelper but has never been attached to a
39 // Browser window, returns an id value that is different from that of any 39 // Browser window, returns an id value that is different from that of any
40 // Browser. Returns -1 for a NULL WebContents or if the WebContents has no 40 // Browser. Returns -1 for a NULL WebContents or if the WebContents has no
41 // SessionTabHelper. 41 // SessionTabHelper.
42 static SessionID::id_type IdForWindowContainingTab( 42 static SessionID::id_type IdForWindowContainingTab(
43 const content::WebContents* tab); 43 const content::WebContents* tab);
44 44
45 // content::WebContentsObserver: 45 // content::WebContentsObserver:
46 #if defined(ENABLE_EXTENSIONS) 46 #if defined(ENABLE_EXTENSIONS)
47 virtual void RenderViewCreated( 47 virtual void RenderViewCreated(
48 content::RenderViewHost* render_view_host) OVERRIDE; 48 content::RenderViewHost* render_view_host) override;
49 #endif 49 #endif
50 virtual void UserAgentOverrideSet(const std::string& user_agent) OVERRIDE; 50 virtual void UserAgentOverrideSet(const std::string& user_agent) override;
51 51
52 private: 52 private:
53 explicit SessionTabHelper(content::WebContents* contents); 53 explicit SessionTabHelper(content::WebContents* contents);
54 friend class content::WebContentsUserData<SessionTabHelper>; 54 friend class content::WebContentsUserData<SessionTabHelper>;
55 55
56 // Unique identifier of the tab for session restore. This id is only unique 56 // Unique identifier of the tab for session restore. This id is only unique
57 // within the current session, and is not guaranteed to be unique across 57 // within the current session, and is not guaranteed to be unique across
58 // sessions. 58 // sessions.
59 const SessionID session_id_; 59 const SessionID session_id_;
60 60
61 // Unique identifier of the window the tab is in. 61 // Unique identifier of the window the tab is in.
62 SessionID window_id_; 62 SessionID window_id_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(SessionTabHelper); 64 DISALLOW_COPY_AND_ASSIGN(SessionTabHelper);
65 }; 65 };
66 66
67 #endif // CHROME_BROWSER_SESSIONS_SESSION_TAB_HELPER_H_ 67 #endif // CHROME_BROWSER_SESSIONS_SESSION_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_service_unittest.cc ('k') | chrome/browser/sessions/tab_restore_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698