OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DOM_UI_AUTOFILL_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_AUTOFILL_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_DOM_UI_AUTOFILL_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_AUTOFILL_OPTIONS_HANDLER_H_ |
7 | 7 |
8 #include "chrome/browser/autofill/personal_data_manager.h" | 8 #include "chrome/browser/autofill/personal_data_manager.h" |
9 #include "chrome/browser/dom_ui/options_ui.h" | 9 #include "chrome/browser/dom_ui/options_ui.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 // PersonalDataManager::Observer implementation. | 21 // PersonalDataManager::Observer implementation. |
22 virtual void OnPersonalDataLoaded(); | 22 virtual void OnPersonalDataLoaded(); |
23 virtual void OnPersonalDataChanged(); | 23 virtual void OnPersonalDataChanged(); |
24 | 24 |
25 virtual void RegisterMessages(); | 25 virtual void RegisterMessages(); |
26 | 26 |
27 private: | 27 private: |
28 // Loads AutoFill addresses and credit cards using the PersonalDataManager. | 28 // Loads AutoFill addresses and credit cards using the PersonalDataManager. |
29 void LoadAutoFillData(); | 29 void LoadAutoFillData(); |
30 | 30 |
| 31 // Removes an address from the WebDatabase. Called from DOMUI. |
| 32 // |args| - an integer, the unique ID of the address to remove. |
| 33 void RemoveAddress(const ListValue* args); |
| 34 |
| 35 // Removes a credit card from the WebDatabase. Called from DOMUI. |
| 36 // |args| - an integer, the unique ID of the credit card to remove. |
| 37 void RemoveCreditCard(const ListValue* args); |
| 38 |
31 // The personal data manager, used to load AutoFill profiles and credit cards. | 39 // The personal data manager, used to load AutoFill profiles and credit cards. |
32 // Unowned pointer, may not be NULL. | 40 // Unowned pointer, may not be NULL. |
33 PersonalDataManager* personal_data_; | 41 PersonalDataManager* personal_data_; |
34 | 42 |
35 DISALLOW_COPY_AND_ASSIGN(AutoFillOptionsHandler); | 43 DISALLOW_COPY_AND_ASSIGN(AutoFillOptionsHandler); |
36 }; | 44 }; |
37 | 45 |
38 #endif // CHROME_BROWSER_DOM_UI_AUTOFILL_OPTIONS_HANDLER_H_ | 46 #endif // CHROME_BROWSER_DOM_UI_AUTOFILL_OPTIONS_HANDLER_H_ |
OLD | NEW |