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

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

Issue 2829503002: [Payments] Normalize Shipping Address sent to merchant on Desktop. (Closed)
Patch Set: Be more strict on country code Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_AUTOFILL_DATA_UTIL_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_UTIL_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_UTIL_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_UTIL_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/string_piece.h" 9 #include "base/strings/string_piece.h"
10 #include "components/autofill/core/browser/autofill_profile.h" 10 #include "components/autofill/core/browser/autofill_profile.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Returns the Payment Request API basic card payment spec data for the provided 50 // Returns the Payment Request API basic card payment spec data for the provided
51 // autofill credit card |type|. Will set the type and the icon to "generic" for 51 // autofill credit card |type|. Will set the type and the icon to "generic" for
52 // any unrecognized type. 52 // any unrecognized type.
53 const PaymentRequestData& GetPaymentRequestData(const std::string& type); 53 const PaymentRequestData& GetPaymentRequestData(const std::string& type);
54 54
55 // Returns the autofill credit card type string for the provided Payment Request 55 // Returns the autofill credit card type string for the provided Payment Request
56 // API basic card payment spec |type|. 56 // API basic card payment spec |type|.
57 const char* GetCardTypeForBasicCardPaymentType(const std::string& type); 57 const char* GetCardTypeForBasicCardPaymentType(const std::string& type);
58 58
59 // Returns whether the specified |country_code| is a valid country code.
60 bool IsValidCountryCode(const std::string& country_code);
61 bool IsValidCountryCode(const base::string16& country_code);
62
59 } // namespace data_util 63 } // namespace data_util
60 } // namespace autofill 64 } // namespace autofill
61 65
62 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_UTIL_H_ 66 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_UTIL_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/address.cc ('k') | components/autofill/core/browser/autofill_data_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698