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

Unified Diff: chrome/browser/sessions/in_memory_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
« no previous file with comments | « no previous file | chrome/browser/sessions/in_memory_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/in_memory_tab_restore_service.h
diff --git a/chrome/browser/sessions/in_memory_tab_restore_service.h b/chrome/browser/sessions/in_memory_tab_restore_service.h
index 760447b0cc578eb1a97fd266e0fd545074394385..bb91252b1f2d2e0d3499979984c1f4a0ab12eaa1 100644
--- a/chrome/browser/sessions/in_memory_tab_restore_service.h
+++ b/chrome/browser/sessions/in_memory_tab_restore_service.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_SESSIONS_IN_MEMORY_TAB_RESTORE_SERVICE_H_
#define CHROME_BROWSER_SESSIONS_IN_MEMORY_TAB_RESTORE_SERVICE_H_
+#include <vector>
+
#include "chrome/browser/sessions/tab_restore_service.h"
#include "chrome/browser/sessions/tab_restore_service_helper.h"
@@ -31,14 +33,15 @@ class InMemoryTabRestoreService : 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 | « no previous file | chrome/browser/sessions/in_memory_tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698