Index: components/payments/content/payment_response_helper.h |
diff --git a/components/payments/content/payment_response_helper.h b/components/payments/content/payment_response_helper.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..839bab575583fa3c6eb94829da3e120e1795490b |
--- /dev/null |
+++ b/components/payments/content/payment_response_helper.h |
@@ -0,0 +1,30 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENT_RESPONSE_HELPER_H_ |
+#define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_RESPONSE_HELPER_H_ |
+ |
+#include "base/macros.h" |
+#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.
|
+#include "components/payments/content/payment_request.mojom.h" |
+ |
+namespace payments { |
+ |
+// A helper class to facilitate the creation of the PaymentResponse. |
+class PaymentResponseHelper { |
+ public: |
+ PaymentResponseHelper(); |
Mathieu
2017/03/27 23:42:42
TODO(sebsg): Accept PaymentInstrument* and handle
sebsg
2017/03/28 20:33:53
Done.
|
+ ~PaymentResponseHelper(); |
+ |
+ static mojom::PaymentAddressPtr GetMojomPaymentAddressFromAutofillProfile( |
+ const autofill::AutofillProfile* const profile, |
+ const std::string& app_locale); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(PaymentResponseHelper); |
+}; |
+ |
+} // namespace payments |
+ |
+#endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_RESPONSE_HELPER_H_ |