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

Unified Diff: components/payments/content/payment_request.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
Index: components/payments/content/payment_request.h
diff --git a/components/payments/content/payment_request.h b/components/payments/content/payment_request.h
index 2514a8b89a56456a2f40f24d84ac7e1328cef133..4613add27328af0b17270804ab8cdfe4fca24a78 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;
}
@@ -45,7 +47,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,
@@ -101,6 +104,10 @@ class PaymentRequest : public mojom::PaymentRequest,
std::unique_ptr<PaymentRequestSpec> spec_;
std::unique_ptr<PaymentRequestState> state_;
+ // The RFC 6454 origin of the frame that has invoked PaymentRequest API. This
+ // can be either the main frame or an iframe.
+ const GURL frame_origin_;
+
// May be null, must outlive this object.
ObserverForTest* observer_for_testing_;
« no previous file with comments | « components/payments/content/can_make_payment_query_factory.cc ('k') | components/payments/content/payment_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698