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_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ |
6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ | 6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "components/sync_driver/non_ui_data_type_controller.h" | 11 #include "components/sync_driver/non_ui_data_type_controller.h" |
12 | 12 |
13 class Profile; | 13 class Profile; |
14 class ProfileSyncComponentsFactory; | 14 class ProfileSyncComponentsFactory; |
15 | 15 |
16 namespace syncer { | 16 namespace syncer { |
17 class SyncableService; | 17 class SyncableService; |
18 } | 18 } |
19 | 19 |
20 namespace extensions { | 20 namespace extensions { |
21 class StorageFrontend; | 21 class StorageFrontend; |
22 } | 22 } |
23 | 23 |
24 namespace browser_sync { | 24 namespace browser_sync { |
25 | 25 |
26 class ExtensionSettingDataTypeController | 26 class ExtensionSettingDataTypeController |
27 : public NonUIDataTypeController { | 27 : public sync_driver::NonUIDataTypeController { |
28 public: | 28 public: |
29 ExtensionSettingDataTypeController( | 29 ExtensionSettingDataTypeController( |
30 // Either EXTENSION_SETTINGS or APP_SETTINGS. | 30 // Either EXTENSION_SETTINGS or APP_SETTINGS. |
31 syncer::ModelType type, | 31 syncer::ModelType type, |
32 ProfileSyncComponentsFactory* profile_sync_factory, | 32 ProfileSyncComponentsFactory* profile_sync_factory, |
33 Profile* profile, | 33 Profile* profile, |
34 const DisableTypeCallback& disable_callback); | 34 const DisableTypeCallback& disable_callback); |
35 | 35 |
36 // NonFrontendDataTypeController implementation | 36 // NonFrontendDataTypeController implementation |
37 virtual syncer::ModelType type() const OVERRIDE; | 37 virtual syncer::ModelType type() const OVERRIDE; |
(...skipping 13 matching lines...) Expand all Loading... |
51 | 51 |
52 // Only used on the UI thread. | 52 // Only used on the UI thread. |
53 Profile* profile_; | 53 Profile* profile_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingDataTypeController); | 55 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingDataTypeController); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace browser_sync | 58 } // namespace browser_sync |
59 | 59 |
60 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ | 60 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__ |
OLD | NEW |