Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp

Issue 1641533006: CSP: Add an experimental 'unsafe-dynamic' source expression. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Experiment. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/SourceListDirective.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "core/frame/csp/SourceListDirective.h" 5 #include "core/frame/csp/SourceListDirective.h"
6 6
7 #include "core/frame/csp/CSPSourceList.h" 7 #include "core/frame/csp/CSPSourceList.h"
8 #include "core/frame/csp/ContentSecurityPolicy.h" 8 #include "core/frame/csp/ContentSecurityPolicy.h"
9 #include "platform/network/ContentSecurityPolicyParsers.h" 9 #include "platform/network/ContentSecurityPolicyParsers.h"
10 #include "platform/weborigin/KURL.h" 10 #include "platform/weborigin/KURL.h"
(...skipping 19 matching lines...) Expand all
30 bool SourceListDirective::allowInline() const 30 bool SourceListDirective::allowInline() const
31 { 31 {
32 return m_sourceList.allowInline(); 32 return m_sourceList.allowInline();
33 } 33 }
34 34
35 bool SourceListDirective::allowEval() const 35 bool SourceListDirective::allowEval() const
36 { 36 {
37 return m_sourceList.allowEval(); 37 return m_sourceList.allowEval();
38 } 38 }
39 39
40 bool SourceListDirective::allowDynamic() const
41 {
42 return m_sourceList.allowDynamic();
43 }
44
40 bool SourceListDirective::allowNonce(const String& nonce) const 45 bool SourceListDirective::allowNonce(const String& nonce) const
41 { 46 {
42 return m_sourceList.allowNonce(nonce.stripWhiteSpace()); 47 return m_sourceList.allowNonce(nonce.stripWhiteSpace());
43 } 48 }
44 49
45 bool SourceListDirective::allowHash(const CSPHashValue& hashValue) const 50 bool SourceListDirective::allowHash(const CSPHashValue& hashValue) const
46 { 51 {
47 return m_sourceList.allowHash(hashValue); 52 return m_sourceList.allowHash(hashValue);
48 } 53 }
49 54
50 bool SourceListDirective::isHashOrNoncePresent() const 55 bool SourceListDirective::isHashOrNoncePresent() const
51 { 56 {
52 return m_sourceList.isHashOrNoncePresent(); 57 return m_sourceList.isHashOrNoncePresent();
53 } 58 }
54 59
55 uint8_t SourceListDirective::hashAlgorithmsUsed() const 60 uint8_t SourceListDirective::hashAlgorithmsUsed() const
56 { 61 {
57 return m_sourceList.hashAlgorithmsUsed(); 62 return m_sourceList.hashAlgorithmsUsed();
58 } 63 }
59 64
60 } // namespace blink 65 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/SourceListDirective.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698