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

Unified Diff: Source/core/dom/DocumentInit.cpp

Issue 901903003: CSP: Adding the 'upgrade-insecure-requests' directive. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WebSockets + Tests. Created 5 years, 10 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 | « Source/core/dom/DocumentInit.h ('k') | Source/core/dom/SecurityContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentInit.cpp
diff --git a/Source/core/dom/DocumentInit.cpp b/Source/core/dom/DocumentInit.cpp
index c57120c6d3783ee5ffa2d66652c864cb4e523560..6d82f99e4dbc30bd5b0869e9d1b320bcee8dcbee 100644
--- a/Source/core/dom/DocumentInit.cpp
+++ b/Source/core/dom/DocumentInit.cpp
@@ -125,6 +125,12 @@ bool DocumentInit::shouldEnforceStrictMixedContentChecking() const
return frameForSecurityContext()->loader().shouldEnforceStrictMixedContentChecking();
}
+SecurityContext::InsecureContentPolicy DocumentInit::insecureContentPolicy() const
+{
+ ASSERT(frameForSecurityContext());
+ return frameForSecurityContext()->loader().insecureContentPolicy();
+}
+
bool DocumentInit::isHostedInReservedIPRange() const
{
if (LocalFrame* frame = frameForSecurityContext()) {
« no previous file with comments | « Source/core/dom/DocumentInit.h ('k') | Source/core/dom/SecurityContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698