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

Unified Diff: chrome/browser/sync/glue/sync_backend_registrar.h

Issue 14046031: Worker changes to prepare for lock-free shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: chrome/browser/sync/glue/sync_backend_registrar.h
diff --git a/chrome/browser/sync/glue/sync_backend_registrar.h b/chrome/browser/sync/glue/sync_backend_registrar.h
index f43e2791318838fe54e9e2db9269c73886c065ab..9bed0bb7fb64f3cdd1cb1ae25d07aa5e002d2d90 100644
--- a/chrome/browser/sync/glue/sync_backend_registrar.h
+++ b/chrome/browser/sync/glue/sync_backend_registrar.h
@@ -34,7 +34,8 @@ class UIModelWorker;
// A class that keep track of the workers, change processors, and
// routing info for the enabled sync types, and also routes change
// events to the right processors.
-class SyncBackendRegistrar : public syncer::SyncManager::ChangeDelegate {
+class SyncBackendRegistrar : public syncer::SyncManager::ChangeDelegate,
+ public syncer::WorkerObserver {
tim (not reviewing) 2013/05/14 04:14:29 WorkerDestructionObserver would be a better name f
haitaol1 2013/05/15 23:39:21 I think WorkerLoopDesctructionObserver is more acc
public:
// |name| is used for debugging. Does not take ownership of |profile| or
// |sync_loop|. Must be created on the UI thread.
@@ -108,6 +109,9 @@ class SyncBackendRegistrar : public syncer::SyncManager::ChangeDelegate {
void GetWorkers(std::vector<syncer::ModelSafeWorker*>* out);
void GetModelSafeRoutingInfo(syncer::ModelSafeRoutingInfo* out);
+ // syncer::WorkerObserver implementation.
+ virtual void OnWorkerDisabled(syncer::ModelSafeGroup group) OVERRIDE;
+
private:
typedef std::map<syncer::ModelSafeGroup,
scoped_refptr<syncer::ModelSafeWorker> > WorkerMap;

Powered by Google App Engine
This is Rietveld 408576698