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_FIELD_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_FIELD_H_ |
6 #define COMPONENTS_AUTOFILL_BROWSER_FORM_FIELD_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_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/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "components/autofill/browser/autofill_type.h" | 13 #include "components/autofill/core/browser/autofill_type.h" |
14 | 14 |
15 namespace autofill { | 15 namespace autofill { |
16 | 16 |
17 class AutofillField; | 17 class AutofillField; |
18 class AutofillScanner; | 18 class AutofillScanner; |
19 | 19 |
20 // Represents a logical form field in a web form. Classes that implement this | 20 // Represents a logical form field in a web form. Classes that implement this |
21 // interface can identify themselves as a particular type of form field, e.g. | 21 // interface can identify themselves as a particular type of form field, e.g. |
22 // name, phone number, or address field. | 22 // name, phone number, or address field. |
23 class FormField { | 23 class FormField { |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Classification results of the processed fields are stored in |map|. | 114 // Classification results of the processed fields are stored in |map|. |
115 static void ParseFormFieldsPass(ParseFunction parse, | 115 static void ParseFormFieldsPass(ParseFunction parse, |
116 std::vector<const AutofillField*>* fields, | 116 std::vector<const AutofillField*>* fields, |
117 FieldTypeMap* map); | 117 FieldTypeMap* map); |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(FormField); | 119 DISALLOW_COPY_AND_ASSIGN(FormField); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace autofill | 122 } // namespace autofill |
123 | 123 |
124 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_FIELD_H_ | 124 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_FIELD_H_ |
OLD | NEW |