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

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

Issue 22009003: [Autofill] Distinguish between native field types and potentially HTML field types. (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/email_field.cc ('k') | components/autofill/core/browser/form_field.h » ('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 1e784d566f412e5f72676df821b0cc0292124b0e..c083b39b9c8d979cd6c0734c3c7a0bd11dd2ab06 100644
--- a/components/autofill/core/browser/field_types.h
+++ b/components/autofill/core/browser/field_types.h
@@ -17,8 +17,9 @@ namespace autofill {
// Autofill server, which is itself backward-compatible. The list must be kept
// up to date with the Autofill server list.
//
-// This is the list of all valid field types.
-enum AutofillFieldType {
+// The list of all field types natively understood by the Autofill server. A
+// subset of these types is used to store Autofill data in the user's profile.
+enum ServerFieldType {
// Server indication that it has no data for the requested field.
NO_SERVER_DATA = 0,
// Client indication that the text entered did not match anything in the
@@ -117,8 +118,8 @@ enum FieldTypeGroup {
CREDIT_CARD,
};
-typedef std::set<AutofillFieldType> FieldTypeSet;
-typedef std::map<base::string16, AutofillFieldType> FieldTypeMap;
+typedef std::set<ServerFieldType> ServerFieldTypeSet;
+typedef std::map<base::string16, ServerFieldType> ServerFieldTypeMap;
} // namespace autofill
« no previous file with comments | « components/autofill/core/browser/email_field.cc ('k') | components/autofill/core/browser/form_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698