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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 bool checkAncestorsAndReportViolation(SourceListDirective*, | 266 bool checkAncestorsAndReportViolation(SourceListDirective*, |
267 LocalFrame*, | 267 LocalFrame*, |
268 const KURL&) const; | 268 const KURL&) const; |
269 bool checkRequestWithoutIntegrityAndReportViolation( | 269 bool checkRequestWithoutIntegrityAndReportViolation( |
270 WebURLRequest::RequestContext, | 270 WebURLRequest::RequestContext, |
271 const KURL&, | 271 const KURL&, |
272 ResourceRequest::RedirectStatus) const; | 272 ResourceRequest::RedirectStatus) const; |
273 | 273 |
274 bool denyIfEnforcingPolicy() const { return isReportOnly(); } | 274 bool denyIfEnforcingPolicy() const { return isReportOnly(); } |
275 | 275 |
276 // Tthis function returns a SourceListDirective of a given type | 276 // This function returns a SourceListDirective of a given type |
277 // or if it is not defined, the default SourceListDirective for that type. | 277 // or if it is not defined, the default SourceListDirective for that type. |
278 SourceListDirective* operativeDirective( | 278 SourceListDirective* operativeDirective( |
279 const ContentSecurityPolicy::DirectiveType&); | 279 const ContentSecurityPolicy::DirectiveType&) const; |
280 | 280 |
281 // This function aggregates from a vector of policies all operative | 281 // This function aggregates from a vector of policies all operative |
282 // SourceListDirectives of a given type into a vector. | 282 // SourceListDirectives of a given type into a vector. |
283 static SourceListDirectiveVector getSourceVector( | 283 static SourceListDirectiveVector getSourceVector( |
284 const ContentSecurityPolicy::DirectiveType&, | 284 const ContentSecurityPolicy::DirectiveType&, |
285 const CSPDirectiveListVector& policies); | 285 const CSPDirectiveListVector& policies); |
286 | 286 |
287 Member<ContentSecurityPolicy> m_policy; | 287 Member<ContentSecurityPolicy> m_policy; |
288 | 288 |
289 String m_header; | 289 String m_header; |
(...skipping 27 matching lines...) Expand all Loading... |
317 uint8_t m_requireSRIFor; | 317 uint8_t m_requireSRIFor; |
318 | 318 |
319 Vector<String> m_reportEndpoints; | 319 Vector<String> m_reportEndpoints; |
320 | 320 |
321 String m_evalDisabledErrorMessage; | 321 String m_evalDisabledErrorMessage; |
322 }; | 322 }; |
323 | 323 |
324 } // namespace blink | 324 } // namespace blink |
325 | 325 |
326 #endif | 326 #endif |
OLD | NEW |