Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Side by Side Diff: chrome/browser/ui/webui/options/autofill_options_handler.h

Issue 6930037: Autofill DOMUI Prefs should work with i18n phone numbers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding DEPS. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/browser/autofill/personal_data_manager.h" 10 #include "chrome/browser/autofill/personal_data_manager.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // address data. 61 // address data.
62 void SetAddress(const ListValue* args); 62 void SetAddress(const ListValue* args);
63 63
64 // Adds or updates a credit card, depending on the GUID of the profile. If the 64 // Adds or updates a credit card, depending on the GUID of the profile. If the
65 // GUID is empty, a new credit card is added to the WebDatabase; otherwise, 65 // GUID is empty, a new credit card is added to the WebDatabase; otherwise,
66 // the credit card with the matching GUID is updated. Called from WebUI. 66 // the credit card with the matching GUID is updated. Called from WebUI.
67 // |args| - an array containing the GUID of the credit card followed by the 67 // |args| - an array containing the GUID of the credit card followed by the
68 // credit card data. 68 // credit card data.
69 void SetCreditCard(const ListValue* args); 69 void SetCreditCard(const ListValue* args);
70 70
71 // Validates a list of phone/fax numbers. The resulting validated list of
72 // numbers is then sent back to the WebUI.
73 // |args| - an array containing the index of the modified or added number, the
74 // array of numbers, and the country code string set on the profile.
75 void ValidatePhoneNumbers(const ListValue* args);
76 void ValidateFaxNumbers(const ListValue* args);
77
71 // The personal data manager, used to load Autofill profiles and credit cards. 78 // The personal data manager, used to load Autofill profiles and credit cards.
72 // Unowned pointer, may not be NULL. 79 // Unowned pointer, may not be NULL.
73 PersonalDataManager* personal_data_; 80 PersonalDataManager* personal_data_;
74 81
75 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); 82 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler);
76 }; 83 };
77 84
78 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ 85 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698