| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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 COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DATA_UTIL_H_ |
| 6 #define COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DATA_UTIL_H_ |
| 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 11 #include "base/strings/string16.h" |
| 12 |
| 13 namespace autofill { |
| 14 class AutofillProfile; |
| 15 class CreditCard; |
| 16 } // namespace autofill |
| 17 |
| 18 namespace web { |
| 19 class BasicCardResponse; |
| 20 class PaymentAddress; |
| 21 } // namespace web |
| 22 |
| 23 namespace payments { |
| 24 namespace data_util { |
| 25 |
| 26 // Helper function to get an instance of web::PaymentAddress from an autofill |
| 27 // profile. |
| 28 web::PaymentAddress GetPaymentAddressFromAutofillProfile( |
| 29 const autofill::AutofillProfile& profile, |
| 30 const std::string& app_locale); |
| 31 |
| 32 // Helper function to get an instance of web::BasicCardResponse from an autofill |
| 33 // credit card. |
| 34 web::BasicCardResponse GetBasicCardResponseFromAutofillCreditCard( |
| 35 const autofill::CreditCard& card, |
| 36 const base::string16& cvc, |
| 37 const std::vector<autofill::AutofillProfile*>& billing_profiles, |
| 38 const std::string& app_locale); |
| 39 |
| 40 } // namespace data_util |
| 41 } // namespace payments |
| 42 |
| 43 #endif // COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DATA_UTIL_H_ |
| OLD | NEW |