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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698