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_AUTOFILL_DATA_TYPE_CONTROLLER_H__ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_AUTOFILL_DATA_TYPE_CONTROLLER_H__ |
6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_DATA_TYPE_CONTROLLER_H__ | 6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_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 "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "components/sync_driver/non_ui_data_type_controller.h" | 13 #include "components/sync_driver/non_ui_data_type_controller.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 class ProfileSyncComponentsFactory; | 16 class ProfileSyncComponentsFactory; |
17 | 17 |
18 namespace autofill { | 18 namespace autofill { |
19 class AutofillWebDataService; | 19 class AutofillWebDataService; |
20 } // namespace autofill | 20 } // namespace autofill |
21 | 21 |
22 namespace browser_sync { | 22 namespace browser_sync { |
23 | 23 |
24 // A class that manages the startup and shutdown of autofill sync. | 24 // A class that manages the startup and shutdown of autofill sync. |
25 class AutofillDataTypeController | 25 class AutofillDataTypeController |
26 : public NonUIDataTypeController { | 26 : public sync_driver::NonUIDataTypeController { |
27 public: | 27 public: |
28 AutofillDataTypeController( | 28 AutofillDataTypeController( |
29 ProfileSyncComponentsFactory* profile_sync_factory, | 29 ProfileSyncComponentsFactory* profile_sync_factory, |
30 Profile* profile, | 30 Profile* profile, |
31 const DisableTypeCallback& disable_callback); | 31 const DisableTypeCallback& disable_callback); |
32 | 32 |
33 // NonUIDataTypeController implementation. | 33 // NonUIDataTypeController implementation. |
34 virtual syncer::ModelType type() const OVERRIDE; | 34 virtual syncer::ModelType type() const OVERRIDE; |
35 virtual syncer::ModelSafeGroup model_safe_group() const OVERRIDE; | 35 virtual syncer::ModelSafeGroup model_safe_group() const OVERRIDE; |
36 | 36 |
(...skipping 19 matching lines...) Expand all Loading... |
56 void WebDatabaseLoaded(); | 56 void WebDatabaseLoaded(); |
57 | 57 |
58 Profile* const profile_; | 58 Profile* const profile_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(AutofillDataTypeController); | 60 DISALLOW_COPY_AND_ASSIGN(AutofillDataTypeController); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace browser_sync | 63 } // namespace browser_sync |
64 | 64 |
65 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_DATA_TYPE_CONTROLLER_H__ | 65 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_DATA_TYPE_CONTROLLER_H__ |
OLD | NEW |