| Index: content/common/content_security_policy/csp_context.cc
|
| diff --git a/content/common/content_security_policy/csp_context.cc b/content/common/content_security_policy/csp_context.cc
|
| index 613f17847ca16caf9323451ba2c6a341c5cd1709..d3f7258a67ef3e08ee663d3e425ff3721946bc22 100644
|
| --- a/content/common/content_security_policy/csp_context.cc
|
| +++ b/content/common/content_security_policy/csp_context.cc
|
| @@ -76,15 +76,31 @@ bool CSPContext::IsSelfBypassed() {
|
| return SchemeShouldBypass(self_scheme_);
|
| }
|
|
|
| -void CSPContext::ReportViolation(
|
| - const std::string& directive_text,
|
| +void CSPContext::ReportViolation(const CSPViolationParams& violation_params) {
|
| + return;
|
| +}
|
| +
|
| +CSPViolationParams::CSPViolationParams() = default;
|
| +
|
| +CSPViolationParams::CSPViolationParams(
|
| + const std::string& directive,
|
| const std::string& effective_directive,
|
| - const std::string& message,
|
| + const std::string& console_message,
|
| const GURL& blocked_url,
|
| - const std::vector<std::string>& report_end_points,
|
| + const std::vector<std::string>& report_endpoints,
|
| const std::string& header,
|
| - blink::WebContentSecurityPolicyType disposition) {
|
| - return;
|
| -}
|
| + const blink::WebContentSecurityPolicyType& disposition)
|
| + : directive(directive),
|
| + effective_directive(effective_directive),
|
| + console_message(console_message),
|
| + blocked_url(blocked_url),
|
| + report_endpoints(report_endpoints),
|
| + header(header),
|
| + disposition(disposition) {}
|
| +
|
| +CSPViolationParams::CSPViolationParams(const CSPViolationParams& other) =
|
| + default;
|
| +
|
| +CSPViolationParams::~CSPViolationParams() {}
|
|
|
| } // namespace content
|
|
|