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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/payments/chrome_payment_request_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_
6 #define CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ 6 #define CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/payments/payment_request_delegate.h" 9 #include "components/payments/payment_request_delegate.h"
10 10
11 namespace content {
12 class WebContents;
13 }
14
11 namespace payments { 15 namespace payments {
12 16
13 class PaymentRequest; 17 class PaymentRequest;
14 18
15 class ChromePaymentRequestDelegate : public PaymentRequestDelegate { 19 class ChromePaymentRequestDelegate : public PaymentRequestDelegate {
16 public: 20 public:
17 ChromePaymentRequestDelegate() {} 21 explicit ChromePaymentRequestDelegate(content::WebContents* web_contents);
18 ~ChromePaymentRequestDelegate() override {} 22 ~ChromePaymentRequestDelegate() override {}
19 23
20 void ShowPaymentRequestDialog(PaymentRequest* request) override; 24 void ShowPaymentRequestDialog(PaymentRequest* request) override;
25 autofill::PersonalDataManager* GetPersonalDataManager() override;
21 26
22 private: 27 private:
28 // Not owned but outlives the PaymentRequest object that owns this.
29 content::WebContents* web_contents_;
30
23 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate); 31 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate);
24 }; 32 };
25 33
26 } // namespace payments 34 } // namespace payments
27 35
28 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ 36 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_
OLDNEW
« 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