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

Unified Diff: content/public/common/origin_util.h

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: Address jam@ comments; many minor code and comment updates. Created 3 years, 11 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: content/public/common/origin_util.h
diff --git a/content/public/common/origin_util.h b/content/public/common/origin_util.h
index bb050c94327f26842ecbc7e0c274a8d4152346bd..e7c0f25c433779b18e03ce945fc9b9690ba53fb5 100644
--- a/content/public/common/origin_util.h
+++ b/content/public/common/origin_util.h
@@ -22,6 +22,12 @@ bool CONTENT_EXPORT IsOriginSecure(const GURL& url);
// http (localhost only), https, or a custom-set secure scheme.
bool CONTENT_EXPORT OriginCanAccessServiceWorkers(const GURL& url);
+// Returns true if the origin of the URL was white listed as trustworthy by the
+// client. This behaves similarly to
+// SecurityPolicy::isOriginWhiteListedTrustworthy but without the uniqueness
+// check.
+bool CONTENT_EXPORT IsOriginWhiteListedTrustworthy(const GURL& url);
+
// Resets the internal schemes/origins whitelist. Used only for testing.
void CONTENT_EXPORT ResetSchemesAndOriginsWhitelistForTesting();

Powered by Google App Engine
This is Rietveld 408576698