Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h

Issue 2002003002: Generate CSP violation reports for 'block-all-mixed-content' (Closed) Base URL:
Patch Set: Created 4 years, 7 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: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
index c9b091b10652602be32af0409230dd9f45a46b5f..39ed351acd26e22eacc8335f3b21f6c3d8e80e33 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -245,6 +245,10 @@ public:
// on the floor if no such context is available).
void reportViolation(const String& directiveText, const String& effectiveDirective, const String& consoleMessage, const KURL& blockedURL, const Vector<String>& reportEndpoints, const String& header, ViolationType, LocalFrame* = nullptr);
+ // Called when mixed content is detected on a page; will trigger a violation report if
+ // the 'block-all-mixed-content' directive is specified for a policy.
+ void reportMixedContent(const KURL& mixedURL);
void reportBlockedScriptExecutionToInspector(const String& directiveText) const;
const KURL url() const;

Powered by Google App Engine
This is Rietveld 408576698