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

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

Issue 2779283002: [Web Payments] Implement the CVC Unmask dialog. (Closed)
Patch Set: Fix components_unittests 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_H_ 5 #ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_
6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void CanMakePayment() override; 61 void CanMakePayment() override;
62 62
63 // PaymentRequestSpec::Observer: 63 // PaymentRequestSpec::Observer:
64 void OnSpecUpdated() override {} 64 void OnSpecUpdated() override {}
65 void OnInvalidSpecProvided() override; 65 void OnInvalidSpecProvided() override;
66 66
67 // PaymentRequestState::Delegate: 67 // PaymentRequestState::Delegate:
68 void OnPaymentResponseAvailable(mojom::PaymentResponsePtr response) override; 68 void OnPaymentResponseAvailable(mojom::PaymentResponsePtr response) override;
69 void OnShippingOptionIdSelected(std::string shipping_option_id) override; 69 void OnShippingOptionIdSelected(std::string shipping_option_id) override;
70 void OnShippingAddressSelected(mojom::PaymentAddressPtr address) override; 70 void OnShippingAddressSelected(mojom::PaymentAddressPtr address) override;
71 PaymentRequestDelegate* GetPaymentRequestDelegate() override;
Mathieu 2017/04/04 19:05:48 as mentioned let's try to get rid of all the GetPa
anthonyvd 2017/04/04 23:02:14 Done.
71 72
72 // Called when the user explicitely cancelled the flow. Will send a message 73 // Called when the user explicitely cancelled the flow. Will send a message
73 // to the renderer which will indirectly destroy this object (through 74 // to the renderer which will indirectly destroy this object (through
74 // OnConnectionTerminated). 75 // OnConnectionTerminated).
75 void UserCancelled(); 76 void UserCancelled();
76 77
77 // As a result of a browser-side error or renderer-initiated mojo channel 78 // As a result of a browser-side error or renderer-initiated mojo channel
78 // closure (e.g. there was an error on the renderer side, or payment was 79 // closure (e.g. there was an error on the renderer side, or payment was
79 // successful), this method is called. It is responsible for cleaning up, 80 // successful), this method is called. It is responsible for cleaning up,
80 // such as possibly closing the dialog. 81 // such as possibly closing the dialog.
(...skipping 20 matching lines...) Expand all
101 102
102 // May be null, must outlive this object. 103 // May be null, must outlive this object.
103 ObserverForTest* observer_for_testing_; 104 ObserverForTest* observer_for_testing_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(PaymentRequest); 106 DISALLOW_COPY_AND_ASSIGN(PaymentRequest);
106 }; 107 };
107 108
108 } // namespace payments 109 } // namespace payments
109 110
110 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ 111 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698