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

Side by Side Diff: components/browser_sync/profile_sync_components_factory_impl.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
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 net::URLRequestContextGetter* url_request_context_getter, 58 net::URLRequestContextGetter* url_request_context_getter,
59 const scoped_refptr<autofill::AutofillWebDataService>& web_data_service, 59 const scoped_refptr<autofill::AutofillWebDataService>& web_data_service,
60 const scoped_refptr<password_manager::PasswordStore>& password_store); 60 const scoped_refptr<password_manager::PasswordStore>& password_store);
61 ~ProfileSyncComponentsFactoryImpl() override; 61 ~ProfileSyncComponentsFactoryImpl() override;
62 62
63 // SyncApiComponentFactory implementation: 63 // SyncApiComponentFactory implementation:
64 void RegisterDataTypes( 64 void RegisterDataTypes(
65 syncer::SyncService* sync_service, 65 syncer::SyncService* sync_service,
66 const RegisterDataTypesMethod& register_platform_types_method) override; 66 const RegisterDataTypesMethod& register_platform_types_method) override;
67 syncer::DataTypeManager* CreateDataTypeManager( 67 syncer::DataTypeManager* CreateDataTypeManager(
68 syncer::ModelTypeSet initial_types,
68 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& 69 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&
69 debug_info_listener, 70 debug_info_listener,
70 const syncer::DataTypeController::TypeMap* controllers, 71 const syncer::DataTypeController::TypeMap* controllers,
71 const syncer::DataTypeEncryptionHandler* encryption_handler, 72 const syncer::DataTypeEncryptionHandler* encryption_handler,
72 syncer::SyncEngine* engine, 73 syncer::ModelTypeConfigurer* configurer,
73 syncer::DataTypeManagerObserver* observer) override; 74 syncer::DataTypeManagerObserver* observer) override;
74 syncer::SyncEngine* CreateSyncEngine( 75 syncer::SyncEngine* CreateSyncEngine(
75 const std::string& name, 76 const std::string& name,
76 invalidation::InvalidationService* invalidator, 77 invalidation::InvalidationService* invalidator,
77 const base::WeakPtr<syncer::SyncPrefs>& sync_prefs, 78 const base::WeakPtr<syncer::SyncPrefs>& sync_prefs,
78 const base::FilePath& sync_folder) override; 79 const base::FilePath& sync_folder) override;
79 std::unique_ptr<syncer::LocalDeviceInfoProvider> 80 std::unique_ptr<syncer::LocalDeviceInfoProvider>
80 CreateLocalDeviceInfoProvider() override; 81 CreateLocalDeviceInfoProvider() override;
81 std::unique_ptr<syncer::AttachmentService> CreateAttachmentService( 82 std::unique_ptr<syncer::AttachmentService> CreateAttachmentService(
82 std::unique_ptr<syncer::AttachmentStoreForSync> attachment_store, 83 std::unique_ptr<syncer::AttachmentStoreForSync> attachment_store,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 124
124 // Whether to override PREFERENCES to use USS. 125 // Whether to override PREFERENCES to use USS.
125 static bool override_prefs_controller_to_uss_for_test_; 126 static bool override_prefs_controller_to_uss_for_test_;
126 127
127 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); 128 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl);
128 }; 129 };
129 130
130 } // namespace browser_sync 131 } // namespace browser_sync
131 132
132 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 133 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
OLDNEW
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698