Index: components/sessions/core/tab_restore_service_client.h |
diff --git a/components/sessions/core/tab_restore_service_client.h b/components/sessions/core/tab_restore_service_client.h |
index c2933220a22dfccb293597996cf24eaeefd6c5d9..e529751bb714387b9aff2c8db9c48cd0eee1af66 100644 |
--- a/components/sessions/core/tab_restore_service_client.h |
+++ b/components/sessions/core/tab_restore_service_client.h |
@@ -6,6 +6,7 @@ |
#define COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_CLIENT_H_ |
#include "base/callback.h" |
+#include "base/files/file_path.h" |
#include "base/memory/scoped_vector.h" |
#include "components/sessions/session_id.h" |
@@ -17,6 +18,8 @@ namespace sessions { |
struct SessionWindow; |
} |
+class GURL; |
+ |
namespace sessions { |
struct SessionWindow; |
@@ -32,6 +35,12 @@ class TabRestoreServiceClient { |
public: |
virtual ~TabRestoreServiceClient() {} |
+ // Returns the path of the directory to save state into. |
+ virtual base::FilePath GetPathToSaveTo() = 0; |
+ |
+ // Returns the URL that corresponds to the new tab page. |
+ virtual GURL GetNewTabURL() = 0; |
+ |
// Returns whether there is a previous session to load. |
virtual bool HasLastSession() = 0; |
@@ -40,6 +49,10 @@ class TabRestoreServiceClient { |
// it means the session could not be restored. |
virtual void GetLastSession(const GetLastSessionCallback& callback, |
base::CancelableTaskTracker* tracker) = 0; |
+ |
+ // Called when a tab is restored. |url| is the URL that the tab is currently |
+ // visiting. |
+ virtual void OnTabRestored(const GURL& url) {} |
}; |
} // namespace sessions |