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

Unified Diff: content/common/content_security_policy/content_security_policy.h

Issue 2761153003: PlzNavigate & CSP. Use the SourceLocation in violation reports. (Closed)
Patch Set: Addressed comment @alexmos Created 3 years, 9 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: content/common/content_security_policy/content_security_policy.h
diff --git a/content/common/content_security_policy/content_security_policy.h b/content/common/content_security_policy/content_security_policy.h
index 7d7b111b9f0e494f6bed1e8e3593396ef90f0f4e..d4de523703304c59763048721bc976b0d46352fc 100644
--- a/content/common/content_security_policy/content_security_policy.h
+++ b/content/common/content_security_policy/content_security_policy.h
@@ -16,6 +16,7 @@
namespace content {
class CSPContext;
+struct SourceLocation;
// https://www.w3.org/TR/CSP3/#framework-policy
//
@@ -41,8 +42,9 @@ struct CONTENT_EXPORT ContentSecurityPolicy {
static bool Allow(const ContentSecurityPolicy& policy,
CSPDirective::Name directive,
const GURL& url,
+ bool is_redirect,
CSPContext* context,
- bool is_redirect = false);
+ const SourceLocation& source_location);
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698