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

Unified Diff: chrome/browser/payments/chrome_payment_request_delegate.h

Issue 2621153002: [WebPayments] Add the Payment Method section in the Payment Sheet (Closed)
Patch Set: Fix BUILD.gn deps. 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
« no previous file with comments | « no previous file | chrome/browser/payments/chrome_payment_request_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/payments/chrome_payment_request_delegate.h
diff --git a/chrome/browser/payments/chrome_payment_request_delegate.h b/chrome/browser/payments/chrome_payment_request_delegate.h
index 2a9bd28b70c4782203a8ed56a80aced26edcc539..4f54fb5f47d6fc067ede1df71e7f36927908744f 100644
--- a/chrome/browser/payments/chrome_payment_request_delegate.h
+++ b/chrome/browser/payments/chrome_payment_request_delegate.h
@@ -8,18 +8,26 @@
#include "base/macros.h"
#include "components/payments/payment_request_delegate.h"
+namespace content {
+class WebContents;
+}
+
namespace payments {
class PaymentRequest;
class ChromePaymentRequestDelegate : public PaymentRequestDelegate {
public:
- ChromePaymentRequestDelegate() {}
+ explicit ChromePaymentRequestDelegate(content::WebContents* web_contents);
~ChromePaymentRequestDelegate() override {}
void ShowPaymentRequestDialog(PaymentRequest* request) override;
+ autofill::PersonalDataManager* GetPersonalDataManager() override;
private:
+ // Not owned but outlives the PaymentRequest object that owns this.
+ content::WebContents* web_contents_;
+
DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate);
};
« no previous file with comments | « no previous file | chrome/browser/payments/chrome_payment_request_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698