Chromium Code Reviews| 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); |
| }; |