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

Unified Diff: components/sessions/core/tab_restore_service_client.h

Issue 1331173002: Eliminate BaseSessionServiceDelegateImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@persistent_tab_restore_service_client
Patch Set: Response to reviewv Created 5 years, 3 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 | « components/sessions/base_session_service_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e529751bb714387b9aff2c8db9c48cd0eee1af66..ce60f99f45c331d29315b2a68d63bbf5e2ec38c6 100644
--- a/components/sessions/core/tab_restore_service_client.h
+++ b/components/sessions/core/tab_restore_service_client.h
@@ -12,6 +12,7 @@
namespace base {
class CancelableTaskTracker;
+class SequencedWorkerPool;
}
namespace sessions {
@@ -35,6 +36,13 @@ class TabRestoreServiceClient {
public:
virtual ~TabRestoreServiceClient() {}
+ // Returns whether a given URL should be tracked for restoring.
+ virtual bool ShouldTrackURLForRestore(const GURL& url) = 0;
+
+ // Get the sequenced worker pool for running tasks on the backend thread as
+ // long as the system is not shutting down.
+ virtual base::SequencedWorkerPool* GetBlockingPool() = 0;
+
// Returns the path of the directory to save state into.
virtual base::FilePath GetPathToSaveTo() = 0;
« no previous file with comments | « components/sessions/base_session_service_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698