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

Unified Diff: components/payments/content/payment_request.h

Issue 2866623003: PaymentRequest.canMakePayment() query quota on desktop. (Closed)
Patch Set: 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
Index: components/payments/content/payment_request.h
diff --git a/components/payments/content/payment_request.h b/components/payments/content/payment_request.h
index c831cb916e8f89f96dfae69fddd7527ca1e4966f..bba191a3e1f2b1e16e3489b2f96165e22784a257 100644
--- a/components/payments/content/payment_request.h
+++ b/components/payments/content/payment_request.h
@@ -16,8 +16,10 @@
#include "components/payments/mojom/payment_request.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "mojo/public/cpp/bindings/interface_request.h"
+#include "url/gurl.h"
namespace content {
+class RenderFrameHost;
class WebContents;
}
@@ -44,7 +46,8 @@ class PaymentRequest : public mojom::PaymentRequest,
virtual ~ObserverForTest() {}
};
- PaymentRequest(content::WebContents* web_contents,
+ PaymentRequest(content::RenderFrameHost* render_frame_host,
+ content::WebContents* web_contents,
std::unique_ptr<PaymentRequestDelegate> delegate,
PaymentRequestWebContentsManager* manager,
mojo::InterfaceRequest<mojom::PaymentRequest> request,
@@ -99,6 +102,7 @@ class PaymentRequest : public mojom::PaymentRequest,
std::unique_ptr<PaymentRequestSpec> spec_;
std::unique_ptr<PaymentRequestState> state_;
+ const GURL iframe_origin_;
Mathieu 2017/05/08 15:28:11 couldn't it be main frame too? Should we change th
please use gerrit instead 2017/05/08 17:28:47 Done.
// May be null, must outlive this object.
ObserverForTest* observer_for_testing_;

Powered by Google App Engine
This is Rietveld 408576698