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

Unified Diff: components/payments/payment_request_delegate.h

Issue 2621153002: [WebPayments] Add the Payment Method section in the Payment Sheet (Closed)
Patch Set: Initial patch 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_delegate.h
diff --git a/components/payments/payment_request_delegate.h b/components/payments/payment_request_delegate.h
index 7854f699726b1151dc2d18211ccc47b66b58f094..756f4dc0f1bc8d2f32270caf132ab4debe41c91e 100644
--- a/components/payments/payment_request_delegate.h
+++ b/components/payments/payment_request_delegate.h
@@ -5,6 +5,14 @@
#ifndef COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_
#define COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_
+namespace autofill {
+class PersonalDataManager;
+}
+
+namespace content {
+class WebContents;
+}
+
namespace payments {
class PaymentRequest;
@@ -15,6 +23,10 @@ class PaymentRequestDelegate {
// Shows the Payment Request dialog for the given |request|.
virtual void ShowPaymentRequestDialog(PaymentRequest* request) = 0;
+
+ // Gets the PersonalDataManager associated with |web_contents|'s profile.'
+ virtual autofill::PersonalDataManager* GetDataManagerFromWebContents(
+ content::WebContents* web_contents) = 0;
};
} // namespace payments
« components/payments/payment_request.h ('K') | « components/payments/payment_request.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698