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