diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-06 15:27:14 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-06 15:27:14 +0000 |
commit | 03838e231df0acc3dbcbb4d97198f5b82d13713b (patch) | |
tree | 5f2afb72886b3c6f8f161ec6d60225a36082faa8 /content/browser/tab_contents/navigation_controller.h | |
parent | 277c7b7879f17c1d830e456ea46648f9b07337b4 (diff) | |
download | chromium_src-03838e231df0acc3dbcbb4d97198f5b82d13713b.zip chromium_src-03838e231df0acc3dbcbb4d97198f5b82d13713b.tar.gz chromium_src-03838e231df0acc3dbcbb4d97198f5b82d13713b.tar.bz2 |
Moves some of the session dependencies from content to chrome.
BUG=none
TEST=none
R=brettw@chromium.org
Review URL: http://codereview.chromium.org/7112023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87985 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/tab_contents/navigation_controller.h')
-rw-r--r-- | content/browser/tab_contents/navigation_controller.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/content/browser/tab_contents/navigation_controller.h b/content/browser/tab_contents/navigation_controller.h index 025c2b0..e6cfbff 100644 --- a/content/browser/tab_contents/navigation_controller.h +++ b/content/browser/tab_contents/navigation_controller.h @@ -24,7 +24,6 @@ class Profile; class SessionStorageNamespace; class SiteInstance; class TabContents; -class TabNavigation; struct ViewHostMsg_FrameNavigate_Params; namespace content { @@ -66,10 +65,12 @@ class NavigationController { // using selected_navigation as the currently loaded entry. Before this call // the controller should be unused (there should be no current entry). If // from_last_session is true, navigations are from the previous session, - // otherwise they are from the current session (undo tab close). + // otherwise they are from the current session (undo tab close). This takes + // ownership of the NavigationEntrys in |entries| and clears it out. // This is used for session restore. - void RestoreFromState(const std::vector<TabNavigation>& navigations, - int selected_navigation, bool from_last_session); + void Restore(int selected_navigation, + bool from_last_session, + std::vector<NavigationEntry*>* entries); // Active entry -------------------------------------------------------------- @@ -325,8 +326,7 @@ class NavigationController { bool IsInitialNavigation(); // Creates navigation entry and translates the virtual url to a real one. - // Used when restoring a tab from a TabNavigation object and when navigating - // to a new URL using LoadURL. + // Used when navigating to a new URL using LoadURL. static NavigationEntry* CreateNavigationEntry(const GURL& url, const GURL& referrer, PageTransition::Type transition, @@ -410,12 +410,6 @@ class NavigationController { // user-initiated. bool IsLikelyAutoNavigation(base::TimeTicks now); - // Creates a new NavigationEntry for each TabNavigation in navigations, adding - // the NavigationEntry to entries. This is used during session restore. - void CreateNavigationEntriesFromTabNavigations( - const std::vector<TabNavigation>& navigations, - std::vector<linked_ptr<NavigationEntry> >* entries); - // Inserts up to |max_index| entries from |source| into this. This does NOT // adjust any of the members that reference entries_ // (last_committed_entry_index_, pending_entry_index_ or |