CSP: Include mojo CSP header type in blink::CSPDirectiveList
This is a small refactoring of the code in blink::CSPDirectiveList. Instead of storing in this class the header information as a String, a network::mojom::blink::ContentSecurityPolicyType and a network::mojom::blink::ContentSecurityPolicySource, we store directly the mojo type network::mojom::blink::ContentSecurityPolicyHeader, which encompasses the three of them. This is part of a project to harmonize the CSP code in Blink and in services/network, and will make it easier to synchronize Content Security Policies between the two. Bug: 1021462,1149272 Change-Id: I223dc4d204bc66a1b671248ae4ae7a24af483327 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2572918 Commit-Queue: Antonio Sartori <antoniosartori@chromium.org> Reviewed-by:Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/master@{#839099}
Showing
Please register or sign in to comment