| 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..f575a5676314ffe1943e68e0745f710e11ffd730 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 frame hosted by |render_frame_host|, which is
|
| +// 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
|
|
|
|
|