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

Unified Diff: components/sync/driver/data_type_controller.h

Issue 2533083002: [Sync] SyncEngine refactor part 1: interfaces. (Closed)
Patch Set: Rebase. Created 4 years 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 6c25d1562f0d072ed2ae50bb9fd858b49fc721d2..76d0c63b060af31ae1feeb17942e3ca35a2c7ac5 100644
--- a/components/sync/driver/data_type_controller.h
+++ b/components/sync/driver/data_type_controller.h
@@ -20,7 +20,7 @@
namespace syncer {
-class BackendDataTypeConfigurer;
+class ModelTypeConfigurer;
class SyncError;
class SyncMergeResult;
@@ -102,7 +102,7 @@ class DataTypeController : public base::SupportsWeakPtr<DataTypeController> {
// DataTypeManager before downloading initial data. Non-blocking types need to
// pass activation context containing progress marker to sync backend before
// initial download starts.
- virtual void RegisterWithBackend(BackendDataTypeConfigurer* configurer) = 0;
+ virtual void RegisterWithBackend(ModelTypeConfigurer* configurer) = 0;
// Will start a potentially asynchronous operation to perform the
// model association. Once the model association is done the callback will
@@ -113,11 +113,11 @@ class DataTypeController : public base::SupportsWeakPtr<DataTypeController> {
// one of the implementation specific methods provided by the |configurer|.
// This is called (on UI thread) after the data type configuration has
// completed successfully.
- virtual void ActivateDataType(BackendDataTypeConfigurer* configurer) = 0;
+ virtual void ActivateDataType(ModelTypeConfigurer* configurer) = 0;
// Called by DataTypeManager to deactivate the controlled data type.
// See comments for ModelAssociationManager::OnSingleDataTypeWillStop.
- virtual void DeactivateDataType(BackendDataTypeConfigurer* configurer) = 0;
+ virtual void DeactivateDataType(ModelTypeConfigurer* configurer) = 0;
// Synchronously stops the data type. If StartAssociating has already been
// called but is not done yet it will be aborted. Similarly if LoadModels
« no previous file with comments | « components/sync/driver/backend_data_type_configurer.cc ('k') | components/sync/driver/data_type_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698