| 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 CHROME_BROWSER_AUTOFILL_FORM_FIELD_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_FORM_FIELD_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_FORM_FIELD_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_FORM_FIELD_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "chrome/browser/autofill/autofill_type.h" | 13 #include "components/autofill/browser/autofill_type.h" |
| 14 | 14 |
| 15 class AutofillField; | 15 class AutofillField; |
| 16 class AutofillScanner; | 16 class AutofillScanner; |
| 17 | 17 |
| 18 // Represents a logical form field in a web form. Classes that implement this | 18 // Represents a logical form field in a web form. Classes that implement this |
| 19 // interface can identify themselves as a particular type of form field, e.g. | 19 // interface can identify themselves as a particular type of form field, e.g. |
| 20 // name, phone number, or address field. | 20 // name, phone number, or address field. |
| 21 class FormField { | 21 class FormField { |
| 22 public: | 22 public: |
| 23 virtual ~FormField() {} | 23 virtual ~FormField() {} |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // |fields| is both an input and an output parameter. Upon exit |fields| | 110 // |fields| is both an input and an output parameter. Upon exit |fields| |
| 111 // holds any remaining unclassified fields for further processing. | 111 // holds any remaining unclassified fields for further processing. |
| 112 // Classification results of the processed fields are stored in |map|. | 112 // Classification results of the processed fields are stored in |map|. |
| 113 static void ParseFormFieldsPass(ParseFunction parse, | 113 static void ParseFormFieldsPass(ParseFunction parse, |
| 114 std::vector<const AutofillField*>* fields, | 114 std::vector<const AutofillField*>* fields, |
| 115 FieldTypeMap* map); | 115 FieldTypeMap* map); |
| 116 | 116 |
| 117 DISALLOW_COPY_AND_ASSIGN(FormField); | 117 DISALLOW_COPY_AND_ASSIGN(FormField); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 #endif // CHROME_BROWSER_AUTOFILL_FORM_FIELD_H_ | 120 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_FIELD_H_ |
| OLD | NEW |