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/api/webdata/autofill_web_data_service.h" |
12 #include "chrome/browser/sync/profile_sync_components_factory.h" | 13 #include "chrome/browser/sync/profile_sync_components_factory.h" |
13 #include "chrome/browser/webdata/web_data_service.h" | 14 |
14 | 15 |
15 class CommandLine; | 16 class CommandLine; |
16 class Profile; | 17 class Profile; |
17 | 18 |
18 namespace extensions { | 19 namespace extensions { |
19 class ExtensionSystem; | 20 class ExtensionSystem; |
20 } | 21 } |
21 | 22 |
22 class ProfileSyncComponentsFactoryImpl : public ProfileSyncComponentsFactory { | 23 class ProfileSyncComponentsFactoryImpl : public ProfileSyncComponentsFactory { |
23 public: | 24 public: |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 void RegisterDesktopDataTypes(ProfileSyncService* pss); | 69 void RegisterDesktopDataTypes(ProfileSyncService* pss); |
69 // Register data types which are enabled on both desktop and mobile. | 70 // Register data types which are enabled on both desktop and mobile. |
70 void RegisterCommonDataTypes(ProfileSyncService* pss); | 71 void RegisterCommonDataTypes(ProfileSyncService* pss); |
71 | 72 |
72 Profile* profile_; | 73 Profile* profile_; |
73 CommandLine* command_line_; | 74 CommandLine* command_line_; |
74 // Set on the UI thread (since extensions::ExtensionSystemFactory is | 75 // Set on the UI thread (since extensions::ExtensionSystemFactory is |
75 // non-threadsafe); accessed on both the UI and FILE threads in | 76 // non-threadsafe); accessed on both the UI and FILE threads in |
76 // GetSyncableServiceForType. | 77 // GetSyncableServiceForType. |
77 extensions::ExtensionSystem* extension_system_; | 78 extensions::ExtensionSystem* extension_system_; |
78 scoped_refptr<WebDataService> web_data_service_; | 79 scoped_refptr<AutofillWebDataService> web_data_service_; |
79 | 80 |
80 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); | 81 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); |
81 }; | 82 }; |
82 | 83 |
83 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ | 84 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ |
OLD | NEW |