OLD | NEW |
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 COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_ |
6 #define COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // include multiple fields of the same autofill type (with some exceptions, as | 195 // include multiple fields of the same autofill type (with some exceptions, as |
196 // described in the implementation). Sections are furthermore distinguished | 196 // described in the implementation). Sections are furthermore distinguished |
197 // as either credit card or non-credit card sections. | 197 // as either credit card or non-credit card sections. |
198 // If |has_author_specified_sections| is true, only the second pass -- | 198 // If |has_author_specified_sections| is true, only the second pass -- |
199 // distinguishing credit card sections from non-credit card ones -- is made. | 199 // distinguishing credit card sections from non-credit card ones -- is made. |
200 void IdentifySections(bool has_author_specified_sections); | 200 void IdentifySections(bool has_author_specified_sections); |
201 | 201 |
202 bool IsAutocheckoutEnabled() const; | 202 bool IsAutocheckoutEnabled() const; |
203 | 203 |
204 // Returns true if field should be skipped when talking to Autofill server. | 204 // Returns true if field should be skipped when talking to Autofill server. |
205 bool ShouldSkipField(const FormFieldData field) const; | 205 bool ShouldSkipField(const FormFieldData& field) const; |
206 | 206 |
207 // Returns the minimal number of fillable fields required to start autofill. | 207 // Returns the minimal number of fillable fields required to start autofill. |
208 size_t RequiredFillableFields() const; | 208 size_t RequiredFillableFields() const; |
209 size_t active_field_count() const; | 209 size_t active_field_count() const; |
210 | 210 |
211 // The name of the form. | 211 // The name of the form. |
212 base::string16 form_name_; | 212 base::string16 form_name_; |
213 | 213 |
214 // The source URL. | 214 // The source URL. |
215 GURL source_url_; | 215 GURL source_url_; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 253 |
254 // Whether or not this form was filled by Autocheckout. | 254 // Whether or not this form was filled by Autocheckout. |
255 bool filled_by_autocheckout_; | 255 bool filled_by_autocheckout_; |
256 | 256 |
257 DISALLOW_COPY_AND_ASSIGN(FormStructure); | 257 DISALLOW_COPY_AND_ASSIGN(FormStructure); |
258 }; | 258 }; |
259 | 259 |
260 } // namespace autofill | 260 } // namespace autofill |
261 | 261 |
262 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_ | 262 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_ |
OLD | NEW |