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

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

Issue 21656002: Return webcontents and add in test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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..08b2a69d9d82847baa8d7cf3384dc73343a1330c 100644
--- a/chrome/browser/sessions/persistent_tab_restore_service.h
+++ b/chrome/browser/sessions/persistent_tab_restore_service.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_SESSIONS_PERSISTENT_TAB_RESTORE_SERVICE_H_
#define CHROME_BROWSER_SESSIONS_PERSISTENT_TAB_RESTORE_SERVICE_H_
+#include <vector>
+
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
@@ -31,14 +33,15 @@ class PersistentTabRestoreService : public TabRestoreService {
virtual void BrowserClosed(TabRestoreServiceDelegate* delegate) OVERRIDE;
virtual void ClearEntries() OVERRIDE;
virtual const Entries& entries() const OVERRIDE;
- virtual void RestoreMostRecentEntry(
+ virtual std::vector<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;
+ virtual std::vector<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;
« no previous file with comments | « chrome/browser/sessions/in_memory_tab_restore_service.cc ('k') | chrome/browser/sessions/persistent_tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698