 Chromium Code Reviews
 Chromium Code Reviews 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
    
  
    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| 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; |