| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google, Inc. All rights reserved. | 2 * Copyright (C) 2011 Google, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 static const char PluginTypes[]; | 83 static const char PluginTypes[]; |
| 84 static const char ReflectedXSS[]; | 84 static const char ReflectedXSS[]; |
| 85 static const char Referrer[]; | 85 static const char Referrer[]; |
| 86 | 86 |
| 87 // Manifest Directives (to be merged into CSP Level 2) | 87 // Manifest Directives (to be merged into CSP Level 2) |
| 88 // https://w3c.github.io/manifest/#content-security-policy | 88 // https://w3c.github.io/manifest/#content-security-policy |
| 89 static const char ManifestSrc[]; | 89 static const char ManifestSrc[]; |
| 90 | 90 |
| 91 // Mixed Content Directive | 91 // Mixed Content Directive |
| 92 // https://w3c.github.io/webappsec/specs/mixedcontent/#strict-mode | 92 // https://w3c.github.io/webappsec/specs/mixedcontent/#strict-mode |
| 93 static const char StrictMixedContentChecking[]; | 93 static const char BlockAllMixedContent[]; |
| 94 | 94 |
| 95 enum ReportingStatus { | 95 enum ReportingStatus { |
| 96 SendReport, | 96 SendReport, |
| 97 SuppressReport | 97 SuppressReport |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 static PassRefPtr<ContentSecurityPolicy> create() | 100 static PassRefPtr<ContentSecurityPolicy> create() |
| 101 { | 101 { |
| 102 return adoptRef(new ContentSecurityPolicy()); | 102 return adoptRef(new ContentSecurityPolicy()); |
| 103 } | 103 } |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 ReferrerPolicy m_referrerPolicy; | 236 ReferrerPolicy m_referrerPolicy; |
| 237 String m_disableEvalErrorMessage; | 237 String m_disableEvalErrorMessage; |
| 238 | 238 |
| 239 OwnPtr<CSPSource> m_selfSource; | 239 OwnPtr<CSPSource> m_selfSource; |
| 240 String m_selfProtocol; | 240 String m_selfProtocol; |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 } | 243 } |
| 244 | 244 |
| 245 #endif | 245 #endif |
| OLD | NEW |