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 #ifndef CSPDirectiveList_h | 5 #ifndef CSPDirectiveList_h |
6 #define CSPDirectiveList_h | 6 #define CSPDirectiveList_h |
7 | 7 |
8 #include "core/fetch/Resource.h" | 8 #include "core/fetch/Resource.h" |
9 #include "core/frame/csp/ContentSecurityPolicy.h" | 9 #include "core/frame/csp/ContentSecurityPolicy.h" |
10 #include "core/frame/csp/MediaListDirective.h" | 10 #include "core/frame/csp/MediaListDirective.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 Element*) const; | 216 Element*) const; |
217 void reportViolationWithState( | 217 void reportViolationWithState( |
218 const String& directiveText, | 218 const String& directiveText, |
219 const ContentSecurityPolicy::DirectiveType&, | 219 const ContentSecurityPolicy::DirectiveType&, |
220 const String& message, | 220 const String& message, |
221 const KURL& blockedURL, | 221 const KURL& blockedURL, |
222 ScriptState*, | 222 ScriptState*, |
223 const ContentSecurityPolicy::ExceptionStatus) const; | 223 const ContentSecurityPolicy::ExceptionStatus) const; |
224 | 224 |
225 bool checkEval(SourceListDirective*) const; | 225 bool checkEval(SourceListDirective*) const; |
226 bool checkInline(SourceListDirective*) const; | |
227 bool checkDynamic(SourceListDirective*) const; | 226 bool checkDynamic(SourceListDirective*) const; |
228 bool isMatchingNoncePresent(SourceListDirective*, const String&) const; | 227 bool isMatchingNoncePresent(SourceListDirective*, const String&) const; |
229 bool checkHash(SourceListDirective*, const CSPHashValue&) const; | 228 bool checkHash(SourceListDirective*, const CSPHashValue&) const; |
230 bool checkHashedAttributes(SourceListDirective*) const; | 229 bool checkHashedAttributes(SourceListDirective*) const; |
231 bool checkSource(SourceListDirective*, | 230 bool checkSource(SourceListDirective*, |
232 const KURL&, | 231 const KURL&, |
233 ResourceRequest::RedirectStatus) const; | 232 ResourceRequest::RedirectStatus) const; |
234 bool checkMediaType(MediaListDirective*, | 233 bool checkMediaType(MediaListDirective*, |
235 const String& type, | 234 const String& type, |
236 const String& typeAttribute) const; | 235 const String& typeAttribute) const; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 uint8_t m_requireSRIFor; | 317 uint8_t m_requireSRIFor; |
319 | 318 |
320 Vector<String> m_reportEndpoints; | 319 Vector<String> m_reportEndpoints; |
321 | 320 |
322 String m_evalDisabledErrorMessage; | 321 String m_evalDisabledErrorMessage; |
323 }; | 322 }; |
324 | 323 |
325 } // namespace blink | 324 } // namespace blink |
326 | 325 |
327 #endif | 326 #endif |
OLD | NEW |