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

Unified Diff: components/autofill/core/browser/field_types.h

Issue 21947003: [Autofill] Move FieldTypeGroup out of the AutofillType class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/autofill/core/browser/credit_card.cc ('k') | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/field_types.h
diff --git a/components/autofill/core/browser/field_types.h b/components/autofill/core/browser/field_types.h
index 3fab90e40e0803a7dcf02f17442f7bd9f6d74003..1e784d566f412e5f72676df821b0cc0292124b0e 100644
--- a/components/autofill/core/browser/field_types.h
+++ b/components/autofill/core/browser/field_types.h
@@ -5,8 +5,10 @@
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FIELD_TYPES_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_FIELD_TYPES_H_
+#include <map>
#include <set>
-#include <string>
+
+#include "base/strings/string16.h"
namespace autofill {
@@ -102,7 +104,21 @@ enum AutofillFieldType {
MAX_VALID_FIELD_TYPE = 73,
};
+enum FieldTypeGroup {
+ NO_GROUP,
+ NAME,
+ NAME_BILLING,
+ EMAIL,
+ COMPANY,
+ ADDRESS_HOME,
+ ADDRESS_BILLING,
+ PHONE_HOME,
+ PHONE_BILLING,
+ CREDIT_CARD,
+};
+
typedef std::set<AutofillFieldType> FieldTypeSet;
+typedef std::map<base::string16, AutofillFieldType> FieldTypeMap;
} // namespace autofill
« no previous file with comments | « components/autofill/core/browser/credit_card.cc ('k') | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698