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

Side by Side Diff: components/sync/driver/sync_api_component_factory.h

Issue 2555433003: [Sync] Plumb initial type set from engine to DTM. (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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ 6 #define COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 : model_associator(ma), change_processor(cp) {} 73 : model_associator(ma), change_processor(cp) {}
74 }; 74 };
75 75
76 // Creates and registers enabled datatypes with the provided SyncClient. 76 // Creates and registers enabled datatypes with the provided SyncClient.
77 virtual void RegisterDataTypes( 77 virtual void RegisterDataTypes(
78 SyncService* sync_service, 78 SyncService* sync_service,
79 const RegisterDataTypesMethod& register_platform_types_method) = 0; 79 const RegisterDataTypesMethod& register_platform_types_method) = 0;
80 80
81 // Creates a DataTypeManager; the return pointer is owned by the caller. 81 // Creates a DataTypeManager; the return pointer is owned by the caller.
82 virtual DataTypeManager* CreateDataTypeManager( 82 virtual DataTypeManager* CreateDataTypeManager(
83 ModelTypeSet initial_types,
83 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener, 84 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener,
84 const DataTypeController::TypeMap* controllers, 85 const DataTypeController::TypeMap* controllers,
85 const DataTypeEncryptionHandler* encryption_handler, 86 const DataTypeEncryptionHandler* encryption_handler,
86 SyncEngine* engine, 87 ModelTypeConfigurer* configurer,
87 DataTypeManagerObserver* observer) = 0; 88 DataTypeManagerObserver* observer) = 0;
88 89
89 // Creating this in the factory helps us mock it out in testing. 90 // Creating this in the factory helps us mock it out in testing.
90 virtual SyncEngine* CreateSyncEngine( 91 virtual SyncEngine* CreateSyncEngine(
91 const std::string& name, 92 const std::string& name,
92 invalidation::InvalidationService* invalidator, 93 invalidation::InvalidationService* invalidator,
93 const base::WeakPtr<SyncPrefs>& sync_prefs, 94 const base::WeakPtr<SyncPrefs>& sync_prefs,
94 const base::FilePath& sync_folder) = 0; 95 const base::FilePath& sync_folder) = 0;
95 96
96 // Creating this in the factory helps us mock it out in testing. 97 // Creating this in the factory helps us mock it out in testing.
(...skipping 20 matching lines...) Expand all
117 std::unique_ptr<AttachmentStoreForSync> attachment_store, 118 std::unique_ptr<AttachmentStoreForSync> attachment_store,
118 const UserShare& user_share, 119 const UserShare& user_share,
119 const std::string& store_birthday, 120 const std::string& store_birthday,
120 ModelType model_type, 121 ModelType model_type,
121 AttachmentService::Delegate* delegate) = 0; 122 AttachmentService::Delegate* delegate) = 0;
122 }; 123 };
123 124
124 } // namespace syncer 125 } // namespace syncer
125 126
126 #endif // COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ 127 #endif // COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_
OLDNEW
« no previous file with comments | « components/sync/driver/shared_change_processor_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