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_IMPL_H__ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "chrome/browser/sync/profile_sync_components_factory.h" | 13 #include "chrome/browser/sync/profile_sync_components_factory.h" |
| 14 #include "chrome/browser/webdata/web_data_service.h" |
14 | 15 |
15 class CommandLine; | 16 class CommandLine; |
16 class ExtensionSystem; | 17 class ExtensionSystem; |
17 class Profile; | 18 class Profile; |
18 | 19 |
19 class ProfileSyncComponentsFactoryImpl : public ProfileSyncComponentsFactory { | 20 class ProfileSyncComponentsFactoryImpl : public ProfileSyncComponentsFactory { |
20 public: | 21 public: |
21 ProfileSyncComponentsFactoryImpl(Profile* profile, | 22 ProfileSyncComponentsFactoryImpl(Profile* profile, |
22 CommandLine* command_line); | 23 CommandLine* command_line); |
23 virtual ~ProfileSyncComponentsFactoryImpl() {} | 24 virtual ~ProfileSyncComponentsFactoryImpl(); |
24 | 25 |
25 virtual void RegisterDataTypes(ProfileSyncService* pss) OVERRIDE; | 26 virtual void RegisterDataTypes(ProfileSyncService* pss) OVERRIDE; |
26 | 27 |
27 virtual browser_sync::DataTypeManager* CreateDataTypeManager( | 28 virtual browser_sync::DataTypeManager* CreateDataTypeManager( |
28 browser_sync::SyncBackendHost* backend, | 29 browser_sync::SyncBackendHost* backend, |
29 const browser_sync::DataTypeController::TypeMap* controllers) OVERRIDE; | 30 const browser_sync::DataTypeController::TypeMap* controllers) OVERRIDE; |
30 | 31 |
31 virtual browser_sync::GenericChangeProcessor* CreateGenericChangeProcessor( | 32 virtual browser_sync::GenericChangeProcessor* CreateGenericChangeProcessor( |
32 ProfileSyncService* profile_sync_service, | 33 ProfileSyncService* profile_sync_service, |
33 browser_sync::DataTypeErrorHandler* error_handler, | 34 browser_sync::DataTypeErrorHandler* error_handler, |
(...skipping 25 matching lines...) Expand all Loading... |
59 virtual SyncComponents CreateSessionSyncComponents( | 60 virtual SyncComponents CreateSessionSyncComponents( |
60 ProfileSyncService* profile_sync_service, | 61 ProfileSyncService* profile_sync_service, |
61 browser_sync::DataTypeErrorHandler* error_handler) OVERRIDE; | 62 browser_sync::DataTypeErrorHandler* error_handler) OVERRIDE; |
62 | 63 |
63 private: | 64 private: |
64 Profile* profile_; | 65 Profile* profile_; |
65 CommandLine* command_line_; | 66 CommandLine* command_line_; |
66 // Set on the UI thread (since ExtensionSystemFactory is non-threadsafe); | 67 // Set on the UI thread (since ExtensionSystemFactory is non-threadsafe); |
67 // accessed on both the UI and FILE threads in GetSyncableServiceForType. | 68 // accessed on both the UI and FILE threads in GetSyncableServiceForType. |
68 ExtensionSystem* extension_system_; | 69 ExtensionSystem* extension_system_; |
| 70 scoped_refptr<WebDataService> web_data_service_; |
69 | 71 |
70 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); | 72 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); |
71 }; | 73 }; |
72 | 74 |
73 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ | 75 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ |
OLD | NEW |