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

Unified Diff: chrome/browser/sessions/base_session_service.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/sessions/base_session_service.h
diff --git a/chrome/browser/sessions/base_session_service.h b/chrome/browser/sessions/base_session_service.h
index 1d3fac2476d00df0eff6833e5747de50347545f0..8cf87d166c5047dd89d51552183783657ced9f22 100644
--- a/chrome/browser/sessions/base_session_service.h
+++ b/chrome/browser/sessions/base_session_service.h
@@ -21,7 +21,10 @@
class Profile;
class SessionBackend;
class SessionCommand;
-class TabNavigation;
+
+namespace components {
+class SerializedNavigationEntry;
+}
// BaseSessionService is the super class of both tab restore service and
// session service. It contains commonality needed by both, in particular
@@ -89,7 +92,7 @@ class BaseSessionService : public CancelableRequestProvider {
SessionCommand* CreateUpdateTabNavigationCommand(
SessionID::id_type command_id,
SessionID::id_type tab_id,
- const TabNavigation& navigation);
+ const components::SerializedNavigationEntry& navigation);
// Creates a SessionCommand that represents marking a tab as an application.
SessionCommand* CreateSetTabExtensionAppIDCommand(
@@ -111,11 +114,13 @@ class BaseSessionService : public CancelableRequestProvider {
const std::string& app_name);
// Converts a SessionCommand previously created by
- // CreateUpdateTabNavigationCommand into a TabNavigation. Returns true
- // on success. If successful |tab_id| is set to the id of the restored tab.
- bool RestoreUpdateTabNavigationCommand(const SessionCommand& command,
- TabNavigation* navigation,
- SessionID::id_type* tab_id);
+ // CreateUpdateTabNavigationCommand into a
+ // components::SerializedNavigationEntry. Returns true on success. If
+ // successful |tab_id| is set to the id of the restored tab.
+ bool RestoreUpdateTabNavigationCommand(
+ const SessionCommand& command,
+ components::SerializedNavigationEntry* navigation,
+ SessionID::id_type* tab_id);
// Extracts a SessionCommand as previously created by
// CreateSetTabExtensionAppIDCommand into the tab id and application

Powered by Google App Engine
This is Rietveld 408576698