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

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

Issue 92001: Restore closed tabs into new windows when necessary, and track the windows th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « no previous file | chrome/browser/sessions/tab_restore_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/tab_restore_service.h
===================================================================
--- chrome/browser/sessions/tab_restore_service.h (revision 14184)
+++ chrome/browser/sessions/tab_restore_service.h (working copy)
@@ -168,9 +168,11 @@
LOADED_LAST_SESSION = 1 << 4
};
- // Populates tabs->navigations from the NavigationController.
- void PopulateTabFromController(NavigationController* controller,
- Tab* tab);
+ // Populates the tab's navigations from the NavigationController, and its
+ // browser_id and tabstrip_index from the browser.
+ void PopulateTab(Tab* tab,
+ Browser* browser,
+ NavigationController* controller);
// Notifies observers the tabs have changed.
void NotifyTabsChanged();
@@ -235,6 +237,10 @@
// hold.
void ValidateAndDeleteEmptyEntries(std::vector<Entry*>* entries);
+ // Finds tab entries with the old browser_id and sets it to the new one.
+ void UpdateTabBrowserIDs(SessionID::id_type old_id,
+ SessionID::id_type new_id);
+
// Callback from SessionService when we've received the windows from the
// previous session. This creates and add entries to |staging_entries_|
// and invokes LoadStateChanged.
« no previous file with comments | « no previous file | chrome/browser/sessions/tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698