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

Side by Side Diff: components/autofill/core/browser/credit_card.h

Issue 2249773002: Scan card holder name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CORE_BROWSER_CREDIT_CARD_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 28 matching lines...) Expand all
39 FULL_SERVER_CARD, 39 FULL_SERVER_CARD,
40 }; 40 };
41 41
42 // The status of this credit card. Only used for server cards. 42 // The status of this credit card. Only used for server cards.
43 enum ServerStatus { 43 enum ServerStatus {
44 EXPIRED, 44 EXPIRED,
45 OK, 45 OK,
46 }; 46 };
47 47
48 CreditCard(const std::string& guid, const std::string& origin); 48 CreditCard(const std::string& guid, const std::string& origin);
49 CreditCard(const base::string16& card_number, 49 CreditCard(const base::string16& card_holder_name,
Evan Stade 2016/08/16 00:33:35 I don't see why we need a special constructor for
please use gerrit instead 2016/08/16 22:03:19 Leaving the original constructor alone.
Evan Stade 2016/08/17 06:30:57 cool, but I was actually hoping you'd delete it co
please use gerrit instead 2016/08/17 18:16:17 This constructor is used in tons of tests, so it w
50 const base::string16& card_number,
50 int expiration_month, 51 int expiration_month,
51 int expiration_year); 52 int expiration_year);
52 53
53 // Creates a server card. The type must be MASKED_SERVER_CARD or 54 // Creates a server card. The type must be MASKED_SERVER_CARD or
54 // FULL_SERVER_CARD. 55 // FULL_SERVER_CARD.
55 CreditCard(RecordType type, const std::string& server_id); 56 CreditCard(RecordType type, const std::string& server_id);
56 57
57 // For use in STL containers. 58 // For use in STL containers.
58 CreditCard(); 59 CreditCard();
59 CreditCard(const CreditCard& credit_card); 60 CreditCard(const CreditCard& credit_card);
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 extern const char kDiscoverCard[]; 269 extern const char kDiscoverCard[];
269 extern const char kGenericCard[]; 270 extern const char kGenericCard[];
270 extern const char kJCBCard[]; 271 extern const char kJCBCard[];
271 extern const char kMasterCard[]; 272 extern const char kMasterCard[];
272 extern const char kUnionPay[]; 273 extern const char kUnionPay[];
273 extern const char kVisaCard[]; 274 extern const char kVisaCard[];
274 275
275 } // namespace autofill 276 } // namespace autofill
276 277
277 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_ 278 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698