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(); |