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

Unified Diff: components/payments/payment_request.h

Issue 2625183002: [WebPayments] Adding Shipping Address and Contact Info display to order summary (Closed)
Patch Set: Rebasing with anthonyvd changes Created 3 years, 11 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/payment_request.h
diff --git a/components/payments/payment_request.h b/components/payments/payment_request.h
index beb112050ed5030d9cbec0b30d8c03338beaee6e..1ce815d5085855e0b5a8f3c39c20c2c5407aa844 100644
--- a/components/payments/payment_request.h
+++ b/components/payments/payment_request.h
@@ -6,8 +6,11 @@
#define COMPONENTS_PAYMENTS_PAYMENT_REQUEST_H_
#include <memory>
+#include <string>
+#include <vector>
#include "base/optional.h"
+#include "components/autofill/core/browser/autofill_profile.h"
please use gerrit instead 2017/01/18 18:50:48 Please forward-declare instead
tmartino 2017/01/18 20:39:13 Done
#include "components/payments/currency_formatter.h"
#include "components/payments/payment_request.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
@@ -57,6 +60,8 @@ class PaymentRequest : payments::mojom::PaymentRequest {
const base::Optional<std::string> currency_system,
const std::string& locale_name);
+ autofill::AutofillProfile* GetCurrentlySelectedProfile();
+
// Returns the currently selected credit card for this PaymentRequest flow.
// It's not guaranteed to be complete. Returns nullptr if there is no selected
// card.
@@ -74,6 +79,7 @@ class PaymentRequest : payments::mojom::PaymentRequest {
payments::mojom::PaymentRequestClientPtr client_;
payments::mojom::PaymentDetailsPtr details_;
std::unique_ptr<CurrencyFormatter> currency_formatter_;
+ base::Optional<autofill::AutofillProfile*> profile_;
please use gerrit instead 2017/01/18 18:50:48 Please keep a copy of the selected profile. Profil
tmartino 2017/01/18 20:39:13 Done
DISALLOW_COPY_AND_ASSIGN(PaymentRequest);
};

Powered by Google App Engine
This is Rietveld 408576698