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

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

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
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 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698