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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // profile associated with the |credit_card|, if there is one set. | 130 // profile associated with the |credit_card|, if there is one set. |
131 void FillBillingFormField(const CreditCard* credit_card, | 131 void FillBillingFormField(const CreditCard* credit_card, |
132 AutoFillType type, | 132 AutoFillType type, |
133 webkit_glue::FormField* field); | 133 webkit_glue::FormField* field); |
134 | 134 |
135 // Set |field| argument's value based on |type| and contents of the |profile|. | 135 // Set |field| argument's value based on |type| and contents of the |profile|. |
136 void FillFormField(const AutoFillProfile* profile, | 136 void FillFormField(const AutoFillProfile* profile, |
137 AutoFillType type, | 137 AutoFillType type, |
138 webkit_glue::FormField* field); | 138 webkit_glue::FormField* field); |
139 | 139 |
| 140 // Select matching data in the |field|. For now only fixes the cases of the |
| 141 // wrong case, in the future should do extended matching (for example, |
| 142 // Hawaii -> HI). |
| 143 void FillSelectOneField(const AutoFillProfile* profile, |
| 144 AutoFillType type, |
| 145 webkit_glue::FormField* field); |
| 146 |
140 // Set |field| argument's value for phone number based on contents of the | 147 // Set |field| argument's value for phone number based on contents of the |
141 // |profile|. | 148 // |profile|. |
142 void FillPhoneNumberField(const AutoFillProfile* profile, | 149 void FillPhoneNumberField(const AutoFillProfile* profile, |
143 webkit_glue::FormField* field); | 150 webkit_glue::FormField* field); |
144 | 151 |
145 // Parses the forms using heuristic matching and querying the AutoFill server. | 152 // Parses the forms using heuristic matching and querying the AutoFill server. |
146 void ParseForms(const std::vector<webkit_glue::FormData>& forms); | 153 void ParseForms(const std::vector<webkit_glue::FormData>& forms); |
147 | 154 |
148 // The TabContents hosting this AutoFillManager. | 155 // The TabContents hosting this AutoFillManager. |
149 // Weak reference. | 156 // Weak reference. |
(...skipping 15 matching lines...) Expand all Loading... |
165 // The form data the user has submitted. | 172 // The form data the user has submitted. |
166 scoped_ptr<FormStructure> upload_form_structure_; | 173 scoped_ptr<FormStructure> upload_form_structure_; |
167 | 174 |
168 // The InfoBar that asks for permission to store credit card information. | 175 // The InfoBar that asks for permission to store credit card information. |
169 scoped_ptr<AutoFillCCInfoBarDelegate> cc_infobar_; | 176 scoped_ptr<AutoFillCCInfoBarDelegate> cc_infobar_; |
170 | 177 |
171 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); | 178 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); |
172 }; | 179 }; |
173 | 180 |
174 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 181 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
OLD | NEW |