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