| 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_CONTENT_PAYMENT_REQUEST_DIALOG_H_ | 5 #ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_DIALOG_H_ |
| 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_DIALOG_H_ | 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_DIALOG_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" |
| 9 #include "components/autofill/core/browser/payments/full_card_request.h" |
| 10 |
| 11 namespace content { |
| 12 class WebContents; |
| 13 } |
| 14 |
| 8 namespace payments { | 15 namespace payments { |
| 9 | 16 |
| 10 // Used to interact with a cross-platform Payment Request dialog. | 17 // Used to interact with a cross-platform Payment Request dialog. |
| 11 class PaymentRequestDialog { | 18 class PaymentRequestDialog { |
| 12 public: | 19 public: |
| 13 virtual ~PaymentRequestDialog() {} | 20 virtual ~PaymentRequestDialog() {} |
| 14 | 21 |
| 15 virtual void ShowDialog() = 0; | 22 virtual void ShowDialog() = 0; |
| 16 | 23 |
| 17 virtual void CloseDialog() = 0; | 24 virtual void CloseDialog() = 0; |
| 18 | 25 |
| 19 virtual void ShowErrorMessage() = 0; | 26 virtual void ShowErrorMessage() = 0; |
| 27 |
| 28 // Shows the CVC unmask sheet and starts a FullCardRequest with the info |
| 29 // entered by the user. |
| 30 virtual void ShowCvcUnmaskPrompt( |
| 31 const autofill::CreditCard& credit_card, |
| 32 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> |
| 33 result_delegate, |
| 34 content::WebContents* web_contents) = 0; |
| 20 }; | 35 }; |
| 21 | 36 |
| 22 } // namespace payments | 37 } // namespace payments |
| 23 | 38 |
| 24 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_DIALOG_H_ | 39 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_DIALOG_H_ |
| OLD | NEW |