| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_AUTOFILL_AUTOFILL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 std::vector<string16>* values, | 108 std::vector<string16>* values, |
| 109 std::vector<string16>* labels); | 109 std::vector<string16>* labels); |
| 110 | 110 |
| 111 // Returns a list of values from the stored credit cards that match |type| and | 111 // Returns a list of values from the stored credit cards that match |type| and |
| 112 // the value of |field| and returns the labels of the matching credit cards. | 112 // the value of |field| and returns the labels of the matching credit cards. |
| 113 void GetCreditCardSuggestions(const webkit_glue::FormField& field, | 113 void GetCreditCardSuggestions(const webkit_glue::FormField& field, |
| 114 AutoFillFieldType type, | 114 AutoFillFieldType type, |
| 115 std::vector<string16>* values, | 115 std::vector<string16>* values, |
| 116 std::vector<string16>* labels); | 116 std::vector<string16>* labels); |
| 117 | 117 |
| 118 // Set |field| argument's value based on |type| and contents of the |
| 119 // |credit_card|. The |type| field is expected to have main group type of |
| 120 // ADDRESS_BILLING. The address information is retrieved from the billing |
| 121 // profile asscociated with the |credit_card|, if there is one set. |
| 122 void FillBillingFormField(const CreditCard* credit_card, |
| 123 AutoFillType type, |
| 124 webkit_glue::FormField* field); |
| 125 |
| 118 // Set |field| argument's value based on |type| and contents of the |profile|. | 126 // Set |field| argument's value based on |type| and contents of the |profile|. |
| 119 void FillFormField(const AutoFillProfile* profile, | 127 void FillFormField(const AutoFillProfile* profile, |
| 120 AutoFillType type, | 128 AutoFillType type, |
| 121 webkit_glue::FormField* field); | 129 webkit_glue::FormField* field); |
| 122 | 130 |
| 123 // Set |field| argument's value for phone number based on contents of the | 131 // Set |field| argument's value for phone number based on contents of the |
| 124 // |profile|. | 132 // |profile|. |
| 125 void FillPhoneNumberField(const AutoFillProfile* profile, | 133 void FillPhoneNumberField(const AutoFillProfile* profile, |
| 126 webkit_glue::FormField* field); | 134 webkit_glue::FormField* field); |
| 127 | 135 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 145 // The form data the user has submitted. | 153 // The form data the user has submitted. |
| 146 scoped_ptr<FormStructure> upload_form_structure_; | 154 scoped_ptr<FormStructure> upload_form_structure_; |
| 147 | 155 |
| 148 // The InfoBar that asks for permission to store form information. | 156 // The InfoBar that asks for permission to store form information. |
| 149 scoped_ptr<AutoFillInfoBarDelegate> infobar_; | 157 scoped_ptr<AutoFillInfoBarDelegate> infobar_; |
| 150 | 158 |
| 151 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); | 159 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); |
| 152 }; | 160 }; |
| 153 | 161 |
| 154 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 162 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
| OLD | NEW |