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

Unified Diff: Source/core/frame/csp/CSPDirectiveList.h

Issue 901903003: CSP: Adding the 'upgrade-insecure-requests' directive. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: Source/core/frame/csp/CSPDirectiveList.h
diff --git a/Source/core/frame/csp/CSPDirectiveList.h b/Source/core/frame/csp/CSPDirectiveList.h
index 7efb22e7d9d8f5af53a1471efa614b5f0a3573dc..bf6a1c2efc1e50e878ac258679646ae2f793f812 100644
--- a/Source/core/frame/csp/CSPDirectiveList.h
+++ b/Source/core/frame/csp/CSPDirectiveList.h
@@ -75,6 +75,7 @@ private:
void addDirective(const String& name, const String& value);
void applySandboxPolicy(const String& name, const String& sandboxPolicy);
void enforceStrictMixedContentChecking(const String& name, const String& value);
+ void enableInsecureContentUpgrade(const String& name, const String& value);
template <class CSPDirectiveType>
void setCSPDirective(const String& name, const String& value, OwnPtr<CSPDirectiveType>&);
@@ -120,6 +121,8 @@ private:
bool m_strictMixedContentCheckingEnforced;
+ bool m_upgradeInsecureContent;
+
OwnPtr<MediaListDirective> m_pluginTypes;
OwnPtr<SourceListDirective> m_baseURI;
OwnPtr<SourceListDirective> m_childSrc;

Powered by Google App Engine
This is Rietveld 408576698