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

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

Issue 1923273002: CSP: Allow hashed inline event handlers only with 'unsafe-hashed-attributes' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 bool SourceListDirective::allowNonce(const String& nonce) const 45 bool SourceListDirective::allowNonce(const String& nonce) const
46 { 46 {
47 return m_sourceList.allowNonce(nonce.stripWhiteSpace()); 47 return m_sourceList.allowNonce(nonce.stripWhiteSpace());
48 } 48 }
49 49
50 bool SourceListDirective::allowHash(const CSPHashValue& hashValue) const 50 bool SourceListDirective::allowHash(const CSPHashValue& hashValue) const
51 { 51 {
52 return m_sourceList.allowHash(hashValue); 52 return m_sourceList.allowHash(hashValue);
53 } 53 }
54 54
55 bool SourceListDirective::allowHashedAttributes() const
56 {
57 return m_sourceList.allowHashedAttributes();
58 }
59
55 bool SourceListDirective::isHashOrNoncePresent() const 60 bool SourceListDirective::isHashOrNoncePresent() const
56 { 61 {
57 return m_sourceList.isHashOrNoncePresent(); 62 return m_sourceList.isHashOrNoncePresent();
58 } 63 }
59 64
60 uint8_t SourceListDirective::hashAlgorithmsUsed() const 65 uint8_t SourceListDirective::hashAlgorithmsUsed() const
61 { 66 {
62 return m_sourceList.hashAlgorithmsUsed(); 67 return m_sourceList.hashAlgorithmsUsed();
63 } 68 }
64 69
65 DEFINE_TRACE(SourceListDirective) 70 DEFINE_TRACE(SourceListDirective)
66 { 71 {
67 visitor->trace(m_sourceList); 72 visitor->trace(m_sourceList);
68 CSPDirective::trace(visitor); 73 CSPDirective::trace(visitor);
69 } 74 }
70 75
71 } // namespace blink 76 } // 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