| 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_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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // address data. | 65 // address data. |
| 66 void SetAddress(const base::ListValue* args); | 66 void SetAddress(const base::ListValue* args); |
| 67 | 67 |
| 68 // Adds or updates a credit card, depending on the GUID of the profile. If the | 68 // Adds or updates a credit card, depending on the GUID of the profile. If the |
| 69 // GUID is empty, a new credit card is added to the WebDatabase; otherwise, | 69 // GUID is empty, a new credit card is added to the WebDatabase; otherwise, |
| 70 // the credit card with the matching GUID is updated. Called from WebUI. | 70 // the credit card with the matching GUID is updated. Called from WebUI. |
| 71 // |args| - an array containing the GUID of the credit card followed by the | 71 // |args| - an array containing the GUID of the credit card followed by the |
| 72 // credit card data. | 72 // credit card data. |
| 73 void SetCreditCard(const base::ListValue* args); | 73 void SetCreditCard(const base::ListValue* args); |
| 74 | 74 |
| 75 // Validates a list of phone/fax numbers. The resulting validated list of | 75 // Validates a list of phone numbers. The resulting validated list of |
| 76 // numbers is then sent back to the WebUI. | 76 // numbers is then sent back to the WebUI. |
| 77 // |args| - an array containing the index of the modified or added number, the | 77 // |args| - an array containing the index of the modified or added number, the |
| 78 // array of numbers, and the country code string set on the profile. | 78 // array of numbers, and the country code string set on the profile. |
| 79 void ValidatePhoneNumbers(const base::ListValue* args); | 79 void ValidatePhoneNumbers(const base::ListValue* args); |
| 80 void ValidateFaxNumbers(const base::ListValue* args); | |
| 81 | 80 |
| 82 // The personal data manager, used to load Autofill profiles and credit cards. | 81 // The personal data manager, used to load Autofill profiles and credit cards. |
| 83 // Unowned pointer, may not be NULL. | 82 // Unowned pointer, may not be NULL. |
| 84 PersonalDataManager* personal_data_; | 83 PersonalDataManager* personal_data_; |
| 85 | 84 |
| 86 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); | 85 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ | 88 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ |
| OLD | NEW |