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

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

Issue 355003: Implement FormStructure and an initial method, EncodeUploadRequest. This als... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/autofill/form_structure.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTOFILL_FIELD_TYPES_H_
6 #define CHROME_BROWSER_AUTOFILL_FIELD_TYPES_H_
7
8 #include <set>
9
10 // NOTE: This list MUST not be modified. The server aggregates and stores these
11 // types over several versions, so we must remain fully compatible with the
12 // autofill server, which is itself backward-compatible. The list must be kept
13 // up to date with the autofill server list.
14 //
15 // This is the list of all valid field types.
16 typedef enum _FieldType {
17 // Server indication that it has no data for the requested field.
18 NO_SERVER_DATA = 0,
19 // Client indication that the text entered did not match anything in the
20 // personal data.
21 UNKNOWN_TYPE = 1,
22 // The "empty" type indicates that the user hasn't entered anything
23 // in this field.
24 EMPTY_TYPE = 2,
25 // Personal Information categorization types.
26 NAME_FIRST = 3,
27 NAME_MIDDLE = 4,
28 NAME_LAST = 5,
29 NAME_MIDDLE_INITIAL = 6,
30 NAME_FULL = 7,
31 NAME_SUFFIX = 8,
32 EMAIL_ADDRESS = 9,
33 PHONE_HOME_NUMBER = 10,
34 PHONE_HOME_CITY_CODE = 11,
35 PHONE_HOME_COUNTRY_CODE = 12,
36 PHONE_HOME_CITY_AND_NUMBER = 13,
37 PHONE_HOME_WHOLE_NUMBER = 14,
38
39 // Work phone numbers (values [15,19]) are deprecated.
40
41 PHONE_FAX_NUMBER = 20,
42 PHONE_FAX_CITY_CODE = 21,
43 PHONE_FAX_COUNTRY_CODE = 22,
44 PHONE_FAX_CITY_AND_NUMBER = 23,
45 PHONE_FAX_WHOLE_NUMBER = 24,
46
47 // Cell phone numbers (values [25, 29]) are deprecated.
48
49 ADDRESS_HOME_LINE1 = 30,
50 ADDRESS_HOME_LINE2 = 31,
51 ADDRESS_HOME_APPT_NUM = 32,
52 ADDRESS_HOME_CITY = 33,
53 ADDRESS_HOME_STATE = 34,
54 ADDRESS_HOME_ZIP = 35,
55 ADDRESS_HOME_COUNTRY = 36,
56 ADDRESS_BILLING_LINE1 = 37,
57 ADDRESS_BILLING_LINE2 = 38,
58 ADDRESS_BILLING_APPT_NUM = 39,
59 ADDRESS_BILLING_CITY = 40,
60 ADDRESS_BILLING_STATE = 41,
61 ADDRESS_BILLING_ZIP = 42,
62 ADDRESS_BILLING_COUNTRY = 43,
63
64 // ADDRESS_SHIPPING values [44,50] are deprecated.
65
66 CREDIT_CARD_NAME = 51,
67 CREDIT_CARD_NUMBER = 52,
68 CREDIT_CARD_EXP_MONTH = 53,
69 CREDIT_CARD_EXP_2_DIGIT_YEAR = 54,
70 CREDIT_CARD_EXP_4_DIGIT_YEAR = 55,
71 CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR = 56,
72 CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR = 57,
73 CREDIT_CARD_TYPE = 58,
74 CREDIT_CARD_VERIFICATION_CODE = 59,
75
76 COMPANY_NAME = 60,
77
78 // No new types can be added.
79
80 MAX_VALID_FIELD_TYPE = 61,
81 } AutoFillFieldType;
82
83 typedef std::set<AutoFillFieldType> FieldTypeSet;
84
85 #endif // CHROME_BROWSER_AUTOFILL_FIELD_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/autofill/form_structure.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698