Chromium Code Reviews| Index: chrome/browser/payments/payment_request_impl.h |
| diff --git a/chrome/browser/payments/payment_request_impl.h b/chrome/browser/payments/payment_request_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5a272fae0b3a720ebfbc71474f479b11f1c9415d |
| --- /dev/null |
| +++ b/chrome/browser/payments/payment_request_impl.h |
| @@ -0,0 +1,42 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_IMPL_H_ |
| +#define CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_IMPL_H_ |
| + |
| +#include "components/payments/payment_request.mojom.h" |
| + |
| +#include "content/public/browser/render_frame_host.h" |
| +#include "content/public/browser/web_contents.h" |
| +#include "mojo/public/cpp/bindings/binding.h" |
| + |
| +class PaymentRequestImpl : blink::mojom::PaymentRequest { |
| + public: |
| + PaymentRequestImpl( |
| + content::RenderFrameHost* render_frame_host, |
| + content::WebContents* web_contents, |
| + 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.
|
| + void Init(blink::mojom::PaymentRequestClientPtr client, |
| + std::vector<blink::mojom::PaymentMethodDataPtr> methodData, |
| + blink::mojom::PaymentDetailsPtr details, |
| + blink::mojom::PaymentOptionsPtr options) override; |
| + void Show() override {} |
| + void UpdateWith(blink::mojom::PaymentDetailsPtr details) override {} |
| + void Abort() override {} |
| + void Complete(blink::mojom::PaymentComplete result) override {} |
| + |
| + ~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.
|
| + |
| + private: |
| +// 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.
|
| + 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
|
| + 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.
|
| +}; |
| + |
| +void CreatePaymentRequestHandler( |
| + content::RenderFrameHost* render_frame_host, |
| + content::WebContents* web_contents, |
| + mojo::InterfaceRequest<blink::mojom::PaymentRequest> request); |
| + |
| +#endif // CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_IMPL_H_ |