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

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

Issue 1072933006: Support whitelisting to handle insecure origins as trustworthy origins (chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added more tests Created 5 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
« no previous file with comments | « content/common/origin_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/origin_util.h
diff --git a/content/public/common/origin_util.h b/content/public/common/origin_util.h
index c45977d97e8729cc43a9c3dbc9a414cff882756b..e3efd6b5213ec86a068fc54083edf95e24ac331a 100644
--- a/content/public/common/origin_util.h
+++ b/content/public/common/origin_util.h
@@ -18,6 +18,9 @@ namespace content {
// See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy.
bool CONTENT_EXPORT IsOriginSecure(const GURL& url);
+// Resets the internal schemes/origins whitelist. Used only for testing.
+void CONTENT_EXPORT ResetSecureSchemesAndOriginsForTesting();
+
} // namespace content
#endif // CONTENT_PUBLIC_COMMON_ORIGIN_UTIL_H_
« no previous file with comments | « content/common/origin_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698