| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // Sections are identified by the heuristic that a logical section should not | 194 // Sections are identified by the heuristic that a logical section should not |
| 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. |
| 205 bool ShouldSkipField(const FormFieldData field) const; |
| 206 |
| 204 // Returns the minimal number of fillable fields required to start autofill. | 207 // Returns the minimal number of fillable fields required to start autofill. |
| 205 size_t RequiredFillableFields() const; | 208 size_t RequiredFillableFields() const; |
| 206 size_t active_field_count() const; | 209 size_t active_field_count() const; |
| 207 | 210 |
| 208 // The name of the form. | 211 // The name of the form. |
| 209 base::string16 form_name_; | 212 base::string16 form_name_; |
| 210 | 213 |
| 211 // The source URL. | 214 // The source URL. |
| 212 GURL source_url_; | 215 GURL source_url_; |
| 213 | 216 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 253 |
| 251 // Whether or not this form was filled by Autocheckout. | 254 // Whether or not this form was filled by Autocheckout. |
| 252 bool filled_by_autocheckout_; | 255 bool filled_by_autocheckout_; |
| 253 | 256 |
| 254 DISALLOW_COPY_AND_ASSIGN(FormStructure); | 257 DISALLOW_COPY_AND_ASSIGN(FormStructure); |
| 255 }; | 258 }; |
| 256 | 259 |
| 257 } // namespace autofill | 260 } // namespace autofill |
| 258 | 261 |
| 259 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_ | 262 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_ |
| OLD | NEW |