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

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: Rebase 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 37fefc6bb330cf4f617b67919119871d593067c5..97b823370c50d09b3a68e777586b02dfa17eb9e7 100644
--- a/components/sync_driver/data_type_controller.h
+++ b/components/sync_driver/data_type_controller.h
@@ -133,6 +133,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