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

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

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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/browser/email_field.cc ('k') | components/autofill/browser/form_field.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/browser/field_types.h
diff --git a/components/autofill/browser/field_types.h b/components/autofill/browser/field_types.h
deleted file mode 100644
index c4dce25e108d6a9d4688a21e8fc486d15b5142c2..0000000000000000000000000000000000000000
--- a/components/autofill/browser/field_types.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_AUTOFILL_BROWSER_FIELD_TYPES_H_
-#define COMPONENTS_AUTOFILL_BROWSER_FIELD_TYPES_H_
-
-#include <set>
-#include <string>
-
-namespace autofill {
-
-// NOTE: This list MUST not be modified. The server aggregates and stores these
-// types over several versions, so we must remain fully compatible with the
-// 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 {
- // 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
- // personal data.
- UNKNOWN_TYPE = 1,
- // The "empty" type indicates that the user hasn't entered anything
- // in this field.
- EMPTY_TYPE = 2,
- // Personal Information categorization types.
- NAME_FIRST = 3,
- NAME_MIDDLE = 4,
- NAME_LAST = 5,
- NAME_MIDDLE_INITIAL = 6,
- NAME_FULL = 7,
- NAME_SUFFIX = 8,
- EMAIL_ADDRESS = 9,
- PHONE_HOME_NUMBER = 10,
- PHONE_HOME_CITY_CODE = 11,
- PHONE_HOME_COUNTRY_CODE = 12,
- PHONE_HOME_CITY_AND_NUMBER = 13,
- PHONE_HOME_WHOLE_NUMBER = 14,
-
- // Work phone numbers (values [15,19]) are deprecated.
-
- // Fax numbers (values [20,24]) are deprecated in Chrome, but still supported
- // by the server.
- PHONE_FAX_NUMBER = 20,
- PHONE_FAX_CITY_CODE = 21,
- PHONE_FAX_COUNTRY_CODE = 22,
- PHONE_FAX_CITY_AND_NUMBER = 23,
- PHONE_FAX_WHOLE_NUMBER = 24,
-
- // Cell phone numbers (values [25, 29]) are deprecated.
-
- ADDRESS_HOME_LINE1 = 30,
- ADDRESS_HOME_LINE2 = 31,
- ADDRESS_HOME_APT_NUM = 32,
- ADDRESS_HOME_CITY = 33,
- ADDRESS_HOME_STATE = 34,
- ADDRESS_HOME_ZIP = 35,
- ADDRESS_HOME_COUNTRY = 36,
- ADDRESS_BILLING_LINE1 = 37,
- ADDRESS_BILLING_LINE2 = 38,
- ADDRESS_BILLING_APT_NUM = 39,
- ADDRESS_BILLING_CITY = 40,
- ADDRESS_BILLING_STATE = 41,
- ADDRESS_BILLING_ZIP = 42,
- ADDRESS_BILLING_COUNTRY = 43,
-
- // ADDRESS_SHIPPING values [44,50] are deprecated.
-
- CREDIT_CARD_NAME = 51,
- CREDIT_CARD_NUMBER = 52,
- CREDIT_CARD_EXP_MONTH = 53,
- CREDIT_CARD_EXP_2_DIGIT_YEAR = 54,
- CREDIT_CARD_EXP_4_DIGIT_YEAR = 55,
- CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR = 56,
- CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR = 57,
- CREDIT_CARD_TYPE = 58,
- CREDIT_CARD_VERIFICATION_CODE = 59,
-
- COMPANY_NAME = 60,
-
- // Generic type whose default value is known.
- FIELD_WITH_DEFAULT_VALUE = 61,
-
- PHONE_BILLING_NUMBER = 62,
- PHONE_BILLING_CITY_CODE = 63,
- PHONE_BILLING_COUNTRY_CODE = 64,
- PHONE_BILLING_CITY_AND_NUMBER = 65,
- PHONE_BILLING_WHOLE_NUMBER = 66,
-
- // No new types can be added.
-
- MAX_VALID_FIELD_TYPE = 67,
-};
-
-typedef std::set<AutofillFieldType> FieldTypeSet;
-
-} // namespace autofill
-
-#endif // COMPONENTS_AUTOFILL_BROWSER_FIELD_TYPES_H_
« no previous file with comments | « components/autofill/browser/email_field.cc ('k') | components/autofill/browser/form_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698