| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |