| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/frame/csp/CSPDirectiveList.h" | 6 #include "core/frame/csp/CSPDirectiveList.h" |
| 7 | 7 |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/frame/LocalFrame.h" | 9 #include "core/frame/LocalFrame.h" |
| 10 #include "core/inspector/ConsoleMessage.h" | 10 #include "core/inspector/ConsoleMessage.h" |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 setCSPDirective<SourceListDirective>(name, value, m_formAction); | 718 setCSPDirective<SourceListDirective>(name, value, m_formAction); |
| 719 } else if (equalIgnoringCase(name, ContentSecurityPolicy::PluginTypes)) { | 719 } else if (equalIgnoringCase(name, ContentSecurityPolicy::PluginTypes)) { |
| 720 setCSPDirective<MediaListDirective>(name, value, m_pluginTypes); | 720 setCSPDirective<MediaListDirective>(name, value, m_pluginTypes); |
| 721 } else if (equalIgnoringCase(name, ContentSecurityPolicy::ReflectedXSS)) { | 721 } else if (equalIgnoringCase(name, ContentSecurityPolicy::ReflectedXSS)) { |
| 722 parseReflectedXSS(name, value); | 722 parseReflectedXSS(name, value); |
| 723 } else if (equalIgnoringCase(name, ContentSecurityPolicy::Referrer)) { | 723 } else if (equalIgnoringCase(name, ContentSecurityPolicy::Referrer)) { |
| 724 parseReferrer(name, value); | 724 parseReferrer(name, value); |
| 725 } else if (m_policy->experimentalFeaturesEnabled()) { | 725 } else if (m_policy->experimentalFeaturesEnabled()) { |
| 726 if (equalIgnoringCase(name, ContentSecurityPolicy::ManifestSrc)) | 726 if (equalIgnoringCase(name, ContentSecurityPolicy::ManifestSrc)) |
| 727 setCSPDirective<SourceListDirective>(name, value, m_manifestSrc); | 727 setCSPDirective<SourceListDirective>(name, value, m_manifestSrc); |
| 728 else if (equalIgnoringCase(name, ContentSecurityPolicy::StrictMixedConte
ntChecking)) | 728 else if (equalIgnoringCase(name, ContentSecurityPolicy::BlockAllMixedCon
tent)) |
| 729 enforceStrictMixedContentChecking(name, value); | 729 enforceStrictMixedContentChecking(name, value); |
| 730 else | 730 else |
| 731 m_policy->reportUnsupportedDirective(name); | 731 m_policy->reportUnsupportedDirective(name); |
| 732 } else { | 732 } else { |
| 733 m_policy->reportUnsupportedDirective(name); | 733 m_policy->reportUnsupportedDirective(name); |
| 734 } | 734 } |
| 735 } | 735 } |
| 736 | 736 |
| 737 | 737 |
| 738 } // namespace blink | 738 } // namespace blink |
| OLD | NEW |