Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Side by Side Diff: components/autofill/browser/form_field.h

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/autofill/browser/field_types.h ('k') | components/autofill/browser/form_field.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/autofill/browser/field_types.h ('k') | components/autofill/browser/form_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698