| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_CONT
ROLLER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_CONT
ROLLER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_CONT
ROLLER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_CONT
ROLLER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/scoped_observer.h" | 11 #include "base/scoped_observer.h" |
| 12 #include "components/autofill/core/browser/personal_data_manager_observer.h" | 12 #include "components/autofill/core/browser/personal_data_manager_observer.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 namespace autofill { | 15 namespace autofill { |
| 16 class AutofillWebDataService; | 16 class AutofillWebDataService; |
| 17 class PersonalDataManager; | |
| 18 } // namespace autofill | 17 } // namespace autofill |
| 19 | 18 |
| 20 namespace browser_sync { | 19 namespace browser_sync { |
| 21 | 20 |
| 22 // Controls syncing of the AUTOFILL_PROFILE data type. | 21 // Controls syncing of the AUTOFILL_PROFILE data type. |
| 23 class AutofillProfileDataTypeController | 22 class AutofillProfileDataTypeController |
| 24 : public syncer::NonUIDataTypeController, | 23 : public syncer::NonUIDataTypeController, |
| 25 public autofill::PersonalDataManagerObserver { | 24 public autofill::PersonalDataManagerObserver { |
| 26 public: | 25 public: |
| 27 // |dump_stack| is called when an unrecoverable error occurs. | 26 // |dump_stack| is called when an unrecoverable error occurs. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 59 |
| 61 // Whether the database loaded callback has been registered. | 60 // Whether the database loaded callback has been registered. |
| 62 bool callback_registered_; | 61 bool callback_registered_; |
| 63 | 62 |
| 64 DISALLOW_COPY_AND_ASSIGN(AutofillProfileDataTypeController); | 63 DISALLOW_COPY_AND_ASSIGN(AutofillProfileDataTypeController); |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 } // namespace browser_sync | 66 } // namespace browser_sync |
| 68 | 67 |
| 69 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_C
ONTROLLER_H_ | 68 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_C
ONTROLLER_H_ |
| OLD | NEW |