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_PROFILE_DATA_TYPE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/scoped_observer.h" | 10 #include "base/scoped_observer.h" |
11 #include "components/autofill/core/browser/personal_data_manager_observer.h" | 11 #include "components/autofill/core/browser/personal_data_manager_observer.h" |
12 #include "components/sync_driver/non_ui_data_type_controller.h" | 12 #include "components/sync_driver/non_ui_data_type_controller.h" |
13 | 13 |
14 class Profile; | 14 class Profile; |
15 class ProfileSyncComponentsFactory; | 15 class ProfileSyncComponentsFactory; |
16 | 16 |
17 namespace autofill { | 17 namespace autofill { |
18 class PersonalDataManager; | 18 class PersonalDataManager; |
19 } // namespace autofill | 19 } // namespace autofill |
20 | 20 |
21 namespace browser_sync { | 21 namespace browser_sync { |
22 | 22 |
23 class AutofillProfileDataTypeController | 23 class AutofillProfileDataTypeController |
24 : public NonUIDataTypeController, | 24 : public sync_driver::NonUIDataTypeController, |
25 public autofill::PersonalDataManagerObserver { | 25 public autofill::PersonalDataManagerObserver { |
26 public: | 26 public: |
27 AutofillProfileDataTypeController( | 27 AutofillProfileDataTypeController( |
28 ProfileSyncComponentsFactory* profile_sync_factory, | 28 ProfileSyncComponentsFactory* profile_sync_factory, |
29 Profile* profile, | 29 Profile* profile, |
30 const DisableTypeCallback& disable_callback); | 30 const DisableTypeCallback& disable_callback); |
31 | 31 |
32 // NonUIDataTypeController implementation. | 32 // NonUIDataTypeController implementation. |
33 virtual syncer::ModelType type() const OVERRIDE; | 33 virtual syncer::ModelType type() const OVERRIDE; |
34 virtual syncer::ModelSafeGroup model_safe_group() const OVERRIDE; | 34 virtual syncer::ModelSafeGroup model_safe_group() const OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
53 Profile* const profile_; | 53 Profile* const profile_; |
54 autofill::PersonalDataManager* personal_data_; | 54 autofill::PersonalDataManager* personal_data_; |
55 bool callback_registered_; | 55 bool callback_registered_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(AutofillProfileDataTypeController); | 57 DISALLOW_COPY_AND_ASSIGN(AutofillProfileDataTypeController); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace browser_sync | 60 } // namespace browser_sync |
61 | 61 |
62 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_ | 62 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_ |
OLD | NEW |