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

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

Issue 10917231: Revamp TabNavigation class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 // Invoked when the NavigationController has removed entries from the front of 143 // Invoked when the NavigationController has removed entries from the front of
144 // the list. |count| gives the number of entries that were removed. 144 // the list. |count| gives the number of entries that were removed.
145 void TabNavigationPathPrunedFromFront(const SessionID& window_id, 145 void TabNavigationPathPrunedFromFront(const SessionID& window_id,
146 const SessionID& tab_id, 146 const SessionID& tab_id,
147 int count); 147 int count);
148 148
149 // Updates the navigation entry for the specified tab. 149 // Updates the navigation entry for the specified tab.
150 void UpdateTabNavigation(const SessionID& window_id, 150 void UpdateTabNavigation(const SessionID& window_id,
151 const SessionID& tab_id, 151 const SessionID& tab_id,
152 int index, 152 const TabNavigation& navigation);
153 const content::NavigationEntry& entry);
154 153
155 // Notification that a tab has restored its entries or a closed tab is being 154 // Notification that a tab has restored its entries or a closed tab is being
156 // reused. 155 // reused.
157 void TabRestored(TabContents* tab, bool pinned); 156 void TabRestored(TabContents* tab, bool pinned);
158 157
159 // Sets the index of the selected entry in the navigation controller for the 158 // Sets the index of the selected entry in the navigation controller for the
160 // specified tab. 159 // specified tab.
161 void SetSelectedNavigationIndex(const SessionID& window_id, 160 void SetSelectedNavigationIndex(const SessionID& window_id,
162 const SessionID& tab_id, 161 const SessionID& tab_id,
163 int index); 162 int index);
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 const base::TimeDelta save_delay_in_hrs_; 471 const base::TimeDelta save_delay_in_hrs_;
473 472
474 // For browser_tests, since we want to simulate the browser shutting down 473 // For browser_tests, since we want to simulate the browser shutting down
475 // without quitting. 474 // without quitting.
476 bool force_browser_not_alive_with_no_windows_; 475 bool force_browser_not_alive_with_no_windows_;
477 476
478 DISALLOW_COPY_AND_ASSIGN(SessionService); 477 DISALLOW_COPY_AND_ASSIGN(SessionService);
479 }; 478 };
480 479
481 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ 480 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_restore_browsertest.cc ('k') | chrome/browser/sessions/session_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698