| 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 payments { |
| 19 |
| 20 struct BasicCardResponse; |
| 21 struct PaymentAddress; |
| 22 |
| 23 namespace data_util { |
| 24 |
| 25 // Helper function to get an instance of web::PaymentAddress from an autofill |
| 26 // profile. |
| 27 PaymentAddress GetPaymentAddressFromAutofillProfile( |
| 28 const autofill::AutofillProfile& profile, |
| 29 const std::string& app_locale); |
| 30 |
| 31 // Helper function to get an instance of web::BasicCardResponse from an autofill |
| 32 // credit card. |
| 33 BasicCardResponse GetBasicCardResponseFromAutofillCreditCard( |
| 34 const autofill::CreditCard& card, |
| 35 const base::string16& cvc, |
| 36 const std::vector<autofill::AutofillProfile*>& billing_profiles, |
| 37 const std::string& app_locale); |
| 38 |
| 39 } // namespace data_util |
| 40 } // namespace payments |
| 41 |
| 42 #endif // COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DATA_UTIL_H_ |
| OLD | NEW |