| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_ | 5 #ifndef CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_ |
| 6 #define CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_ | 6 #define CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 |
| 10 #include "content/common/content_export.h" |
| 9 #include "third_party/WebKit/public/platform/WebContentSecurityPolicy.h" | 11 #include "third_party/WebKit/public/platform/WebContentSecurityPolicy.h" |
| 10 | 12 |
| 11 namespace content { | 13 namespace content { |
| 12 | 14 |
| 13 // Represents a single Content Security Policy header (i.e. coming from | 15 // Represents a single Content Security Policy header (i.e. coming from |
| 14 // a single Content-Security-Policy header in an HTTP response, or from | 16 // a single Content-Security-Policy header in an HTTP response, or from |
| 15 // a single <meta http-equiv="Content-Security-Policy"...> element). | 17 // a single <meta http-equiv="Content-Security-Policy"...> element). |
| 16 struct ContentSecurityPolicyHeader { | 18 struct CONTENT_EXPORT ContentSecurityPolicyHeader { |
| 19 ContentSecurityPolicyHeader(); |
| 20 ContentSecurityPolicyHeader(const std::string& header_value, |
| 21 blink::WebContentSecurityPolicyType type, |
| 22 blink::WebContentSecurityPolicySource source); |
| 23 |
| 17 std::string header_value; | 24 std::string header_value; |
| 18 blink::WebContentSecurityPolicyType type; | 25 blink::WebContentSecurityPolicyType type; |
| 19 blink::WebContentSecurityPolicySource source; | 26 blink::WebContentSecurityPolicySource source; |
| 20 }; | 27 }; |
| 21 | 28 |
| 22 } // namespace content | 29 } // namespace content |
| 23 | 30 |
| 24 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_ | 31 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_ |
| OLD | NEW |