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

Unified Diff: chrome/browser/payments/payment_request_factory.h

Issue 2866623003: PaymentRequest.canMakePayment() query quota on desktop. (Closed)
Patch Set: frame Created 3 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/payments/payment_request_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/payments/payment_request_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698