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

Unified Diff: components/sync_driver/data_type_controller.h

Issue 312163004: [Sync] Add support for dynamically enabling/disabling types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment, fix purging behavior Created 6 years, 6 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/sync_driver/data_type_controller.h
diff --git a/components/sync_driver/data_type_controller.h b/components/sync_driver/data_type_controller.h
index be6e65a9b92a068bb70f758e083749afd376a1f8..acceace2c60d69ae689df49b8e6b88ed6f54a6e1 100644
--- a/components/sync_driver/data_type_controller.h
+++ b/components/sync_driver/data_type_controller.h
@@ -136,6 +136,13 @@ class DataTypeController
// UserShare handle to associate model data with.
void OnUserShareReady(syncer::UserShare* share);
+ // Whether the DataTypeController is ready to start. This is useful if the
+ // datatype itself must make the decision about whether it should be enabled
+ // at all (and therefore whether the initial download of the sync data for
+ // the type should be performed).
+ // Returns true by default.
+ virtual bool ReadyForStart() const;
+
protected:
friend class base::RefCountedDeleteOnMessageLoop<DataTypeController>;
friend class base::DeleteHelper<DataTypeController>;

Powered by Google App Engine
This is Rietveld 408576698