| 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 |
| 8 namespace payments { | 12 namespace payments { |
| 9 | 13 |
| 10 class PaymentRequest; | 14 class PaymentRequest; |
| 11 | 15 |
| 12 class PaymentRequestDelegate { | 16 class PaymentRequestDelegate { |
| 13 public: | 17 public: |
| 14 virtual ~PaymentRequestDelegate() {} | 18 virtual ~PaymentRequestDelegate() {} |
| 15 | 19 |
| 16 // Shows the Payment Request dialog for the given |request|. | 20 // Shows the Payment Request dialog for the given |request|. |
| 17 virtual void ShowPaymentRequestDialog(PaymentRequest* request) = 0; | 21 virtual void ShowPaymentRequestDialog(PaymentRequest* request) = 0; |
| 22 |
| 23 // Gets the PersonalDataManager associated with this PaymentRequest flow. |
| 24 virtual autofill::PersonalDataManager* GetPersonalDataManager() = 0; |
| 18 }; | 25 }; |
| 19 | 26 |
| 20 } // namespace payments | 27 } // namespace payments |
| 21 | 28 |
| 22 #endif // COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_ | 29 #endif // COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_ |
| OLD | NEW |