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 CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "chrome/browser/autofill/field_types.h" | 14 #include "chrome/browser/autofill/field_types.h" |
15 | 15 |
16 // The high-level description of AutoFill types, used to categorize form fields | 16 // The high-level description of AutoFill types, used to categorize form fields |
17 // and for associating form fields with form values in the Web Database. | 17 // and for associating form fields with form values in the Web Database. |
18 class AutofillType { | 18 class AutofillType { |
19 public: | 19 public: |
20 enum FieldTypeGroup { | 20 enum FieldTypeGroup { |
21 NO_GROUP, | 21 NO_GROUP, |
22 CONTACT_INFO, | 22 NAME, |
| 23 EMAIL, |
| 24 COMPANY, |
23 ADDRESS_HOME, | 25 ADDRESS_HOME, |
24 ADDRESS_BILLING, | 26 ADDRESS_BILLING, |
25 PHONE_HOME, | 27 PHONE_HOME, |
26 PHONE_FAX, | 28 PHONE_FAX, |
27 CREDIT_CARD, | 29 CREDIT_CARD, |
28 }; | 30 }; |
29 | 31 |
30 enum FieldTypeSubGroup { | 32 enum FieldTypeSubGroup { |
31 NO_SUBGROUP, | 33 NO_SUBGROUP, |
32 // Address subgroups. | 34 // Address subgroups. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 private: | 73 private: |
72 AutofillFieldType field_type_; | 74 AutofillFieldType field_type_; |
73 }; | 75 }; |
74 | 76 |
75 typedef AutofillType::FieldTypeGroup FieldTypeGroup; | 77 typedef AutofillType::FieldTypeGroup FieldTypeGroup; |
76 typedef AutofillType::FieldTypeSubGroup FieldTypeSubGroup; | 78 typedef AutofillType::FieldTypeSubGroup FieldTypeSubGroup; |
77 typedef std::set<AutofillFieldType> FieldTypeSet; | 79 typedef std::set<AutofillFieldType> FieldTypeSet; |
78 typedef std::map<string16, AutofillFieldType> FieldTypeMap; | 80 typedef std::map<string16, AutofillFieldType> FieldTypeMap; |
79 | 81 |
80 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ | 82 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ |
OLD | NEW |