| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // Removes data from the PersonalDataManager. | 49 // Removes data from the PersonalDataManager. |
| 50 // |args| - A string, the GUID of the address or credit card to remove. | 50 // |args| - A string, the GUID of the address or credit card to remove. |
| 51 void RemoveData(const base::ListValue* args); | 51 void RemoveData(const base::ListValue* args); |
| 52 | 52 |
| 53 // Requests profile data for a specific address. Calls into WebUI with the | 53 // Requests profile data for a specific address. Calls into WebUI with the |
| 54 // loaded profile data to open the address editor. | 54 // loaded profile data to open the address editor. |
| 55 // |args| - A string, the GUID of the address to load. | 55 // |args| - A string, the GUID of the address to load. |
| 56 void LoadAddressEditor(const base::ListValue* args); | 56 void LoadAddressEditor(const base::ListValue* args); |
| 57 | 57 |
| 58 // Requests input form layout information for a specific country code. Calls |
| 59 // into WebUI with the layout information. |
| 60 // |args| - A string, the country code to load. |
| 61 void LoadAddressEditorComponents(const base::ListValue* args); |
| 62 |
| 58 // Requests profile data for a specific credit card. Calls into WebUI with the | 63 // Requests profile data for a specific credit card. Calls into WebUI with the |
| 59 // loaded profile data to open the credit card editor. | 64 // loaded profile data to open the credit card editor. |
| 60 // |args| - A string, the GUID of the credit card to load. | 65 // |args| - A string, the GUID of the credit card to load. |
| 61 void LoadCreditCardEditor(const base::ListValue* args); | 66 void LoadCreditCardEditor(const base::ListValue* args); |
| 62 | 67 |
| 63 // Adds or updates an address, depending on the GUID of the profile. If the | 68 // Adds or updates an address, depending on the GUID of the profile. If the |
| 64 // GUID is empty, a new address is added to the WebDatabase; otherwise, the | 69 // GUID is empty, a new address is added to the WebDatabase; otherwise, the |
| 65 // address with the matching GUID is updated. Called from WebUI. | 70 // address with the matching GUID is updated. Called from WebUI. |
| 66 // |args| - an array containing the GUID of the address followed by the | 71 // |args| - an array containing the GUID of the address followed by the |
| 67 // address data. | 72 // address data. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 86 // The personal data manager, used to load Autofill profiles and credit cards. | 91 // The personal data manager, used to load Autofill profiles and credit cards. |
| 87 // Unowned pointer, may not be NULL. | 92 // Unowned pointer, may not be NULL. |
| 88 autofill::PersonalDataManager* personal_data_; | 93 autofill::PersonalDataManager* personal_data_; |
| 89 | 94 |
| 90 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); | 95 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); |
| 91 }; | 96 }; |
| 92 | 97 |
| 93 } // namespace options | 98 } // namespace options |
| 94 | 99 |
| 95 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ | 100 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ |
| OLD | NEW |