Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
|
please use gerrit instead
2016/11/04 21:58:13
"(c)" is no longer recommended in license header.
Kevin Bailey
2016/11/09 16:25:21
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_IMPL_H_ | |
| 6 #define CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_IMPL_H_ | |
| 7 | |
| 8 #include "components/payments/payment_request.mojom.h" | |
| 9 | |
| 10 #include "content/public/browser/render_frame_host.h" | |
| 11 #include "content/public/browser/web_contents.h" | |
| 12 #include "mojo/public/cpp/bindings/binding.h" | |
| 13 | |
| 14 class PaymentRequestImpl : blink::mojom::PaymentRequest { | |
| 15 public: | |
| 16 PaymentRequestImpl( | |
| 17 content::RenderFrameHost* render_frame_host, | |
| 18 content::WebContents* web_contents, | |
| 19 mojo::InterfaceRequest<blink::mojom::PaymentRequest> request); | |
|
please use gerrit instead
2016/11/04 21:58:13
// blink::mojom::PaymentRequest implementation:
(
Kevin Bailey
2016/11/09 16:25:21
Done.
| |
| 20 void Init(blink::mojom::PaymentRequestClientPtr client, | |
| 21 std::vector<blink::mojom::PaymentMethodDataPtr> methodData, | |
| 22 blink::mojom::PaymentDetailsPtr details, | |
| 23 blink::mojom::PaymentOptionsPtr options) override; | |
| 24 void Show() override {} | |
| 25 void UpdateWith(blink::mojom::PaymentDetailsPtr details) override {} | |
| 26 void Abort() override {} | |
| 27 void Complete(blink::mojom::PaymentComplete result) override {} | |
| 28 | |
| 29 ~PaymentRequestImpl() override; | |
|
please use gerrit instead
2016/11/04 21:58:13
Style nit: The destructor should follow the constr
Kevin Bailey
2016/11/09 16:25:21
Done.
| |
| 30 | |
| 31 private: | |
| 32 // content::RenderFrameHost* render_frame_host_; | |
|
please use gerrit instead
2016/11/04 21:58:14
Remove?
Kevin Bailey
2016/11/09 16:25:21
Done.
| |
| 33 content::WebContents* web_contents_; | |
|
please use gerrit instead
2016/11/04 21:58:13
Do you happen to know the ownership relationship o
Kevin Bailey
2016/11/09 16:25:21
I was going to deal with ownership later, thus the
| |
| 34 mojo::Binding<blink::mojom::PaymentRequest> binding_; | |
|
please use gerrit instead
2016/11/04 21:58:13
DISALLOW_COPY_AND_ASSIGN(PaymentRequestImpl);
(Al
Kevin Bailey
2016/11/09 16:25:20
Done.
| |
| 35 }; | |
| 36 | |
| 37 void CreatePaymentRequestHandler( | |
| 38 content::RenderFrameHost* render_frame_host, | |
| 39 content::WebContents* web_contents, | |
| 40 mojo::InterfaceRequest<blink::mojom::PaymentRequest> request); | |
| 41 | |
| 42 #endif // CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_IMPL_H_ | |
| OLD | NEW |