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

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: Now using shared scheme collections from url_util.h. 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 c24361b4feaf376566efe40ea4000e505355b1e4..9f121431875f0fcda25cfe7d38edebd1a3dc6055 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);
+
} // namespace content
#endif // CONTENT_PUBLIC_COMMON_ORIGIN_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698