OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // |args| - an array containing the GUID of the credit card followed by the | 87 // |args| - an array containing the GUID of the credit card followed by the |
88 // credit card data. | 88 // credit card data. |
89 void SetCreditCard(const base::ListValue* args); | 89 void SetCreditCard(const base::ListValue* args); |
90 | 90 |
91 // Validates a list of phone numbers. The resulting validated list of | 91 // Validates a list of phone numbers. The resulting validated list of |
92 // numbers is then sent back to the WebUI. | 92 // numbers is then sent back to the WebUI. |
93 // |args| - an array containing the index of the modified or added number, the | 93 // |args| - an array containing the index of the modified or added number, the |
94 // array of numbers, and the country code string set on the profile. | 94 // array of numbers, and the country code string set on the profile. |
95 void ValidatePhoneNumbers(const base::ListValue* args); | 95 void ValidatePhoneNumbers(const base::ListValue* args); |
96 | 96 |
97 // Resets the masked state on all unmasked Wallet cards. | 97 // Resets the masked state on the unmasked Wallet card described by the GUID |
98 void RemaskServerCards(const base::ListValue* args); | 98 // in args[0]. |
| 99 void RemaskServerCard(const base::ListValue* args); |
99 | 100 |
100 // Returns true if |personal_data_| is non-null and loaded. | 101 // Returns true if |personal_data_| is non-null and loaded. |
101 bool IsPersonalDataLoaded() const; | 102 bool IsPersonalDataLoaded() const; |
102 | 103 |
103 // Fills in |address| with the data format that the options js expects. | 104 // Fills in |address| with the data format that the options js expects. |
104 static void AutofillProfileToDictionary( | 105 static void AutofillProfileToDictionary( |
105 const autofill::AutofillProfile& profile, | 106 const autofill::AutofillProfile& profile, |
106 base::DictionaryValue* address); | 107 base::DictionaryValue* address); |
107 | 108 |
108 // The personal data manager, used to load Autofill profiles and credit cards. | 109 // The personal data manager, used to load Autofill profiles and credit cards. |
109 // Unowned pointer, may not be NULL. | 110 // Unowned pointer, may not be NULL. |
110 autofill::PersonalDataManager* personal_data_; | 111 autofill::PersonalDataManager* personal_data_; |
111 | 112 |
112 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); | 113 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); |
113 }; | 114 }; |
114 | 115 |
115 } // namespace options | 116 } // namespace options |
116 | 117 |
117 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ | 118 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ |
OLD | NEW |