[email protected] | a7e585a | 2011-08-08 20:32:54 | [diff] [blame] | 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 | |||||
[email protected] | e4b2fa3 | 2013-03-09 22:56:56 | [diff] [blame] | 5 | #ifndef COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_OBSERVER_H_ |
6 | #define COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_OBSERVER_H_ | ||||
[email protected] | a7e585a | 2011-08-08 20:32:54 | [diff] [blame] | 7 | |
[email protected] | e217c563 | 2013-04-12 19:11:48 | [diff] [blame^] | 8 | namespace autofill { |
9 | |||||
[email protected] | a7e585a | 2011-08-08 20:32:54 | [diff] [blame] | 10 | // An interface the PersonalDataManager uses to notify its clients (observers) |
11 | // when it has finished loading personal data from the web database. Register | ||||
[email protected] | 412bde7 | 2013-02-07 06:06:24 | [diff] [blame] | 12 | // observers via PersonalDataManager::AddObserver. |
[email protected] | a7e585a | 2011-08-08 20:32:54 | [diff] [blame] | 13 | class PersonalDataManagerObserver { |
14 | public: | ||||
15 | // Notifies the observer that the PersonalDataManager changed in some way. | ||||
16 | virtual void OnPersonalDataChanged() = 0; | ||||
[email protected] | 48021c2 | 2011-08-24 16:56:48 | [diff] [blame] | 17 | virtual void OnInsufficientFormData() {} |
[email protected] | a7e585a | 2011-08-08 20:32:54 | [diff] [blame] | 18 | |
19 | protected: | ||||
20 | virtual ~PersonalDataManagerObserver() {} | ||||
21 | }; | ||||
22 | |||||
[email protected] | e217c563 | 2013-04-12 19:11:48 | [diff] [blame^] | 23 | } // namespace autofill |
24 | |||||
[email protected] | e4b2fa3 | 2013-03-09 22:56:56 | [diff] [blame] | 25 | #endif // COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_OBSERVER_H_ |