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

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

Issue 2641523004: [Sync] Make directory types registration explicit in ModelTypeRegistry (Closed)
Patch Set: Address comments Created 3 years, 11 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
« no previous file with comments | « components/sync/engine/fake_sync_manager.cc ('k') | components/sync/engine/model_type_connector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine/model_type_configurer.h
diff --git a/components/sync/engine/model_type_configurer.h b/components/sync/engine/model_type_configurer.h
index a913a352e56635a4e9b12eb19181d1929b5722be..72d0951e18a9b35f243ddc6e4c0b83c40baf6440 100644
--- a/components/sync/engine/model_type_configurer.h
+++ b/components/sync/engine/model_type_configurer.h
@@ -56,6 +56,16 @@ class ModelTypeConfigurer {
// Changes the set of data types that are currently being synced.
virtual void ConfigureDataTypes(ConfigureParams params) = 0;
+ // Registers directory type with sync engine. This function creates update
+ // handler for the type and thus needs to be called before ConfigureDataType
+ // that includes the type in |to_download| type set.
+ virtual void RegisterDirectoryDataType(ModelType type,
+ ModelSafeGroup group) = 0;
+
+ // Unregisters directory type from sync engine. After this call updates and
+ // local change will not be synced with server.
+ virtual void UnregisterDirectoryDataType(ModelType type) = 0;
+
// Activates change processing for the given directory data type. This must
// be called synchronously with the data type's model association so
// no changes are dropped between model association and change
« no previous file with comments | « components/sync/engine/fake_sync_manager.cc ('k') | components/sync/engine/model_type_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698