summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sessions/base_session_service.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 20:30:10 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 20:30:10 +0000
commitfca656cb7bd5737a18c809d8f44edc6a99e6bb9a (patch)
tree477a3061a64a4f845642c7de780864214201e3f0 /chrome/browser/sessions/base_session_service.h
parent381f69ad5478d24e5bbb448727c05379204c87d3 (diff)
downloadchromium_src-fca656cb7bd5737a18c809d8f44edc6a99e6bb9a.zip
chromium_src-fca656cb7bd5737a18c809d8f44edc6a99e6bb9a.tar.gz
chromium_src-fca656cb7bd5737a18c809d8f44edc6a99e6bb9a.tar.bz2
Adds code to restore application extensions. I'm also enabling tab
pinning on views again as everything in place, except a couple of bugs. BUG=32845 TEST=none Review URL: http://codereview.chromium.org/598027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38657 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sessions/base_session_service.h')
-rw-r--r--chrome/browser/sessions/base_session_service.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/sessions/base_session_service.h b/chrome/browser/sessions/base_session_service.h
index ae4cbce..b311fd8 100644
--- a/chrome/browser/sessions/base_session_service.h
+++ b/chrome/browser/sessions/base_session_service.h
@@ -119,6 +119,12 @@ class BaseSessionService : public CancelableRequestProvider,
int index,
const NavigationEntry& entry);
+ // Creates a SessionCommand that represents marking a tab as an application.
+ SessionCommand* CreateSetTabAppExtensionIDCommand(
+ SessionID::id_type command_id,
+ SessionID::id_type tab_id,
+ const std::string& extension_id);
+
// 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.
@@ -126,6 +132,14 @@ class BaseSessionService : public CancelableRequestProvider,
TabNavigation* navigation,
SessionID::id_type* tab_id);
+ // Extracts a SessionCommand as previously created by
+ // CreateSetTabAppExtensionIDCommand into the tab id and application
+ // extension id.
+ bool RestoreSetTabAppExtensionIDCommand(
+ const SessionCommand& command,
+ SessionID::id_type* tab_id,
+ std::string* app_extension_id);
+
// Returns true if the NavigationEntry should be written to disk.
bool ShouldTrackEntry(const NavigationEntry& entry);