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

Unified Diff: chrome/browser/sessions/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/tab_restore_service.h
diff --git a/chrome/browser/sessions/tab_restore_service.h b/chrome/browser/sessions/tab_restore_service.h
index e230deffff15d28719367ec4008b174bf2bf5ef9..ff2fd87ffe6aa30596425b1921a88ab9644b981c 100644
--- a/chrome/browser/sessions/tab_restore_service.h
+++ b/chrome/browser/sessions/tab_restore_service.h
@@ -155,8 +155,11 @@ class TabRestoreService : public BrowserContextKeyedService {
// Restores the most recently closed entry. Does nothing if there are no
// entries to restore. If the most recently restored entry is a tab, it is
// added to |delegate|. If a new browser needs to be created for this entry,
- // it will be created on the desktop specified by |host_desktop_type|.
- virtual void RestoreMostRecentEntry(
+ // it will be created on the desktop specified by |host_desktop_type|. 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
sky 2013/08/01 00:05:43 Return value doesn't make sense here. SHouldn't th
Kristen Dwan 2013/08/02 20:54:19 Done.
+ // restored tab in the window.
+ virtual content::WebContents* RestoreMostRecentEntry(
TabRestoreServiceDelegate* delegate,
chrome::HostDesktopType host_desktop_type) = 0;
@@ -170,10 +173,14 @@ class TabRestoreService : public BrowserContextKeyedService {
// browser window) of the tab when it was closed will be respected if
// disposition is UNKNOWN. If a new browser needs to be created for this
// entry, it will be created on the desktop specified by |host_desktop_type|.
- virtual void RestoreEntryById(TabRestoreServiceDelegate* delegate,
- SessionID::id_type id,
- chrome::HostDesktopType host_desktop_type,
- WindowOpenDisposition disposition) = 0;
+ // 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
sky 2013/08/01 00:05:43 Same comment.
Kristen Dwan 2013/08/02 20:54:19 Done.
+ // restored tab in the window.
+ virtual content::WebContents* RestoreEntryById(
+ TabRestoreServiceDelegate* delegate,
+ SessionID::id_type id,
+ chrome::HostDesktopType host_desktop_type,
+ WindowOpenDisposition disposition) = 0;
// Loads the tabs and previous session. This does nothing if the tabs
// from the previous session have already been loaded.

Powered by Google App Engine
This is Rietveld 408576698