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

Side by Side Diff: components/payments/content/payment_request_dialog.h

Issue 2779283002: [Web Payments] Implement the CVC Unmask dialog. (Closed)
Patch Set: Rebase + add browser test Created 3 years, 8 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
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 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"
Mathieu 2017/04/04 19:05:47 do we need this (vs fwd declare) because of the we
anthonyvd 2017/04/05 02:12:37 Yeah we need this because the fwd declare would be
10
8 namespace payments { 11 namespace payments {
9 12
10 // Used to interact with a cross-platform Payment Request dialog. 13 // Used to interact with a cross-platform Payment Request dialog.
11 class PaymentRequestDialog { 14 class PaymentRequestDialog {
12 public: 15 public:
13 virtual ~PaymentRequestDialog() {} 16 virtual ~PaymentRequestDialog() {}
14 17
15 virtual void ShowDialog() = 0; 18 virtual void ShowDialog() = 0;
16 19
17 virtual void CloseDialog() = 0; 20 virtual void CloseDialog() = 0;
18 21
19 virtual void ShowErrorMessage() = 0; 22 virtual void ShowErrorMessage() = 0;
23
24 virtual void ShowCvcUnmaskPrompt(
Mathieu 2017/04/04 19:05:47 include comment about non trivial function
anthonyvd 2017/04/05 02:12:37 Done.
25 const autofill::CreditCard& credit_card,
26 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
27 result_delegate) = 0;
20 }; 28 };
21 29
22 } // namespace payments 30 } // namespace payments
23 31
24 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_DIALOG_H_ 32 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698