| 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 SourceListDirective_h | 5 #ifndef SourceListDirective_h |
| 6 #define SourceListDirective_h | 6 #define SourceListDirective_h |
| 7 | 7 |
| 8 #include "core/frame/csp/CSPDirective.h" | 8 #include "core/frame/csp/CSPDirective.h" |
| 9 #include "core/frame/csp/CSPSourceList.h" | 9 #include "core/frame/csp/CSPSourceList.h" |
| 10 #include "core/frame/csp/ContentSecurityPolicy.h" | 10 #include "core/frame/csp/ContentSecurityPolicy.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 public: | 22 public: |
| 23 SourceListDirective(const String& name, const String& value, ContentSecurity
Policy*); | 23 SourceListDirective(const String& name, const String& value, ContentSecurity
Policy*); |
| 24 DECLARE_TRACE(); | 24 DECLARE_TRACE(); |
| 25 | 25 |
| 26 bool allows(const KURL&, blink::ContentSecurityPolicy::RedirectStatus) const
; | 26 bool allows(const KURL&, blink::ContentSecurityPolicy::RedirectStatus) const
; |
| 27 bool allowInline() const; | 27 bool allowInline() const; |
| 28 bool allowEval() const; | 28 bool allowEval() const; |
| 29 bool allowDynamic() const; | 29 bool allowDynamic() const; |
| 30 bool allowNonce(const String& nonce) const; | 30 bool allowNonce(const String& nonce) const; |
| 31 bool allowHash(const CSPHashValue&) const; | 31 bool allowHash(const CSPHashValue&) const; |
| 32 bool allowHashedAttributes() const; |
| 32 bool isHashOrNoncePresent() const; | 33 bool isHashOrNoncePresent() const; |
| 33 uint8_t hashAlgorithmsUsed() const; | 34 uint8_t hashAlgorithmsUsed() const; |
| 34 | 35 |
| 35 private: | 36 private: |
| 36 CSPSourceList m_sourceList; | 37 CSPSourceList m_sourceList; |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 } // namespace blink | 40 } // namespace blink |
| 40 | 41 |
| 41 #endif | 42 #endif |
| OLD | NEW |