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

Side by Side Diff: chrome/browser/payments/payment_request_impl.h

Issue 2446093004: [Web Payments] Initial plumb of Payment Request dialog (Closed)
Patch Set: Remove mystery strings Created 4 years, 1 month 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
(Empty)
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
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"
Lei Zhang 2016/11/09 18:08:55 Forward declare? (Chromium style diverges from goo
Kevin Bailey 2016/11/15 14:36:32 It doesn't seem to provide any benefit in this lea
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);
20 ~PaymentRequestImpl() override;
21
22 // payments::mojom::PaymentRequest "stub"
23 void Init(blink::mojom::PaymentRequestClientPtr client,
24 std::vector<blink::mojom::PaymentMethodDataPtr> methodData,
25 blink::mojom::PaymentDetailsPtr details,
26 blink::mojom::PaymentOptionsPtr options) override;
27 void Show() override {}
Lei Zhang 2016/11/09 18:08:56 Not sure if the compiler will like the impl for vi
Kevin Bailey 2016/11/15 14:36:32 I haven't seen any complain.
28 void UpdateWith(blink::mojom::PaymentDetailsPtr details) override {}
29 void Abort() override {}
30 void Complete(blink::mojom::PaymentComplete result) override {}
31
32 private:
33 content::WebContents* web_contents_;
34 mojo::Binding<blink::mojom::PaymentRequest> binding_;
35 DISALLOW_COPY_AND_ASSIGN(PaymentRequestImpl);
36 };
37
38 void CreatePaymentRequestHandler(
39 content::RenderFrameHost* render_frame_host,
40 content::WebContents* web_contents,
41 mojo::InterfaceRequest<blink::mojom::PaymentRequest> request);
42
43 #endif // CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698