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

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

Issue 11359201: Remove TabContents from TabStripModelObserver::TabReplacedAt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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
« no previous file with comments | « chrome/browser/sessions/session_restore.cc ('k') | chrome/browser/sessions/session_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 const SessionID& tab_id, 157 const SessionID& tab_id,
158 int count); 158 int count);
159 159
160 // Updates the navigation entry for the specified tab. 160 // Updates the navigation entry for the specified tab.
161 void UpdateTabNavigation(const SessionID& window_id, 161 void UpdateTabNavigation(const SessionID& window_id,
162 const SessionID& tab_id, 162 const SessionID& tab_id,
163 const TabNavigation& navigation); 163 const TabNavigation& navigation);
164 164
165 // Notification that a tab has restored its entries or a closed tab is being 165 // Notification that a tab has restored its entries or a closed tab is being
166 // reused. 166 // reused.
167 void TabRestored(TabContents* tab, bool pinned); 167 void TabRestored(content::WebContents* tab, bool pinned);
168 168
169 // Sets the index of the selected entry in the navigation controller for the 169 // Sets the index of the selected entry in the navigation controller for the
170 // specified tab. 170 // specified tab.
171 void SetSelectedNavigationIndex(const SessionID& window_id, 171 void SetSelectedNavigationIndex(const SessionID& window_id,
172 const SessionID& tab_id, 172 const SessionID& tab_id,
173 int index); 173 int index);
174 174
175 // Sets the index of the selected tab in the specified window. 175 // Sets the index of the selected tab in the specified window.
176 void SetSelectedTabInWindow(const SessionID& window_id, int index); 176 void SetSelectedTabInWindow(const SessionID& window_id, int index);
177 177
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 std::map<int, SessionWindow*>* windows, 345 std::map<int, SessionWindow*>* windows,
346 SessionID::id_type* active_window_id); 346 SessionID::id_type* active_window_id);
347 347
348 // Adds commands to commands that will recreate the state of the specified 348 // Adds commands to commands that will recreate the state of the specified
349 // tab. This adds at most kMaxNavigationCountToPersist navigations (in each 349 // tab. This adds at most kMaxNavigationCountToPersist navigations (in each
350 // direction from the current navigation index). 350 // direction from the current navigation index).
351 // A pair is added to tab_to_available_range indicating the range of 351 // A pair is added to tab_to_available_range indicating the range of
352 // indices that were written. 352 // indices that were written.
353 void BuildCommandsForTab( 353 void BuildCommandsForTab(
354 const SessionID& window_id, 354 const SessionID& window_id,
355 TabContents* tab, 355 content::WebContents* tab,
356 int index_in_window, 356 int index_in_window,
357 bool is_pinned, 357 bool is_pinned,
358 std::vector<SessionCommand*>* commands, 358 std::vector<SessionCommand*>* commands,
359 IdToRange* tab_to_available_range); 359 IdToRange* tab_to_available_range);
360 360
361 // Adds commands to create the specified browser, and invokes 361 // Adds commands to create the specified browser, and invokes
362 // BuildCommandsForTab for each of the tabs in the browser. This ignores 362 // BuildCommandsForTab for each of the tabs in the browser. This ignores
363 // any tabs not in the profile we were created with. 363 // any tabs not in the profile we were created with.
364 void BuildCommandsForBrowser( 364 void BuildCommandsForBrowser(
365 Browser* browser, 365 Browser* browser,
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 const base::TimeDelta save_delay_in_hrs_; 499 const base::TimeDelta save_delay_in_hrs_;
500 500
501 // For browser_tests, since we want to simulate the browser shutting down 501 // For browser_tests, since we want to simulate the browser shutting down
502 // without quitting. 502 // without quitting.
503 bool force_browser_not_alive_with_no_windows_; 503 bool force_browser_not_alive_with_no_windows_;
504 504
505 DISALLOW_COPY_AND_ASSIGN(SessionService); 505 DISALLOW_COPY_AND_ASSIGN(SessionService);
506 }; 506 };
507 507
508 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ 508 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_restore.cc ('k') | chrome/browser/sessions/session_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698