Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_FACTORY_H_ |
| 6 #define CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_FACTORY_H_ | 6 #define CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_FACTORY_H_ |
| 7 | 7 |
| 8 #include "components/payments/mojom/payment_request.mojom.h" | 8 #include "components/payments/mojom/payment_request.mojom.h" |
| 9 #include "mojo/public/cpp/bindings/binding.h" | 9 #include "mojo/public/cpp/bindings/binding.h" |
| 10 #include "services/service_manager/public/cpp/bind_source_info.h" | 10 #include "services/service_manager/public/cpp/bind_source_info.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 class RenderFrameHost; | |
| 13 class WebContents; | 14 class WebContents; |
| 14 } | 15 } |
| 15 | 16 |
| 16 namespace payments { | 17 namespace payments { |
| 17 | 18 |
| 18 // Will create a PaymentRequest attached to |web_contents|, based on the | 19 // Will create a PaymentRequest attached to |render_frame_host| and the |
|
Mathieu
2017/05/08 15:28:11
can you modify your comment to explain to future r
please use gerrit instead
2017/05/08 17:28:47
Done, I think? Sorry, explaining complex concepts
| |
| 19 // contents of |request|. This is called everytime a new Mojo PaymentRequest is | 20 // associated |web_contents|, based on the contents of |request|. This is called |
| 20 // created. | 21 // everytime a new Mojo PaymentRequest is created. |
| 21 void CreatePaymentRequestForWebContents( | 22 void CreatePaymentRequest(content::RenderFrameHost* render_frame_host, |
| 22 content::WebContents* web_contents, | 23 content::WebContents* web_contents, |
| 23 const service_manager::BindSourceInfo& source_info, | 24 const service_manager::BindSourceInfo& source_info, |
| 24 payments::mojom::PaymentRequestRequest request); | 25 mojom::PaymentRequestRequest request); |
| 25 | 26 |
| 26 } // namespace payments | 27 } // namespace payments |
| 27 | 28 |
| 28 #endif // CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_FACTORY_H_ | 29 #endif // CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_FACTORY_H_ |
| OLD | NEW |