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

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

Issue 21022018: Sessions API - previously Session Restore API. Supports restoring currently open foreign windows an… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added assert true to test Created 7 years, 5 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
Index: chrome/browser/sessions/persistent_tab_restore_service.h
diff --git a/chrome/browser/sessions/persistent_tab_restore_service.h b/chrome/browser/sessions/persistent_tab_restore_service.h
index fccce693d38f2c293a482b341d7f48d35b37a508..f35cb985609d93280822d7f2451509124a46b755 100644
--- a/chrome/browser/sessions/persistent_tab_restore_service.h
+++ b/chrome/browser/sessions/persistent_tab_restore_service.h
@@ -31,14 +31,21 @@ class PersistentTabRestoreService : public TabRestoreService {
virtual void BrowserClosed(TabRestoreServiceDelegate* delegate) OVERRIDE;
virtual void ClearEntries() OVERRIDE;
virtual const Entries& entries() const OVERRIDE;
- virtual void RestoreMostRecentEntry(
+ // Returns the WebContents of the restored tab if entry is a Tab. In the case
sky 2013/08/01 00:05:43 Don't duplicate the documentation when overriding
Kristen Dwan 2013/08/02 20:54:19 Done.
+ // of restoring type Window, returns the WebContents of the last successfully
+ // restored tab in the window.
+ virtual content::WebContents* RestoreMostRecentEntry(
TabRestoreServiceDelegate* delegate,
chrome::HostDesktopType host_desktop_type) OVERRIDE;
virtual Tab* RemoveTabEntryById(SessionID::id_type id) OVERRIDE;
- virtual void RestoreEntryById(TabRestoreServiceDelegate* delegate,
- SessionID::id_type id,
- chrome::HostDesktopType host_desktop_type,
- WindowOpenDisposition disposition) OVERRIDE;
+ // Returns the WebContents of the restored tab if entry is a Tab. In the case
+ // of restoring type Window, returns the WebContents of the last successfully
+ // restored tab in the window.
+ virtual content::WebContents* RestoreEntryById(
+ TabRestoreServiceDelegate* delegate,
+ SessionID::id_type id,
+ chrome::HostDesktopType host_desktop_type,
+ WindowOpenDisposition disposition) OVERRIDE;
virtual void LoadTabsFromLastSession() OVERRIDE;
virtual bool IsLoaded() const OVERRIDE;
virtual void DeleteLastSession() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698