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