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

Unified Diff: chrome/browser/sessions/session_service.h

Issue 14497003: Moves TabNavigation into components/sessions and renames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really remove webkit_support 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
« no previous file with comments | « chrome/browser/sessions/session_restore_browsertest.cc ('k') | chrome/browser/sessions/session_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_service.h
diff --git a/chrome/browser/sessions/session_service.h b/chrome/browser/sessions/session_service.h
index e63b77f43c91609ee26e6353452ee7b5c754f33a..c596bac599cc41d0691c12d8654edb5a79cc0f9d 100644
--- a/chrome/browser/sessions/session_service.h
+++ b/chrome/browser/sessions/session_service.h
@@ -49,11 +49,11 @@ class WebContents;
// with incognito windows.
//
// SessionService itself maintains a set of SessionCommands that allow
-// SessionService to rebuild the open state of the browser (as
-// SessionWindow, SessionTab and TabNavigation). The commands are periodically
+// SessionService to rebuild the open state of the browser (as SessionWindow,
+// SessionTab and SerializedNavigationEntry). The commands are periodically
// flushed to SessionBackend and written to a file. Every so often
-// SessionService rebuilds the contents of the file from the open state
-// of the browser.
+// SessionService rebuilds the contents of the file from the open state of the
+// browser.
class SessionService : public BaseSessionService,
public ProfileKeyedService,
public content::NotificationObserver,
@@ -159,9 +159,10 @@ class SessionService : public BaseSessionService,
int count);
// Updates the navigation entry for the specified tab.
- void UpdateTabNavigation(const SessionID& window_id,
- const SessionID& tab_id,
- const TabNavigation& navigation);
+ void UpdateTabNavigation(
+ const SessionID& window_id,
+ const SessionID& tab_id,
+ const sessions::SerializedNavigationEntry& navigation);
// Notification that a tab has restored its entries or a closed tab is being
// reused.
@@ -308,8 +309,9 @@ class SessionService : public BaseSessionService,
// navigation with an index > |index| is returned.
//
// This assumes the navigations are ordered by index in ascending order.
- std::vector<TabNavigation>::iterator FindClosestNavigationWithIndex(
- std::vector<TabNavigation>* navigations,
+ std::vector<sessions::SerializedNavigationEntry>::iterator
+ FindClosestNavigationWithIndex(
+ std::vector<sessions::SerializedNavigationEntry>* navigations,
int index);
// Does the following:
« no previous file with comments | « chrome/browser/sessions/session_restore_browsertest.cc ('k') | chrome/browser/sessions/session_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698