| 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_FIELD_TYPES_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_FIELD_TYPES_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_FIELD_TYPES_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_FIELD_TYPES_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "components/autofill/common/autofill_export.h" |
| 12 |
| 11 namespace autofill { | 13 namespace autofill { |
| 12 | 14 |
| 13 // NOTE: This list MUST not be modified. The server aggregates and stores these | 15 // NOTE: This list MUST not be modified. The server aggregates and stores these |
| 14 // types over several versions, so we must remain fully compatible with the | 16 // types over several versions, so we must remain fully compatible with the |
| 15 // Autofill server, which is itself backward-compatible. The list must be kept | 17 // Autofill server, which is itself backward-compatible. The list must be kept |
| 16 // up to date with the Autofill server list. | 18 // up to date with the Autofill server list. |
| 17 // | 19 // |
| 18 // This is the list of all valid field types. | 20 // This is the list of all valid field types. |
| 19 enum AutofillFieldType { | 21 enum AUTOFILL_EXPORT AutofillFieldType { |
| 20 // Server indication that it has no data for the requested field. | 22 // Server indication that it has no data for the requested field. |
| 21 NO_SERVER_DATA = 0, | 23 NO_SERVER_DATA = 0, |
| 22 // Client indication that the text entered did not match anything in the | 24 // Client indication that the text entered did not match anything in the |
| 23 // personal data. | 25 // personal data. |
| 24 UNKNOWN_TYPE = 1, | 26 UNKNOWN_TYPE = 1, |
| 25 // The "empty" type indicates that the user hasn't entered anything | 27 // The "empty" type indicates that the user hasn't entered anything |
| 26 // in this field. | 28 // in this field. |
| 27 EMPTY_TYPE = 2, | 29 EMPTY_TYPE = 2, |
| 28 // Personal Information categorization types. | 30 // Personal Information categorization types. |
| 29 NAME_FIRST = 3, | 31 NAME_FIRST = 3, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // No new types can be added. | 88 // No new types can be added. |
| 87 | 89 |
| 88 MAX_VALID_FIELD_TYPE = 62, | 90 MAX_VALID_FIELD_TYPE = 62, |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 typedef std::set<AutofillFieldType> FieldTypeSet; | 93 typedef std::set<AutofillFieldType> FieldTypeSet; |
| 92 | 94 |
| 93 } // namespace autofill | 95 } // namespace autofill |
| 94 | 96 |
| 95 #endif // COMPONENTS_AUTOFILL_BROWSER_FIELD_TYPES_H_ | 97 #endif // COMPONENTS_AUTOFILL_BROWSER_FIELD_TYPES_H_ |
| OLD | NEW |