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

Unified Diff: components/payments/mojom/payment_request.mojom

Issue 2836443002: No rate limit for canMakePayment() on localhost and file://. (Closed)
Patch Set: Comments Created 3 years, 8 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/mojom/payment_request.mojom
diff --git a/components/payments/mojom/payment_request.mojom b/components/payments/mojom/payment_request.mojom
index 600838286adf210199a922a77ae0151e83c2dcf3..99dfa91ba9c86b8b4a0ae8818f5124dd63251f31 100644
--- a/components/payments/mojom/payment_request.mojom
+++ b/components/payments/mojom/payment_request.mojom
@@ -80,7 +80,12 @@ enum PaymentErrorReason {
enum CanMakePaymentQueryResult {
CAN_MAKE_PAYMENT,
CANNOT_MAKE_PAYMENT,
- QUERY_QUOTA_EXCEEDED
+ QUERY_QUOTA_EXCEEDED,
+
+ // Used only on localhost and file:// schemes to warn web developer that the
+ // query quota has exceeded, but Chrome is returning an answer anyway.
+ WARNING_CAN_MAKE_PAYMENT,
+ WARNING_CANNOT_MAKE_PAYMENT,
};
interface PaymentRequestClient {
« no previous file with comments | « components/payments/content/origin_security_checker.cc ('k') | third_party/WebKit/Source/modules/payments/PaymentRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698