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" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "components/invalidation/invalidation_service.h" | 12 #include "components/invalidation/invalidation_service.h" |
13 #include "components/sync_driver/data_type_controller.h" | 13 #include "components/sync_driver/data_type_controller.h" |
14 #include "components/sync_driver/data_type_error_handler.h" | 14 #include "components/sync_driver/data_type_error_handler.h" |
15 #include "components/sync_driver/sync_api_component_factory.h" | 15 #include "components/sync_driver/sync_api_component_factory.h" |
16 #include "sync/api/sync_merge_result.h" | 16 #include "sync/api/sync_merge_result.h" |
17 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" | 17 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" |
18 #include "sync/internal_api/public/util/weak_handle.h" | 18 #include "sync/internal_api/public/util/weak_handle.h" |
19 | 19 |
20 class PasswordStore; | 20 class PasswordStore; |
21 class Profile; | 21 class Profile; |
22 class ProfileSyncService; | 22 class ProfileSyncService; |
23 | 23 |
24 namespace browser_sync { | 24 namespace browser_sync { |
25 class LocalDeviceInfoProvider; | |
26 class SyncBackendHost; | 25 class SyncBackendHost; |
27 } // namespace browser_sync | 26 } // namespace browser_sync |
28 | 27 |
29 namespace sync_driver { | 28 namespace sync_driver { |
30 class AssociatorInterface; | 29 class AssociatorInterface; |
31 class ChangeProcessor; | 30 class ChangeProcessor; |
32 class DataTypeEncryptionHandler; | 31 class DataTypeEncryptionHandler; |
33 class DataTypeErrorHandler; | 32 class DataTypeErrorHandler; |
34 class DataTypeManager; | 33 class DataTypeManager; |
35 class DataTypeManagerObserver; | 34 class DataTypeManagerObserver; |
36 class DataTypeStatusTable; | 35 class DataTypeStatusTable; |
37 class GenericChangeProcessor; | 36 class GenericChangeProcessor; |
| 37 class LocalDeviceInfoProvider; |
38 class SyncPrefs; | 38 class SyncPrefs; |
39 } // namespace sync_driver | 39 } // namespace sync_driver |
40 | 40 |
41 namespace syncer { | 41 namespace syncer { |
42 class DataTypeDebugInfoListener; | 42 class DataTypeDebugInfoListener; |
43 class SyncableService; | 43 class SyncableService; |
44 } // namespace syncer | 44 } // namespace syncer |
45 | 45 |
46 namespace history { | 46 namespace history { |
47 class HistoryBackend; | 47 class HistoryBackend; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // Creating this in the factory helps us mock it out in testing. | 92 // Creating this in the factory helps us mock it out in testing. |
93 virtual browser_sync::SyncBackendHost* CreateSyncBackendHost( | 93 virtual browser_sync::SyncBackendHost* CreateSyncBackendHost( |
94 const std::string& name, | 94 const std::string& name, |
95 Profile* profile, | 95 Profile* profile, |
96 invalidation::InvalidationService* invalidator, | 96 invalidation::InvalidationService* invalidator, |
97 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, | 97 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, |
98 const base::FilePath& sync_folder) = 0; | 98 const base::FilePath& sync_folder) = 0; |
99 | 99 |
100 // Creating this in the factory helps us mock it out in testing. | 100 // Creating this in the factory helps us mock it out in testing. |
101 virtual scoped_ptr<browser_sync::LocalDeviceInfoProvider> | 101 virtual scoped_ptr<sync_driver::LocalDeviceInfoProvider> |
102 CreateLocalDeviceInfoProvider() = 0; | 102 CreateLocalDeviceInfoProvider() = 0; |
103 | 103 |
104 // Legacy datatypes that need to be converted to the SyncableService API. | 104 // Legacy datatypes that need to be converted to the SyncableService API. |
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 |