| 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 ExtensionSettings; |
| 19 class PersonalDataManager; | |
| 20 class PasswordStore; | 19 class PasswordStore; |
| 21 class ProfileSyncService; | 20 class ProfileSyncService; |
| 22 class WebDatabase; | 21 class WebDatabase; |
| 23 | 22 |
| 24 namespace browser_sync { | 23 namespace browser_sync { |
| 25 class DataTypeManager; | 24 class DataTypeManager; |
| 26 class SyncBackendHost; | 25 class SyncBackendHost; |
| 27 class UnrecoverableErrorHandler; | 26 class UnrecoverableErrorHandler; |
| 28 } | 27 } |
| 29 | 28 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual SyncComponents CreateAppSyncComponents( | 69 virtual SyncComponents CreateAppSyncComponents( |
| 71 ProfileSyncService* profile_sync_service, | 70 ProfileSyncService* profile_sync_service, |
| 72 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 71 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
| 73 | 72 |
| 74 // Instantiates both a model associator and change processor for the | 73 // Instantiates both a model associator and change processor for the |
| 75 // autofill data type. The pointers in the return struct are owned | 74 // autofill data type. The pointers in the return struct are owned |
| 76 // by the caller. | 75 // by the caller. |
| 77 virtual SyncComponents CreateAutofillSyncComponents( | 76 virtual SyncComponents CreateAutofillSyncComponents( |
| 78 ProfileSyncService* profile_sync_service, | 77 ProfileSyncService* profile_sync_service, |
| 79 WebDatabase* web_database, | 78 WebDatabase* web_database, |
| 80 PersonalDataManager* personal_data, | |
| 81 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 79 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
| 82 | 80 |
| 83 // Instantiates both a model associator and change processor for the | 81 // Instantiates both a model associator and change processor for the |
| 84 // autofill data type. The pointers in the return struct are owned | 82 // autofill data type. The pointers in the return struct are owned |
| 85 // by the caller. | 83 // by the caller. |
| 86 virtual SyncComponents CreateAutofillProfileSyncComponents( | 84 virtual SyncComponents CreateAutofillProfileSyncComponents( |
| 87 ProfileSyncService* profile_sync_service, | 85 ProfileSyncService* profile_sync_service, |
| 88 WebDatabase* web_database, | 86 WebDatabase* web_database, |
| 89 PersonalDataManager* personal_data, | |
| 90 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 87 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
| 91 | 88 |
| 92 // Instantiates both a model associator and change processor for the | 89 // Instantiates both a model associator and change processor for the |
| 93 // bookmark data type. The pointers in the return struct are owned | 90 // bookmark data type. The pointers in the return struct are owned |
| 94 // by the caller. | 91 // by the caller. |
| 95 virtual SyncComponents CreateBookmarkSyncComponents( | 92 virtual SyncComponents CreateBookmarkSyncComponents( |
| 96 ProfileSyncService* profile_sync_service, | 93 ProfileSyncService* profile_sync_service, |
| 97 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 94 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
| 98 | 95 |
| 99 // Instantiates both a model associator and change processor for the | 96 // Instantiates both a model associator and change processor for the |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 147 |
| 151 // Instantiates both a model associator and change processor for the search | 148 // Instantiates both a model associator and change processor for the search |
| 152 // engine data type. The pointers in the return struct are owned by the | 149 // engine data type. The pointers in the return struct are owned by the |
| 153 // caller. | 150 // caller. |
| 154 virtual SyncComponents CreateSearchEngineSyncComponents( | 151 virtual SyncComponents CreateSearchEngineSyncComponents( |
| 155 ProfileSyncService* profile_sync_service, | 152 ProfileSyncService* profile_sync_service, |
| 156 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 153 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
| 157 }; | 154 }; |
| 158 | 155 |
| 159 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ | 156 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ |
| OLD | NEW |