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_IMPL_H__ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 // ProfileSyncFactory interface. | 23 // ProfileSyncFactory interface. |
24 virtual ProfileSyncService* CreateProfileSyncService( | 24 virtual ProfileSyncService* CreateProfileSyncService( |
25 const std::string& cros_user); | 25 const std::string& cros_user); |
26 | 26 |
27 virtual void RegisterDataTypes(ProfileSyncService* pss); | 27 virtual void RegisterDataTypes(ProfileSyncService* pss); |
28 | 28 |
29 virtual browser_sync::DataTypeManager* CreateDataTypeManager( | 29 virtual browser_sync::DataTypeManager* CreateDataTypeManager( |
30 browser_sync::SyncBackendHost* backend, | 30 browser_sync::SyncBackendHost* backend, |
31 const browser_sync::DataTypeController::TypeMap* controllers); | 31 const browser_sync::DataTypeController::TypeMap* controllers); |
32 | 32 |
33 virtual browser_sync::GenericChangeProcessor* CreateGenericChangeProcessor( | |
34 ProfileSyncService* profile_sync_service, | |
35 browser_sync::UnrecoverableErrorHandler* error_handler, | |
36 const base::WeakPtr<SyncableService>& local_service); | |
37 | |
38 virtual browser_sync::SharedChangeProcessor* CreateSharedChangeProcessor(); | |
39 | |
40 virtual SyncComponents CreateAppSyncComponents( | 33 virtual SyncComponents CreateAppSyncComponents( |
41 ProfileSyncService* profile_sync_service, | 34 ProfileSyncService* profile_sync_service, |
42 browser_sync::UnrecoverableErrorHandler* error_handler); | 35 browser_sync::UnrecoverableErrorHandler* error_handler); |
43 | 36 |
44 virtual SyncComponents CreateAutofillSyncComponents( | 37 virtual SyncComponents CreateAutofillSyncComponents( |
45 ProfileSyncService* profile_sync_service, | 38 ProfileSyncService* profile_sync_service, |
46 WebDatabase* web_database, | 39 WebDatabase* web_database, |
47 browser_sync::UnrecoverableErrorHandler* error_handler); | 40 browser_sync::UnrecoverableErrorHandler* error_handler); |
48 | 41 |
49 virtual base::WeakPtr<SyncableService> GetAutofillProfileSyncableService( | 42 virtual SyncComponents CreateAutofillProfileSyncComponents( |
50 WebDataService* web_data_service) const; | 43 ProfileSyncService* profile_sync_service, |
| 44 WebDataService* web_data_service, |
| 45 browser_sync::UnrecoverableErrorHandler* error_handler); |
51 | 46 |
52 virtual SyncComponents CreateBookmarkSyncComponents( | 47 virtual SyncComponents CreateBookmarkSyncComponents( |
53 ProfileSyncService* profile_sync_service, | 48 ProfileSyncService* profile_sync_service, |
54 browser_sync::UnrecoverableErrorHandler* error_handler); | 49 browser_sync::UnrecoverableErrorHandler* error_handler); |
55 | 50 |
56 virtual SyncComponents CreateExtensionSettingSyncComponents( | 51 virtual SyncComponents CreateExtensionSettingSyncComponents( |
57 ExtensionSettingsBackend* extension_settings_backend, | 52 ExtensionSettingsBackend* extension_settings_backend, |
58 ProfileSyncService* profile_sync_service, | 53 ProfileSyncService* profile_sync_service, |
59 browser_sync::UnrecoverableErrorHandler* error_handler); | 54 browser_sync::UnrecoverableErrorHandler* error_handler); |
60 | 55 |
(...skipping 28 matching lines...) Expand all Loading... |
89 browser_sync::UnrecoverableErrorHandler* error_handler); | 84 browser_sync::UnrecoverableErrorHandler* error_handler); |
90 | 85 |
91 private: | 86 private: |
92 Profile* profile_; | 87 Profile* profile_; |
93 CommandLine* command_line_; | 88 CommandLine* command_line_; |
94 | 89 |
95 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); | 90 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); |
96 }; | 91 }; |
97 | 92 |
98 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ | 93 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ |
OLD | NEW |