diff options
Diffstat (limited to 'chrome/browser/sessions/base_session_service.h')
-rw-r--r-- | chrome/browser/sessions/base_session_service.h | 14 |
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); |