diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-16 17:34:39 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-16 17:34:39 +0000 |
commit | 0a0554502c87277323e1438a6ab5b50acb9aab46 (patch) | |
tree | 885e2fdc2c97b972b4683469e49e4a0cdc7a5c43 /chrome/browser/autofill/autofill_manager.h | |
parent | 308b6a1e93de0916f775c44818704717a00fcf70 (diff) | |
download | chromium_src-0a0554502c87277323e1438a6ab5b50acb9aab46.zip chromium_src-0a0554502c87277323e1438a6ab5b50acb9aab46.tar.gz chromium_src-0a0554502c87277323e1438a6ab5b50acb9aab46.tar.bz2 |
AutoFill: Use unique IDs to identify the profile or credit card to fill.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3019001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_manager.h')
-rw-r--r-- | chrome/browser/autofill/autofill_manager.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/browser/autofill/autofill_manager.h b/chrome/browser/autofill/autofill_manager.h index c46d625..e39ba5d 100644 --- a/chrome/browser/autofill/autofill_manager.h +++ b/chrome/browser/autofill/autofill_manager.h @@ -53,7 +53,8 @@ class AutoFillManager : public RenderViewHostDelegate::AutoFill, virtual bool FillAutoFillFormData(int query_id, const webkit_glue::FormData& form, const string16& value, - const string16& label); + const string16& label, + int unique_id); virtual void ShowAutoFillDialog(); // Called by the AutoFillCCInfoBarDelegate when the user interacts with the @@ -103,14 +104,16 @@ class AutoFillManager : public RenderViewHostDelegate::AutoFill, const webkit_glue::FormField& field, AutoFillType type, std::vector<string16>* values, - std::vector<string16>* labels); + std::vector<string16>* labels, + std::vector<int>* unique_ids); // Same as GetProfileSuggestions, but the list of stored profiles is limited // to the linked billing addresses from the list of credit cards. void GetBillingProfileSuggestions(const webkit_glue::FormField& field, AutoFillType type, std::vector<string16>* values, - std::vector<string16>* labels); + std::vector<string16>* labels, + std::vector<int>* unique_ids); // Returns a list of values from the stored credit cards that match |type| and // the value of |field| and returns the labels of the matching credit cards. @@ -118,7 +121,8 @@ class AutoFillManager : public RenderViewHostDelegate::AutoFill, const webkit_glue::FormField& field, AutoFillType type, std::vector<string16>* values, - std::vector<string16>* labels); + std::vector<string16>* labels, + std::vector<int>* unique_ids); // Set |field| argument's value based on |type| and contents of the // |credit_card|. The |type| field is expected to have main group type of |