Chromium Code Reviews| Index: chrome/browser/payments/payment_request_factory.h |
| diff --git a/chrome/browser/payments/payment_request_factory.h b/chrome/browser/payments/payment_request_factory.h |
| index 8188568e3a040bc2b98cb8543f79fcd4659d5bae..bd0077c34502c900783d5a7ae0961e805ad385bf 100644 |
| --- a/chrome/browser/payments/payment_request_factory.h |
| +++ b/chrome/browser/payments/payment_request_factory.h |
| @@ -6,22 +6,23 @@ |
| #define CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_FACTORY_H_ |
| #include "components/payments/mojom/payment_request.mojom.h" |
| -#include "mojo/public/cpp/bindings/binding.h" |
| #include "services/service_manager/public/cpp/bind_source_info.h" |
| namespace content { |
| +class RenderFrameHost; |
| class WebContents; |
| } |
| namespace payments { |
| -// Will create a PaymentRequest attached to |web_contents|, based on the |
| -// contents of |request|. This is called everytime a new Mojo PaymentRequest is |
| -// created. |
| -void CreatePaymentRequestForWebContents( |
| - content::WebContents* web_contents, |
| - const service_manager::BindSourceInfo& source_info, |
| - payments::mojom::PaymentRequestRequest request); |
| +// Will create a PaymentRequest based on the contents of |request|. The |
| +// |request| was initiated by the iframe hosted by |render_frame_host|, which is |
|
Mathieu
2017/05/08 18:03:51
*frame?
please use gerrit instead
2017/05/08 18:05:56
Done.
|
| +// inside of |web_contents|. This function is called every time a new instance |
| +// of PaymentRequest is created in the renderer. |
| +void CreatePaymentRequest(content::RenderFrameHost* render_frame_host, |
| + content::WebContents* web_contents, |
| + const service_manager::BindSourceInfo& source_info, |
| + mojom::PaymentRequestRequest request); |
| } // namespace payments |