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

Unified Diff: components/sync/driver/sync_api_component_factory.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/sync_api_component_factory.h
diff --git a/components/sync/driver/sync_api_component_factory.h b/components/sync/driver/sync_api_component_factory.h
index 7c1ac75abf5cad4513e21fb080516cfcae99bd0b..cb869fd8d5fd9ba6562f88a91fef36d5bb4dcc24 100644
--- a/components/sync/driver/sync_api_component_factory.h
+++ b/components/sync/driver/sync_api_component_factory.h
@@ -32,7 +32,7 @@ class DataTypeEncryptionHandler;
class DataTypeManager;
class DataTypeManagerObserver;
class LocalDeviceInfoProvider;
-class SyncBackendHost;
+class SyncEngine;
class SyncClient;
class SyncPrefs;
class SyncService;
@@ -78,18 +78,16 @@ class SyncApiComponentFactory {
SyncService* sync_service,
const RegisterDataTypesMethod& register_platform_types_method) = 0;
- // Instantiates a new DataTypeManager with a SyncBackendHost, a list of data
- // type controllers and a DataTypeManagerObserver. The return pointer is
- // owned by the caller.
+ // Creates a DataTypeManager; the return pointer is owned by the caller.
virtual DataTypeManager* CreateDataTypeManager(
const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener,
const DataTypeController::TypeMap* controllers,
const DataTypeEncryptionHandler* encryption_handler,
- SyncBackendHost* backend,
+ SyncEngine* engine,
DataTypeManagerObserver* observer) = 0;
// Creating this in the factory helps us mock it out in testing.
- virtual SyncBackendHost* CreateSyncBackendHost(
+ virtual SyncEngine* CreateSyncEngine(
const std::string& name,
invalidation::InvalidationService* invalidator,
const base::WeakPtr<SyncPrefs>& sync_prefs,
« no previous file with comments | « components/sync/driver/startup_controller_unittest.cc ('k') | components/sync/driver/sync_api_component_factory_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698