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

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

Issue 14497003: Moves TabNavigation into components/sessions and renames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 7 years, 8 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_tabrestore.h
diff --git a/chrome/browser/ui/browser_tabrestore.h b/chrome/browser/ui/browser_tabrestore.h
index d4a2f09649550c10d8ce22cb8031867b230bcfa2..5cd85cd8a31654083ec59065aca37092f254ce9d 100644
--- a/chrome/browser/ui/browser_tabrestore.h
+++ b/chrome/browser/ui/browser_tabrestore.h
@@ -11,6 +11,10 @@
class Browser;
+namespace components {
+class SerializedNavigationEntry;
+}
+
namespace content {
class SessionStorageNamespace;
class WebContents;
@@ -21,8 +25,8 @@ namespace chrome {
// Add a tab with its session history restored from the SessionRestore
// system. If select is true, the tab is selected. |tab_index| gives the index
// to insert the tab at. |selected_navigation| is the index of the
-// TabNavigation in |navigations| to select. If |extension_app_id| is
-// non-empty the tab is an app tab and |extension_app_id| is the id of the
+// SerializedNavigationEntry in |navigations| to select. If |extension_app_id|
+// is non-empty the tab is an app tab and |extension_app_id| is the id of the
// extension. If |pin| is true and |tab_index|/ is the last pinned tab, then
// the newly created tab is pinned. If |from_last_session| is true,
// |navigations| are from the previous session. |user_agent_override| contains
@@ -30,7 +34,7 @@ namespace chrome {
// the regular user agent is overridden.
content::WebContents* AddRestoredTab(
Browser* browser,
- const std::vector<TabNavigation>& navigations,
+ const std::vector<components::SerializedNavigationEntry>& navigations,
int tab_index,
int selected_navigation,
const std::string& extension_app_id,
@@ -44,7 +48,7 @@ content::WebContents* AddRestoredTab(
// history restored from the SessionRestore system.
void ReplaceRestoredTab(
Browser* browser,
- const std::vector<TabNavigation>& navigations,
+ const std::vector<components::SerializedNavigationEntry>& navigations,
int selected_navigation,
bool from_last_session,
const std::string& extension_app_id,

Powered by Google App Engine
This is Rietveld 408576698