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

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: 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
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..cd61befdc86ab66b96d2bdb6deef9da7142e52c4 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() {}
+ // Tests if a given URL should be tracked.
+ virtual bool ShouldTrackEntry(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;

Powered by Google App Engine
This is Rietveld 408576698