| 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 COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_ | 5 #ifndef COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_ |
| 6 #define COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_ | 6 #define COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_ |
| 7 | 7 |
| 8 namespace autofill { |
| 9 class PersonalDataManager; |
| 10 } |
| 11 |
| 12 namespace content { |
| 13 class WebContents; |
| 14 } |
| 15 |
| 8 namespace payments { | 16 namespace payments { |
| 9 | 17 |
| 10 class PaymentRequest; | 18 class PaymentRequest; |
| 11 | 19 |
| 12 class PaymentRequestDelegate { | 20 class PaymentRequestDelegate { |
| 13 public: | 21 public: |
| 14 virtual ~PaymentRequestDelegate() {} | 22 virtual ~PaymentRequestDelegate() {} |
| 15 | 23 |
| 16 // Shows the Payment Request dialog for the given |request|. | 24 // Shows the Payment Request dialog for the given |request|. |
| 17 virtual void ShowPaymentRequestDialog(PaymentRequest* request) = 0; | 25 virtual void ShowPaymentRequestDialog(PaymentRequest* request) = 0; |
| 26 |
| 27 // Gets the PersonalDataManager associated with |web_contents|'s profile.' |
| 28 virtual autofill::PersonalDataManager* GetDataManagerFromWebContents( |
| 29 content::WebContents* web_contents) = 0; |
| 18 }; | 30 }; |
| 19 | 31 |
| 20 } // namespace payments | 32 } // namespace payments |
| 21 | 33 |
| 22 #endif // COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_ | 34 #endif // COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_ |
| OLD | NEW |