OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 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_FIELD_TYPES_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_FIELD_TYPES_H_ |
6 #define CHROME_BROWSER_AUTOFILL_FIELD_TYPES_H_ | 6 #define CHROME_BROWSER_AUTOFILL_FIELD_TYPES_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 typedef enum _AddressType { | 10 typedef enum _AddressType { |
11 kGenericAddress = 0, | 11 kGenericAddress = 0, |
12 kBillingAddress, | 12 kBillingAddress, |
13 kShippingAddress | 13 kShippingAddress |
14 } AddressType; | 14 } AddressType; |
15 | 15 |
16 // NOTE: This list MUST not be modified. The server aggregates and stores these | 16 // NOTE: This list MUST not be modified. The server aggregates and stores these |
17 // types over several versions, so we must remain fully compatible with the | 17 // types over several versions, so we must remain fully compatible with the |
18 // autofill server, which is itself backward-compatible. The list must be kept | 18 // AutoFill server, which is itself backward-compatible. The list must be kept |
19 // up to date with the autofill server list. | 19 // up to date with the AutoFill server list. |
20 // | 20 // |
21 // This is the list of all valid field types. | 21 // This is the list of all valid field types. |
22 typedef enum _FieldType { | 22 typedef enum _FieldType { |
23 // Server indication that it has no data for the requested field. | 23 // Server indication that it has no data for the requested field. |
24 NO_SERVER_DATA = 0, | 24 NO_SERVER_DATA = 0, |
25 // Client indication that the text entered did not match anything in the | 25 // Client indication that the text entered did not match anything in the |
26 // personal data. | 26 // personal data. |
27 UNKNOWN_TYPE = 1, | 27 UNKNOWN_TYPE = 1, |
28 // The "empty" type indicates that the user hasn't entered anything | 28 // The "empty" type indicates that the user hasn't entered anything |
29 // in this field. | 29 // in this field. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 COMPANY_NAME = 60, | 82 COMPANY_NAME = 60, |
83 | 83 |
84 // No new types can be added. | 84 // No new types can be added. |
85 | 85 |
86 MAX_VALID_FIELD_TYPE = 61, | 86 MAX_VALID_FIELD_TYPE = 61, |
87 } AutoFillFieldType; | 87 } AutoFillFieldType; |
88 | 88 |
89 typedef std::set<AutoFillFieldType> FieldTypeSet; | 89 typedef std::set<AutoFillFieldType> FieldTypeSet; |
90 | 90 |
91 #endif // CHROME_BROWSER_AUTOFILL_FIELD_TYPES_H_ | 91 #endif // CHROME_BROWSER_AUTOFILL_FIELD_TYPES_H_ |
OLD | NEW |