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

Side by Side Diff: components/payments/core/payment_request_data_util.h

Issue 2733953003: [Payments] Return a basic card response (Closed)
Patch Set: addressed comments from anthony Created 3 years, 9 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
(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_
OLDNEW
« no previous file with comments | « components/payments/core/payment_instrument.h ('k') | components/payments/core/payment_request_data_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698