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

Side by Side Diff: components/autofill/browser/autofill_type.h

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 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 COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_TYPE_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_TYPE_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_TYPE_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_TYPE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "components/autofill/browser/field_types.h" 13 #include "components/autofill/browser/field_types.h"
14 #include "components/autofill/common/autofill_export.h"
14 15
15 namespace autofill { 16 namespace autofill {
16 17
17 // The high-level description of Autofill types, used to categorize form fields 18 // The high-level description of Autofill types, used to categorize form fields
18 // and for associating form fields with form values in the Web Database. 19 // and for associating form fields with form values in the Web Database.
19 class AutofillType { 20 class AUTOFILL_EXPORT AutofillType {
20 public: 21 public:
21 enum FieldTypeGroup { 22 enum FieldTypeGroup {
22 NO_GROUP, 23 NO_GROUP,
23 NAME, 24 NAME,
24 EMAIL, 25 EMAIL,
25 COMPANY, 26 COMPANY,
26 ADDRESS_HOME, 27 ADDRESS_HOME,
27 ADDRESS_BILLING, 28 ADDRESS_BILLING,
28 PHONE, 29 PHONE,
29 CREDIT_CARD, 30 CREDIT_CARD,
(...skipping 19 matching lines...) Expand all
49 AutofillFieldType field_type_; 50 AutofillFieldType field_type_;
50 }; 51 };
51 52
52 typedef AutofillType::FieldTypeGroup FieldTypeGroup; 53 typedef AutofillType::FieldTypeGroup FieldTypeGroup;
53 typedef std::set<AutofillFieldType> FieldTypeSet; 54 typedef std::set<AutofillFieldType> FieldTypeSet;
54 typedef std::map<base::string16, AutofillFieldType> FieldTypeMap; 55 typedef std::map<base::string16, AutofillFieldType> FieldTypeMap;
55 56
56 } // namespace autofill 57 } // namespace autofill
57 58
58 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_TYPE_H_ 59 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698