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

Side by Side Diff: components/payments/payment_request_delegate.h

Issue 2673753005: [Payments] Basic validation in the credit card editor. (Closed)
Patch Set: more tests Created 3 years, 10 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_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 { 8 namespace autofill {
9 class PersonalDataManager; 9 class PersonalDataManager;
10 } 10 }
11 11
12 namespace payments { 12 namespace payments {
13 13
14 class PaymentRequest; 14 class PaymentRequest;
15 15
16 class PaymentRequestDelegate { 16 class PaymentRequestDelegate {
17 public: 17 public:
18 virtual ~PaymentRequestDelegate() {} 18 virtual ~PaymentRequestDelegate() {}
19 19
20 // Shows the Payment Request dialog for the given |request|. 20 // Shows the Payment Request dialog for the given |request|.
21 virtual void ShowDialog(PaymentRequest* request) = 0; 21 virtual void ShowDialog(PaymentRequest* request) = 0;
22 22
23 // Closes the same dialog that was opened by this delegate. Must be safe to 23 // Closes the same dialog that was opened by this delegate. Must be safe to
24 // call when the dialog is not showing. 24 // call when the dialog is not showing.
25 virtual void CloseDialog() = 0; 25 virtual void CloseDialog() = 0;
26 26
27 // Gets the PersonalDataManager associated with this PaymentRequest flow. 27 // Gets the PersonalDataManager associated with this PaymentRequest flow.
28 // Cannot be null.
28 virtual autofill::PersonalDataManager* GetPersonalDataManager() = 0; 29 virtual autofill::PersonalDataManager* GetPersonalDataManager() = 0;
29 }; 30 };
30 31
31 } // namespace payments 32 } // namespace payments
32 33
33 #endif // COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_ 34 #endif // COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698