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

Unified Diff: components/sync/engine/model_safe_worker.h

Issue 2505913003: [Sync] Signal UIModelWorker to abort on sync shutdown. (Closed)
Patch Set: CR maxbogue #21 Created 4 years, 1 month 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 | « no previous file | components/sync/engine/ui_model_worker.h » ('j') | components/sync/engine/ui_model_worker.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine/model_safe_worker.h
diff --git a/components/sync/engine/model_safe_worker.h b/components/sync/engine/model_safe_worker.h
index caacfcaf47705de59c101d6023f90b6171e1c4b5..7165621318f77916f676a9181b4bf3acac8e992e 100644
--- a/components/sync/engine/model_safe_worker.h
+++ b/components/sync/engine/model_safe_worker.h
@@ -62,6 +62,9 @@ class ModelSafeWorker : public base::RefCountedThreadSafe<ModelSafeWorker> {
// or browser is shutting down. Called on UI loop.
virtual void RequestStop();
+ // Return true if the worker was stopped. Thread safe.
+ bool IsStopped();
+
virtual ModelSafeGroup GetModelSafeGroup() = 0;
// Returns true if called on the thread this worker works on.
@@ -76,9 +79,6 @@ class ModelSafeWorker : public base::RefCountedThreadSafe<ModelSafeWorker> {
// from a model-safe thread.
virtual SyncerError DoWorkAndWaitUntilDoneImpl(const WorkCallback& work) = 0;
- // Return true if the worker was stopped. Thread safe.
- bool IsStopped();
-
private:
friend class base::RefCountedThreadSafe<ModelSafeWorker>;
« no previous file with comments | « no previous file | components/sync/engine/ui_model_worker.h » ('j') | components/sync/engine/ui_model_worker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698