| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include "base/task.h" | 9 #include "base/task.h" |
| 10 #include "chrome/browser/sync/glue/change_processor.h" | 10 #include "chrome/browser/sync/glue/change_processor.h" |
| 11 #include "chrome/browser/sync/glue/data_type_controller.h" | 11 #include "chrome/browser/sync/glue/data_type_controller.h" |
| 12 #include "chrome/browser/sync/glue/model_associator.h" | 12 #include "chrome/browser/sync/glue/model_associator.h" |
| 13 #include "chrome/browser/sync/unrecoverable_error_handler.h" | 13 #include "chrome/browser/sync/unrecoverable_error_handler.h" |
| 14 | 14 |
| 15 class PersonalDataManager; | 15 class PersonalDataManager; |
| 16 class PasswordStore; |
| 16 class ProfileSyncService; | 17 class ProfileSyncService; |
| 17 class WebDatabase; | 18 class WebDatabase; |
| 18 | 19 |
| 19 namespace browser_sync { | 20 namespace browser_sync { |
| 20 class DataTypeManager; | 21 class DataTypeManager; |
| 21 class SyncBackendHost; | 22 class SyncBackendHost; |
| 22 class UnrecoverableErrorHandler; | 23 class UnrecoverableErrorHandler; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace history { | 26 namespace history { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 66 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
| 66 | 67 |
| 67 // Instantiates both a model associator and change processor for the | 68 // Instantiates both a model associator and change processor for the |
| 68 // bookmark data type. The pointers in the return struct are owned | 69 // bookmark data type. The pointers in the return struct are owned |
| 69 // by the caller. | 70 // by the caller. |
| 70 virtual SyncComponents CreateBookmarkSyncComponents( | 71 virtual SyncComponents CreateBookmarkSyncComponents( |
| 71 ProfileSyncService* profile_sync_service, | 72 ProfileSyncService* profile_sync_service, |
| 72 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 73 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
| 73 | 74 |
| 74 // Instantiates both a model associator and change processor for the | 75 // Instantiates both a model associator and change processor for the |
| 76 // password data type. The pointers in the return struct are |
| 77 // owned by the caller. |
| 78 virtual SyncComponents CreatePasswordSyncComponents( |
| 79 ProfileSyncService* profile_sync_service, |
| 80 PasswordStore* password_store, |
| 81 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
| 82 |
| 83 // Instantiates both a model associator and change processor for the |
| 75 // preference data type. The pointers in the return struct are | 84 // preference data type. The pointers in the return struct are |
| 76 // owned by the caller. | 85 // owned by the caller. |
| 77 virtual SyncComponents CreatePreferenceSyncComponents( | 86 virtual SyncComponents CreatePreferenceSyncComponents( |
| 78 ProfileSyncService* profile_sync_service, | 87 ProfileSyncService* profile_sync_service, |
| 79 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 88 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
| 80 | 89 |
| 81 // Instantiates both a model associator and change processor for the | 90 // Instantiates both a model associator and change processor for the |
| 82 // theme data type. The pointers in the return struct are | 91 // theme data type. The pointers in the return struct are |
| 83 // owned by the caller. | 92 // owned by the caller. |
| 84 virtual SyncComponents CreateThemeSyncComponents( | 93 virtual SyncComponents CreateThemeSyncComponents( |
| 85 ProfileSyncService* profile_sync_service, | 94 ProfileSyncService* profile_sync_service, |
| 86 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 95 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
| 87 | 96 |
| 88 // Instantiates both a model associator and change processor for the | 97 // Instantiates both a model associator and change processor for the |
| 89 // typed_url data type. The pointers in the return struct are owned | 98 // typed_url data type. The pointers in the return struct are owned |
| 90 // by the caller. | 99 // by the caller. |
| 91 virtual SyncComponents CreateTypedUrlSyncComponents( | 100 virtual SyncComponents CreateTypedUrlSyncComponents( |
| 92 ProfileSyncService* profile_sync_service, | 101 ProfileSyncService* profile_sync_service, |
| 93 history::HistoryBackend* history_backend, | 102 history::HistoryBackend* history_backend, |
| 94 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 103 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
| 95 }; | 104 }; |
| 96 | 105 |
| 97 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ | 106 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ |
| OLD | NEW |