OLD | NEW |
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 CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // TODO(zea): Have all datatypes using the new API switch to returning | 65 // TODO(zea): Have all datatypes using the new API switch to returning |
66 // SyncableService weak pointers instead of SyncComponents (crbug.com/100114). | 66 // SyncableService weak pointers instead of SyncComponents (crbug.com/100114). |
67 struct SyncComponents { | 67 struct SyncComponents { |
68 sync_driver::AssociatorInterface* model_associator; | 68 sync_driver::AssociatorInterface* model_associator; |
69 sync_driver::ChangeProcessor* change_processor; | 69 sync_driver::ChangeProcessor* change_processor; |
70 SyncComponents(sync_driver::AssociatorInterface* ma, | 70 SyncComponents(sync_driver::AssociatorInterface* ma, |
71 sync_driver::ChangeProcessor* cp) | 71 sync_driver::ChangeProcessor* cp) |
72 : model_associator(ma), change_processor(cp) {} | 72 : model_associator(ma), change_processor(cp) {} |
73 }; | 73 }; |
74 | 74 |
75 virtual ~ProfileSyncComponentsFactory() OVERRIDE {} | 75 virtual ~ProfileSyncComponentsFactory() override {} |
76 | 76 |
77 // Creates and registers enabled datatypes with the provided | 77 // Creates and registers enabled datatypes with the provided |
78 // ProfileSyncService. | 78 // ProfileSyncService. |
79 virtual void RegisterDataTypes(ProfileSyncService* pss) = 0; | 79 virtual void RegisterDataTypes(ProfileSyncService* pss) = 0; |
80 | 80 |
81 // Instantiates a new DataTypeManager with a SyncBackendHost, a list of data | 81 // Instantiates a new DataTypeManager with a SyncBackendHost, a list of data |
82 // type controllers and a DataTypeManagerObserver. The return pointer is | 82 // type controllers and a DataTypeManagerObserver. The return pointer is |
83 // owned by the caller. | 83 // owned by the caller. |
84 virtual sync_driver::DataTypeManager* CreateDataTypeManager( | 84 virtual sync_driver::DataTypeManager* CreateDataTypeManager( |
85 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& | 85 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& |
(...skipping 19 matching lines...) Expand all Loading... |
105 virtual SyncComponents CreateBookmarkSyncComponents( | 105 virtual SyncComponents CreateBookmarkSyncComponents( |
106 ProfileSyncService* profile_sync_service, | 106 ProfileSyncService* profile_sync_service, |
107 sync_driver::DataTypeErrorHandler* error_handler) = 0; | 107 sync_driver::DataTypeErrorHandler* error_handler) = 0; |
108 virtual SyncComponents CreateTypedUrlSyncComponents( | 108 virtual SyncComponents CreateTypedUrlSyncComponents( |
109 ProfileSyncService* profile_sync_service, | 109 ProfileSyncService* profile_sync_service, |
110 history::HistoryBackend* history_backend, | 110 history::HistoryBackend* history_backend, |
111 sync_driver::DataTypeErrorHandler* error_handler) = 0; | 111 sync_driver::DataTypeErrorHandler* error_handler) = 0; |
112 }; | 112 }; |
113 | 113 |
114 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__ | 114 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__ |
OLD | NEW |