| Index: content/common/content_security_policy_structs.h
|
| diff --git a/content/common/content_security_policy_header.h b/content/common/content_security_policy_structs.h
|
| similarity index 50%
|
| rename from content/common/content_security_policy_header.h
|
| rename to content/common/content_security_policy_structs.h
|
| index 66d22e6c28c2f710c31878b0fc82e10f34f956a1..994cb38284b59350b4d44a9b21208e229cda1dca 100644
|
| --- a/content/common/content_security_policy_header.h
|
| +++ b/content/common/content_security_policy_structs.h
|
| @@ -2,11 +2,13 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_
|
| -#define CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_
|
| +#ifndef CONTENT_COMMON_CONTENT_SECURITY_POLICY_STRUCTS_
|
| +#define CONTENT_COMMON_CONTENT_SECURITY_POLICY_STRUCTS_
|
|
|
| #include <string>
|
| +#include <vector>
|
| #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h"
|
| +#include "url/gurl.h"
|
|
|
| namespace content {
|
|
|
| @@ -19,6 +21,21 @@ struct ContentSecurityPolicyHeader {
|
| blink::WebContentSecurityPolicySource source;
|
| };
|
|
|
| +// Represents a Content Security Policy violation.
|
| +struct ContentSecurityPolicyViolation {
|
| + ContentSecurityPolicyViolation();
|
| + ~ContentSecurityPolicyViolation();
|
| +
|
| + std::string directive_text;
|
| + std::string effective_directive;
|
| + std::string console_message;
|
| + GURL blocked_url;
|
| + std::vector<std::string> report_endpoints;
|
| + std::string header;
|
| + blink::WebContentSecurityPolicyViolationType violation_type;
|
| + bool followed_redirect;
|
| +};
|
| +
|
| } // namespace content
|
|
|
| -#endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_
|
| +#endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_STRUCTS_
|
|
|