OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FACTORY_H__ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/task.h" | 12 #include "base/task.h" |
13 #include "chrome/browser/sync/glue/change_processor.h" | 13 #include "chrome/browser/sync/glue/change_processor.h" |
14 #include "chrome/browser/sync/glue/data_type_controller.h" | 14 #include "chrome/browser/sync/glue/data_type_controller.h" |
15 #include "chrome/browser/sync/glue/model_associator.h" | 15 #include "chrome/browser/sync/glue/model_associator.h" |
16 #include "chrome/browser/sync/unrecoverable_error_handler.h" | 16 #include "chrome/browser/sync/unrecoverable_error_handler.h" |
17 | 17 |
18 class ExtensionSettingsBackend; | |
19 class PasswordStore; | 18 class PasswordStore; |
20 class PersonalDataManager; | 19 class PersonalDataManager; |
21 class ProfileSyncService; | 20 class ProfileSyncService; |
22 class SyncableService; | 21 class SyncableService; |
23 class WebDatabase; | 22 class WebDatabase; |
24 class WebDataService; | 23 class WebDataService; |
25 | 24 |
26 namespace browser_sync { | 25 namespace browser_sync { |
27 class DataTypeManager; | 26 class DataTypeManager; |
28 class GenericChangeProcessor; | 27 class GenericChangeProcessor; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 WebDataService* web_data_service) const = 0; | 107 WebDataService* web_data_service) const = 0; |
109 | 108 |
110 // Instantiates both a model associator and change processor for the | 109 // Instantiates both a model associator and change processor for the |
111 // bookmark data type. The pointers in the return struct are owned | 110 // bookmark data type. The pointers in the return struct are owned |
112 // by the caller. | 111 // by the caller. |
113 virtual SyncComponents CreateBookmarkSyncComponents( | 112 virtual SyncComponents CreateBookmarkSyncComponents( |
114 ProfileSyncService* profile_sync_service, | 113 ProfileSyncService* profile_sync_service, |
115 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 114 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
116 | 115 |
117 // Instantiates both a model associator and change processor for the | 116 // Instantiates both a model associator and change processor for the |
118 // extension setting data type. The pointers in the return struct are | 117 // extension or app setting data type. The pointers in the return struct are |
119 // owned by the caller. | 118 // owned by the caller. |
120 virtual SyncComponents CreateExtensionSettingSyncComponents( | 119 virtual SyncComponents CreateExtensionOrAppSettingSyncComponents( |
121 ExtensionSettingsBackend* extension_settings_backend_, | 120 // Either EXTENSION_SETTINGS or APP_SETTINGS. |
| 121 syncable::ModelType type, |
| 122 SyncableService* settings_service, |
122 ProfileSyncService* profile_sync_service, | 123 ProfileSyncService* profile_sync_service, |
123 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 124 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
124 | 125 |
125 // Instantiates both a model associator and change processor for the | 126 // Instantiates both a model associator and change processor for the |
126 // extension data type. The pointers in the return struct are | 127 // extension data type. The pointers in the return struct are |
127 // owned by the caller. | 128 // owned by the caller. |
128 virtual SyncComponents CreateExtensionSyncComponents( | 129 virtual SyncComponents CreateExtensionSyncComponents( |
129 ProfileSyncService* profile_sync_service, | 130 ProfileSyncService* profile_sync_service, |
130 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 131 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
131 | 132 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 176 |
176 // Instantiates both a model associator and change processor for the app | 177 // Instantiates both a model associator and change processor for the app |
177 // notification data type. The pointers in the return struct are owned by the | 178 // notification data type. The pointers in the return struct are owned by the |
178 // caller. | 179 // caller. |
179 virtual SyncComponents CreateAppNotificationSyncComponents( | 180 virtual SyncComponents CreateAppNotificationSyncComponents( |
180 ProfileSyncService* profile_sync_service, | 181 ProfileSyncService* profile_sync_service, |
181 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 182 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
182 }; | 183 }; |
183 | 184 |
184 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ | 185 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ |
OLD | NEW |