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

Side by Side Diff: chrome/browser/autofill/autofill_ecml.h

Issue 7585020: Remove Autofill support for the ECML standard, as it is virtually unused. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ECML files from the repository Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_ECML_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_ECML_H_
7 #pragma once
8
9 #include <vector>
10
11 #include "base/string16.h"
12
13 class AutofillField;
14
15 // Shipping fields.
16 extern const char kEcmlShipToTitle[];
17 extern const char kEcmlShipToFirstName[];
18 extern const char kEcmlShipToMiddleName[];
19 extern const char kEcmlShipToLastName[];
20 extern const char kEcmlShipToNameSuffix[];
21 extern const char kEcmlShipToCompanyName[];
22 extern const char kEcmlShipToAddress1[];
23 extern const char kEcmlShipToAddress2[];
24 extern const char kEcmlShipToAddress3[];
25 extern const char kEcmlShipToCity[];
26 extern const char kEcmlShipToStateProv[];
27 extern const char kEcmlShipToPostalCode[];
28 extern const char kEcmlShipToCountry[];
29 extern const char kEcmlShipToPhone[];
30 extern const char kEcmlShipToEmail[];
31
32 // Billing fields.
33 extern const char kEcmlBillToTitle[];
34 extern const char kEcmlBillToFirstName[];
35 extern const char kEcmlBillToMiddleName[];
36 extern const char kEcmlBillToLastName[];
37 extern const char kEcmlBillToNameSuffix[];
38 extern const char kEcmlBillToCompanyName[];
39 extern const char kEcmlBillToAddress1[];
40 extern const char kEcmlBillToAddress2[];
41 extern const char kEcmlBillToAddress3[];
42 extern const char kEcmlBillToCity[];
43 extern const char kEcmlBillToStateProv[];
44 extern const char kEcmlBillToPostalCode[];
45 extern const char kEcmlBillToCountry[];
46 extern const char kEcmlBillToPhone[];
47 extern const char kEcmlBillToEmail[];
48
49 // Credit card fields.
50 extern const char kEcmlCardHolder[];
51 extern const char kEcmlCardType[];
52 extern const char kEcmlCardNumber[];
53 extern const char kEcmlCardVerification[];
54 extern const char kEcmlCardExpireDay[];
55 extern const char kEcmlCardExpireMonth[];
56 extern const char kEcmlCardExpireYear[];
57
58 // Note: ECML compliance checking has been modified to accommodate Google
59 // Checkout field name limitation. All ECML compliant web forms will be
60 // recognized correctly as such however the restrictions on having exactly
61 // ECML compliant names have been loosened to only require that field names
62 // be prefixed with an ECML compliant name in order to accommodate checkout.
63 // Additionally we allow the use of '.' as a word delimiter in addition to the
64 // ECML standard '_' (see FormField::FormField for details).
65 namespace autofill {
66
67 bool HasECMLField(const std::vector<AutofillField*>& fields);
68 string16 GetEcmlPattern(const char* ecml_name);
69 string16 GetEcmlPattern(const char* ecml_name1,
70 const char* ecml_name2,
71 char pattern_operator);
72 } // namespace autofill
73
74 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_ECML_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/address_field_unittest.cc ('k') | chrome/browser/autofill/autofill_ecml.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698