| 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 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" | 9 #include "third_party/WebKit/public/platform/WebContentSecurityPolicy.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 // Represents a single Content Security Policy header (i.e. coming from | 13 // Represents a single Content Security Policy header (i.e. coming from |
| 14 // a single Content-Security-Policy header in an HTTP response, or from | 14 // a single Content-Security-Policy header in an HTTP response, or from |
| 15 // a single <meta http-equiv="Content-Security-Policy"...> element). | 15 // a single <meta http-equiv="Content-Security-Policy"...> element). |
| 16 struct ContentSecurityPolicyHeader { | 16 struct ContentSecurityPolicyHeader { |
| 17 std::string header_value; | 17 std::string header_value; |
| 18 blink::WebContentSecurityPolicyType type; | 18 blink::WebContentSecurityPolicyType type; |
| 19 blink::WebContentSecurityPolicySource source; | 19 blink::WebContentSecurityPolicySource source; |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 } // namespace content | 22 } // namespace content |
| 23 | 23 |
| 24 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_ | 24 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_ |
| OLD | NEW |