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

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

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/content/origin_security_checker.h
diff --git a/components/payments/content/origin_security_checker.h b/components/payments/content/origin_security_checker.h
index b7a640f87a6a502d86286121409a468358afdddb..818188d321c66da8011b00482bb9a2c06f69238c 100644
--- a/components/payments/content/origin_security_checker.h
+++ b/components/payments/content/origin_security_checker.h
@@ -20,6 +20,9 @@ class OriginSecurityChecker {
// HTTPS-SO, WSS.
static bool IsSchemeCryptographic(const GURL& url);
+ // Returns true for a valid |url| with localhost or file:// scheme origin.
+ static bool IsOriginLocalhostOrFile(const GURL& url);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(OriginSecurityChecker);
};

Powered by Google App Engine
This is Rietveld 408576698