Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 payments { | 11 namespace payments { |
| 12 | 12 |
| 13 class PaymentRequest; | 13 class PaymentRequest; |
| 14 | 14 |
| 15 class ChromePaymentRequestDelegate : public PaymentRequestDelegate { | 15 class ChromePaymentRequestDelegate : public PaymentRequestDelegate { |
| 16 public: | 16 public: |
| 17 ChromePaymentRequestDelegate() {} | 17 ChromePaymentRequestDelegate() {} |
|
Mathieu
2017/01/12 21:27:10
Let's create the ChromePaymentRequestDelegate with
anthonyvd
2017/01/13 16:36:06
Done.
| |
| 18 ~ChromePaymentRequestDelegate() override {} | 18 ~ChromePaymentRequestDelegate() override {} |
| 19 | 19 |
| 20 void ShowPaymentRequestDialog(PaymentRequest* request) override; | 20 void ShowPaymentRequestDialog(PaymentRequest* request) override; |
| 21 autofill::PersonalDataManager* GetDataManagerFromWebContents( | |
|
Mathieu
2017/01/12 21:27:10
nit: would call GetPersonalDataManager()
anthonyvd
2017/01/13 16:09:18
Done.
| |
| 22 content::WebContents* web_contents) override; | |
| 21 | 23 |
| 22 private: | 24 private: |
| 23 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate); | 25 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate); |
| 24 }; | 26 }; |
| 25 | 27 |
| 26 } // namespace payments | 28 } // namespace payments |
| 27 | 29 |
| 28 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ | 30 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ |
| OLD | NEW |