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

Unified Diff: chrome/browser/sessions/in_memory_tab_restore_service.cc

Issue 1321713005: Abstract WebContents/NavigationController from core TabRestore code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 5 years, 3 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/in_memory_tab_restore_service.cc
diff --git a/chrome/browser/sessions/in_memory_tab_restore_service.cc b/chrome/browser/sessions/in_memory_tab_restore_service.cc
index dd3b6eeb12aa07e129c0ec33ae7a82d53ecbfd58..0f9e65f87c7b327b30dd72d6b25cca5ec6ad3979 100644
--- a/chrome/browser/sessions/in_memory_tab_restore_service.cc
+++ b/chrome/browser/sessions/in_memory_tab_restore_service.cc
@@ -8,6 +8,8 @@
#include "base/compiler_specific.h"
+using sessions::LiveTab;
+
InMemoryTabRestoreService::InMemoryTabRestoreService(
scoped_ptr<sessions::TabRestoreServiceClient> client,
TabRestoreService::TimeFactory* time_factory)
@@ -26,10 +28,9 @@ void InMemoryTabRestoreService::RemoveObserver(
helper_.RemoveObserver(observer);
}
-void InMemoryTabRestoreService::CreateHistoricalTab(
- content::WebContents* contents,
- int index) {
- helper_.CreateHistoricalTab(contents, index);
+void InMemoryTabRestoreService::CreateHistoricalTab(LiveTab* live_tab,
+ int index) {
+ helper_.CreateHistoricalTab(live_tab, index);
}
void InMemoryTabRestoreService::BrowserClosing(
@@ -50,8 +51,7 @@ const TabRestoreService::Entries& InMemoryTabRestoreService::entries() const {
return helper_.entries();
}
-std::vector<content::WebContents*>
-InMemoryTabRestoreService::RestoreMostRecentEntry(
+std::vector<LiveTab*> InMemoryTabRestoreService::RestoreMostRecentEntry(
TabRestoreServiceDelegate* delegate,
int host_desktop_type) {
return helper_.RestoreMostRecentEntry(delegate, host_desktop_type);
@@ -62,7 +62,7 @@ TabRestoreService::Tab* InMemoryTabRestoreService::RemoveTabEntryById(
return helper_.RemoveTabEntryById(id);
}
-std::vector<content::WebContents*> InMemoryTabRestoreService::RestoreEntryById(
+std::vector<LiveTab*> InMemoryTabRestoreService::RestoreEntryById(
TabRestoreServiceDelegate* delegate,
SessionID::id_type id,
int host_desktop_type,
« no previous file with comments | « chrome/browser/sessions/in_memory_tab_restore_service.h ('k') | chrome/browser/sessions/persistent_tab_restore_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698