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

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: 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/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..6669bcbf3729ae196862a45cfe1eebccf51438d4 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::LiveTab* GetLiveTabAt(int index) const override;
+ sessions::LiveTab* GetActiveLiveTab() const override;
bool IsTabPinned(int index) const override;
- content::WebContents* AddRestoredTab(
+ sessions::LiveTab* 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::LiveTab* ReplaceRestoredTab(
const std::vector<sessions::SerializedNavigationEntry>& navigations,
int selected_navigation,
bool from_last_session,
« no previous file with comments | « chrome/browser/sessions/tab_restore_service_helper.cc ('k') | chrome/browser/ui/browser_tab_restore_service_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698