| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 // distinguishing credit card sections from non-credit card ones -- is made. | 200 // distinguishing credit card sections from non-credit card ones -- is made. |
| 201 void IdentifySections(bool has_author_specified_sections); | 201 void IdentifySections(bool has_author_specified_sections); |
| 202 | 202 |
| 203 bool IsAutocheckoutEnabled() const; | 203 bool IsAutocheckoutEnabled() const; |
| 204 | 204 |
| 205 // Returns the minimal number of fillable fields required to start autofill. | 205 // Returns the minimal number of fillable fields required to start autofill. |
| 206 size_t RequiredFillableFields() const; | 206 size_t RequiredFillableFields() const; |
| 207 size_t active_field_count() const; | 207 size_t active_field_count() const; |
| 208 | 208 |
| 209 // The name of the form. | 209 // The name of the form. |
| 210 string16 form_name_; | 210 base::string16 form_name_; |
| 211 | 211 |
| 212 // The source URL. | 212 // The source URL. |
| 213 GURL source_url_; | 213 GURL source_url_; |
| 214 | 214 |
| 215 // The target URL. | 215 // The target URL. |
| 216 GURL target_url_; | 216 GURL target_url_; |
| 217 | 217 |
| 218 // The number of fields able to be auto-filled. | 218 // The number of fields able to be auto-filled. |
| 219 size_t autofill_count_; | 219 size_t autofill_count_; |
| 220 | 220 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 249 // autocheckout is not enabled for this form. | 249 // autocheckout is not enabled for this form. |
| 250 std::string autocheckout_url_prefix_; | 250 std::string autocheckout_url_prefix_; |
| 251 | 251 |
| 252 // Whether or not this form was filled by Autocheckout. | 252 // Whether or not this form was filled by Autocheckout. |
| 253 bool filled_by_autocheckout_; | 253 bool filled_by_autocheckout_; |
| 254 | 254 |
| 255 DISALLOW_COPY_AND_ASSIGN(FormStructure); | 255 DISALLOW_COPY_AND_ASSIGN(FormStructure); |
| 256 }; | 256 }; |
| 257 | 257 |
| 258 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_ | 258 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_ |
| OLD | NEW |