| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_PERSONAL_DATA_MANAGER_OBSERVER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_OBSERVER_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_OBSERVER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_OBSERVER_H_ |
| 7 | 7 |
| 8 namespace autofill { | 8 namespace autofill { |
| 9 | 9 |
| 10 // An interface the PersonalDataManager uses to notify its clients (observers) | 10 // An interface the PersonalDataManager uses to notify its clients (observers) |
| 11 // when it has finished loading personal data from the web database. Register | 11 // when it has finished loading personal data from the web database. Register |
| 12 // observers via PersonalDataManager::AddObserver. | 12 // observers via PersonalDataManager::AddObserver. |
| 13 class PersonalDataManagerObserver { | 13 class PersonalDataManagerObserver { |
| 14 public: | 14 public: |
| 15 // Notifies the observer that the PersonalDataManager changed in some way. | 15 // Notifies the observer that the PersonalDataManager changed in some way. |
| 16 virtual void OnPersonalDataChanged() = 0; | 16 virtual void OnPersonalDataChanged() = 0; |
| 17 virtual void OnInsufficientFormData() {} | 17 virtual void OnInsufficientFormData() {} |
| 18 | 18 |
| 19 protected: | 19 protected: |
| 20 virtual ~PersonalDataManagerObserver() {} | 20 virtual ~PersonalDataManagerObserver() {} |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 } // namespace autofill | 23 } // namespace autofill |
| 24 | 24 |
| 25 #endif // COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_OBSERVER_H_ | 25 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_OBSERVER_H_ |
| OLD | NEW |