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

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

Issue 2536713002: Part 3.3: Is policy list subsumed under subsuming policy? (Closed)
Patch Set: Using allowAllInline() Created 4 years 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/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/frame/csp/CSPDirective.h" 9 #include "core/frame/csp/CSPDirective.h"
10 #include "core/frame/csp/CSPSource.h" 10 #include "core/frame/csp/CSPSource.h"
(...skipping 27 matching lines...) Expand all
38 ResourceRequest::RedirectStatus = 38 ResourceRequest::RedirectStatus =
39 ResourceRequest::RedirectStatus::NoRedirect) const; 39 ResourceRequest::RedirectStatus::NoRedirect) const;
40 bool allowInline() const; 40 bool allowInline() const;
41 bool allowEval() const; 41 bool allowEval() const;
42 bool allowDynamic() const; 42 bool allowDynamic() const;
43 bool allowNonce(const String& nonce) const; 43 bool allowNonce(const String& nonce) const;
44 bool allowHash(const CSPHashValue&) const; 44 bool allowHash(const CSPHashValue&) const;
45 bool allowHashedAttributes() const; 45 bool allowHashedAttributes() const;
46 bool isHashOrNoncePresent() const; 46 bool isHashOrNoncePresent() const;
47 uint8_t hashAlgorithmsUsed() const; 47 uint8_t hashAlgorithmsUsed() const;
48 bool allowAllInline();
amalika 2016/11/29 09:42:29 Changing it to be public
49
48 // The algorothm is described more extensively here: 50 // The algorothm is described more extensively here:
49 // https://w3c.github.io/webappsec-csp/embedded/#subsume-source-list 51 // https://w3c.github.io/webappsec-csp/embedded/#subsume-source-list
50 bool subsumes(HeapVector<Member<SourceListDirective>>); 52 bool subsumes(HeapVector<Member<SourceListDirective>>);
51 53
52 private: 54 private:
53 FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetIntersectCSPSources); 55 FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetIntersectCSPSources);
54 FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, 56 FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest,
55 GetIntersectCSPSourcesSchemes); 57 GetIntersectCSPSourcesSchemes);
56 FRIEND_TEST_ALL_PREFIXES(CSPDirectiveListTest, GetSourceVector); 58 FRIEND_TEST_ALL_PREFIXES(CSPDirectiveListTest, GetSourceVector);
57 FRIEND_TEST_ALL_PREFIXES(CSPDirectiveListTest, OperativeDirectiveGivenType); 59 FRIEND_TEST_ALL_PREFIXES(CSPDirectiveListTest, OperativeDirectiveGivenType);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 bool m_allowDynamic; 110 bool m_allowDynamic;
109 bool m_allowHashedAttributes; 111 bool m_allowHashedAttributes;
110 HashSet<String> m_nonces; 112 HashSet<String> m_nonces;
111 HashSet<CSPHashValue> m_hashes; 113 HashSet<CSPHashValue> m_hashes;
112 uint8_t m_hashAlgorithmsUsed; 114 uint8_t m_hashAlgorithmsUsed;
113 }; 115 };
114 116
115 } // namespace blink 117 } // namespace blink
116 118
117 #endif 119 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698