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

Side by Side Diff: components/payments/content/payment_response_helper.h

Issue 2779813003: [Payments] Add Ship. Addr. & Contact Info in Payment Response on Desktop. (Closed)
Patch Set: Addressed comments 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
(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_CONTENT_PAYMENT_RESPONSE_HELPER_H_
6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_RESPONSE_HELPER_H_
7
8 #include "base/macros.h"
9 #include "components/payments/content/payment_request.mojom.h"
10
11 namespace autofill {
12 class AutofillProfile;
13 } // namespace autofill
14
15 namespace payments {
16
17 // TODO(sebsg): Accept PaymentInstrument and handle generating the payment
18 // aspect of the PaymentResponse in this class.
19 // TODO(sebsg): Asynchronously normalize the billing and shipping addresses
20 // before adding them to the PaymentResponse.
21 // A helper class to facilitate the creation of the PaymentResponse.
22 class PaymentResponseHelper {
23 public:
24 PaymentResponseHelper();
25 ~PaymentResponseHelper();
26
27 static mojom::PaymentAddressPtr GetMojomPaymentAddressFromAutofillProfile(
28 const autofill::AutofillProfile* const profile,
29 const std::string& app_locale);
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(PaymentResponseHelper);
33 };
34
35 } // namespace payments
36
37 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_RESPONSE_HELPER_H_
OLDNEW
« no previous file with comments | « components/payments/content/payment_request_state_unittest.cc ('k') | components/payments/content/payment_response_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698