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

Unified Diff: components/payments/content/payment_request_delegate.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_delegate.h
diff --git a/components/payments/content/payment_request_delegate.h b/components/payments/content/payment_request_delegate.h
index 98040a6aa575dc3d1de708ffcd1ec7e0841cf2d4..fa836b4ce5b0f090fab95633a35a78586f7e0ffe 100644
--- a/components/payments/content/payment_request_delegate.h
+++ b/components/payments/content/payment_request_delegate.h
@@ -7,17 +7,24 @@
#include <string>
+#include "components/payments/core/autofill_payment_instrument.h"
+
namespace autofill {
class PersonalDataManager;
}
+namespace content {
+class WebContents;
+}
+
namespace payments {
class PaymentRequest;
-class PaymentRequestDelegate {
+class PaymentRequestDelegate
+ : public AutofillPaymentInstrument::FullCardRequestDelegate {
public:
- virtual ~PaymentRequestDelegate() {}
+ ~PaymentRequestDelegate() override {}
// Shows the Payment Request dialog for the given |request|.
virtual void ShowDialog(PaymentRequest* request) = 0;
@@ -38,6 +45,9 @@ class PaymentRequestDelegate {
// Returns whether the user is in Incognito mode.
virtual bool IsIncognito() const = 0;
+
+ // Returns the current request's web contents.
+ virtual content::WebContents* GetWebContents() = 0;
};
} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698