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_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_ | |
OLD | NEW |