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

Unified Diff: components/payments/content/payment_request_state.h

Issue 2779283002: [Web Payments] Implement the CVC Unmask dialog. (Closed)
Patch Set: Rebase + add browser test Created 3 years, 8 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_request_state.h
diff --git a/components/payments/content/payment_request_state.h b/components/payments/content/payment_request_state.h
index 19f9979b59f17dd1acc49c2012e9e0831efb7761..e2b39b3431268ed75dc3806348e17903b07da51b 100644
--- a/components/payments/content/payment_request_state.h
+++ b/components/payments/content/payment_request_state.h
@@ -21,6 +21,7 @@ class PersonalDataManager;
namespace payments {
class PaymentRequestSpec;
+class PaymentRequestDelegate;
// Keeps track of the information currently selected by the user and whether the
// user is ready to pay. Uses information from the PaymentRequestSpec, which is
@@ -45,6 +46,7 @@ class PaymentRequestState : public PaymentInstrument::Delegate {
// Called when the PaymentResponse is available.
virtual void OnPaymentResponseAvailable(
mojom::PaymentResponsePtr response) = 0;
+ virtual PaymentRequestDelegate* GetPaymentRequestDelegate() = 0;
// Called when the shipping option has changed to |shipping_option_id|.
virtual void OnShippingOptionIdSelected(std::string shipping_option_id) = 0;
@@ -120,6 +122,8 @@ class PaymentRequestState : public PaymentInstrument::Delegate {
const std::string& GetApplicationLocale();
autofill::PersonalDataManager* GetPersonalDataManager();
+ Delegate* delegate() { return delegate_; }
+
private:
// Fetches the Autofill Profiles for this user from the PersonalDataManager,
// and stores copies of them, owned by this PaymentRequestState, in

Powered by Google App Engine
This is Rietveld 408576698