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 ExtensionSettings; |
18 class PersonalDataManager; | 19 class PersonalDataManager; |
19 class PasswordStore; | 20 class PasswordStore; |
20 class ProfileSyncService; | 21 class ProfileSyncService; |
21 class WebDatabase; | 22 class WebDatabase; |
22 | 23 |
23 namespace browser_sync { | 24 namespace browser_sync { |
24 class DataTypeManager; | 25 class DataTypeManager; |
25 class SyncBackendHost; | 26 class SyncBackendHost; |
26 class UnrecoverableErrorHandler; | 27 class UnrecoverableErrorHandler; |
27 } | 28 } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 90 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
90 | 91 |
91 // Instantiates both a model associator and change processor for the | 92 // Instantiates both a model associator and change processor for the |
92 // bookmark data type. The pointers in the return struct are owned | 93 // bookmark data type. The pointers in the return struct are owned |
93 // by the caller. | 94 // by the caller. |
94 virtual SyncComponents CreateBookmarkSyncComponents( | 95 virtual SyncComponents CreateBookmarkSyncComponents( |
95 ProfileSyncService* profile_sync_service, | 96 ProfileSyncService* profile_sync_service, |
96 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 97 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
97 | 98 |
98 // Instantiates both a model associator and change processor for the | 99 // Instantiates both a model associator and change processor for the |
| 100 // extension setting data type. The pointers in the return struct are |
| 101 // owned by the caller. |
| 102 virtual SyncComponents CreateExtensionSettingSyncComponents( |
| 103 ExtensionSettings* extension_settings, |
| 104 ProfileSyncService* profile_sync_service, |
| 105 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
| 106 |
| 107 // Instantiates both a model associator and change processor for the |
99 // extension data type. The pointers in the return struct are | 108 // extension data type. The pointers in the return struct are |
100 // owned by the caller. | 109 // owned by the caller. |
101 virtual SyncComponents CreateExtensionSyncComponents( | 110 virtual SyncComponents CreateExtensionSyncComponents( |
102 ProfileSyncService* profile_sync_service, | 111 ProfileSyncService* profile_sync_service, |
103 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 112 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
104 | 113 |
105 // Instantiates both a model associator and change processor for the | 114 // Instantiates both a model associator and change processor for the |
106 // password data type. The pointers in the return struct are | 115 // password data type. The pointers in the return struct are |
107 // owned by the caller. | 116 // owned by the caller. |
108 virtual SyncComponents CreatePasswordSyncComponents( | 117 virtual SyncComponents CreatePasswordSyncComponents( |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 150 |
142 // Instantiates both a model associator and change processor for the search | 151 // Instantiates both a model associator and change processor for the search |
143 // engine data type. The pointers in the return struct are owned by the | 152 // engine data type. The pointers in the return struct are owned by the |
144 // caller. | 153 // caller. |
145 virtual SyncComponents CreateSearchEngineSyncComponents( | 154 virtual SyncComponents CreateSearchEngineSyncComponents( |
146 ProfileSyncService* profile_sync_service, | 155 ProfileSyncService* profile_sync_service, |
147 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 156 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
148 }; | 157 }; |
149 | 158 |
150 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ | 159 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ |
OLD | NEW |