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

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

Issue 2761153003: PlzNavigate & CSP. Use the SourceLocation in violation reports. (Closed)
Patch Set: Nit. 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 56454ed27b65104e3a7b7516b3e50699e54629af..1e558e834a41f4a38b4f45ffd6db5d7ef34ac3a4 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
//
@@ -45,8 +46,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