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

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: 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/autofill/core/browser/autofill_profile.h"
Mathieu 2017/03/27 23:42:42 I think you can fwd declare this
sebsg 2017/03/28 20:33:53 Done.
10 #include "components/payments/content/payment_request.mojom.h"
11
12 namespace payments {
13
14 // A helper class to facilitate the creation of the PaymentResponse.
15 class PaymentResponseHelper {
16 public:
17 PaymentResponseHelper();
Mathieu 2017/03/27 23:42:42 TODO(sebsg): Accept PaymentInstrument* and handle
sebsg 2017/03/28 20:33:53 Done.
18 ~PaymentResponseHelper();
19
20 static mojom::PaymentAddressPtr GetMojomPaymentAddressFromAutofillProfile(
21 const autofill::AutofillProfile* const profile,
22 const std::string& app_locale);
23
24 private:
25 DISALLOW_COPY_AND_ASSIGN(PaymentResponseHelper);
26 };
27
28 } // namespace payments
29
30 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_RESPONSE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698