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

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

Issue 6775005: iwyu: Cleanup in the following files: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
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 CHROME_BROWSER_AUTOFILL_FORM_FIELD_H_
6 #define CHROME_BROWSER_AUTOFILL_FORM_FIELD_H_ 6 #define CHROME_BROWSER_AUTOFILL_FORM_FIELD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h"
11 #include "base/string16.h" 12 #include "base/string16.h"
12 #include "base/string_util.h"
13 #include "chrome/browser/autofill/autofill_type.h" 13 #include "chrome/browser/autofill/autofill_type.h"
14 #include "chrome/browser/autofill/form_structure.h" 14
15 class AutofillField;
16 class FormStructure;
15 17
16 extern const char kEcmlShipToTitle[]; 18 extern const char kEcmlShipToTitle[];
17 extern const char kEcmlShipToFirstName[]; 19 extern const char kEcmlShipToFirstName[];
18 extern const char kEcmlShipToMiddleName[]; 20 extern const char kEcmlShipToMiddleName[];
19 extern const char kEcmlShipToLastName[]; 21 extern const char kEcmlShipToLastName[];
20 extern const char kEcmlShipToNameSuffix[]; 22 extern const char kEcmlShipToNameSuffix[];
21 extern const char kEcmlShipToCompanyName[]; 23 extern const char kEcmlShipToCompanyName[];
22 extern const char kEcmlShipToAddress1[]; 24 extern const char kEcmlShipToAddress1[];
23 extern const char kEcmlShipToAddress2[]; 25 extern const char kEcmlShipToAddress2[];
24 extern const char kEcmlShipToAddress3[]; 26 extern const char kEcmlShipToAddress3[];
(...skipping 29 matching lines...) Expand all
54 extern const char kEcmlCardExpireDay[]; 56 extern const char kEcmlCardExpireDay[];
55 extern const char kEcmlCardExpireMonth[]; 57 extern const char kEcmlCardExpireMonth[];
56 extern const char kEcmlCardExpireYear[]; 58 extern const char kEcmlCardExpireYear[];
57 59
58 enum FormFieldType { 60 enum FormFieldType {
59 kAddressType, 61 kAddressType,
60 kCreditCardType, 62 kCreditCardType,
61 kOtherFieldType 63 kOtherFieldType
62 }; 64 };
63 65
64 class AutofillField;
65
66 // Represents a logical form field in a web form. Classes that implement this 66 // Represents a logical form field in a web form. Classes that implement this
67 // interface can identify themselves as a particular type of form field, e.g. 67 // interface can identify themselves as a particular type of form field, e.g.
68 // name, phone number, or address field. 68 // name, phone number, or address field.
69 class FormField { 69 class FormField {
70 public: 70 public:
71 virtual ~FormField() {} 71 virtual ~FormField() {}
72 72
73 // Associates the available AutofillTypes of a FormField into 73 // Associates the available AutofillTypes of a FormField into
74 // |field_type_map|. 74 // |field_type_map|.
75 virtual bool GetFieldInfo(FieldTypeMap* field_type_map) const = 0; 75 virtual bool GetFieldInfo(FieldTypeMap* field_type_map) const = 0;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 private: 163 private:
164 // Checks if any of the labels are named according to the ECML standard. 164 // Checks if any of the labels are named according to the ECML standard.
165 // Returns true if at least one ECML named element is found. 165 // Returns true if at least one ECML named element is found.
166 bool CheckECML(FormStructure* fields); 166 bool CheckECML(FormStructure* fields);
167 167
168 DISALLOW_COPY_AND_ASSIGN(FormFieldSet); 168 DISALLOW_COPY_AND_ASSIGN(FormFieldSet);
169 }; 169 };
170 170
171 #endif // CHROME_BROWSER_AUTOFILL_FORM_FIELD_H_ 171 #endif // CHROME_BROWSER_AUTOFILL_FORM_FIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698