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

Unified Diff: chrome/browser/ui/browser_tab_restore_service_delegate.h

Issue 1321713005: Abstract WebContents/NavigationController from core TabRestore code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix 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/ui/browser_tab_restore_service_delegate.h
diff --git a/chrome/browser/ui/browser_tab_restore_service_delegate.h b/chrome/browser/ui/browser_tab_restore_service_delegate.h
index 2afd3723656fb37205479b093b3513882ee4ceca..da28121fa7d011ef8c9465d45cd00d3439265fa9 100644
--- a/chrome/browser/ui/browser_tab_restore_service_delegate.h
+++ b/chrome/browser/ui/browser_tab_restore_service_delegate.h
@@ -15,6 +15,10 @@
class Browser;
class Profile;
+namespace content {
+class WebContents;
+}
+
// Implementation of TabRestoreServiceDelegate which uses an instance of
// Browser in order to fulfil its duties.
class BrowserTabRestoreServiceDelegate : public TabRestoreServiceDelegate {
@@ -29,10 +33,10 @@ class BrowserTabRestoreServiceDelegate : public TabRestoreServiceDelegate {
int GetTabCount() const override;
int GetSelectedIndex() const override;
std::string GetAppName() const override;
- content::WebContents* GetWebContentsAt(int index) const override;
- content::WebContents* GetActiveWebContents() const override;
+ sessions::OpenTab* GetOpenTabAt(int index) const override;
+ sessions::OpenTab* GetActiveOpenTab() const override;
bool IsTabPinned(int index) const override;
- content::WebContents* AddRestoredTab(
+ sessions::OpenTab* AddRestoredTab(
const std::vector<sessions::SerializedNavigationEntry>& navigations,
int tab_index,
int selected_navigation,
@@ -42,7 +46,7 @@ class BrowserTabRestoreServiceDelegate : public TabRestoreServiceDelegate {
bool from_last_session,
const sessions::TabClientData* storage_namespace,
const std::string& user_agent_override) override;
- content::WebContents* ReplaceRestoredTab(
+ sessions::OpenTab* ReplaceRestoredTab(
const std::vector<sessions::SerializedNavigationEntry>& navigations,
int selected_navigation,
bool from_last_session,

Powered by Google App Engine
This is Rietveld 408576698