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

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

Issue 2083983002: Rename 'unsafe-dynamic' to 'strict-dynamic' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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 CSPSourceList_h 5 #ifndef CSPSourceList_h
6 #define CSPSourceList_h 6 #define CSPSourceList_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/frame/csp/CSPSource.h" 9 #include "core/frame/csp/CSPSource.h"
10 #include "platform/Crypto.h" 10 #include "platform/Crypto.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool parseHost(const UChar* begin, const UChar* end, String& host, CSPSource ::WildcardDisposition&); 44 bool parseHost(const UChar* begin, const UChar* end, String& host, CSPSource ::WildcardDisposition&);
45 bool parsePort(const UChar* begin, const UChar* end, int& port, CSPSource::W ildcardDisposition&); 45 bool parsePort(const UChar* begin, const UChar* end, int& port, CSPSource::W ildcardDisposition&);
46 bool parsePath(const UChar* begin, const UChar* end, String& path); 46 bool parsePath(const UChar* begin, const UChar* end, String& path);
47 bool parseNonce(const UChar* begin, const UChar* end, String& nonce); 47 bool parseNonce(const UChar* begin, const UChar* end, String& nonce);
48 bool parseHash(const UChar* begin, const UChar* end, DigestValue& hash, Cont entSecurityPolicyHashAlgorithm&); 48 bool parseHash(const UChar* begin, const UChar* end, DigestValue& hash, Cont entSecurityPolicyHashAlgorithm&);
49 49
50 void addSourceSelf(); 50 void addSourceSelf();
51 void addSourceStar(); 51 void addSourceStar();
52 void addSourceUnsafeInline(); 52 void addSourceUnsafeInline();
53 void addSourceUnsafeEval(); 53 void addSourceUnsafeEval();
54 void addSourceUnsafeDynamic(); 54 void addSourceStrictDynamic();
55 void addSourceUnsafeHashedAttributes(); 55 void addSourceUnsafeHashedAttributes();
56 void addSourceNonce(const String& nonce); 56 void addSourceNonce(const String& nonce);
57 void addSourceHash(const ContentSecurityPolicyHashAlgorithm&, const DigestVa lue& hash); 57 void addSourceHash(const ContentSecurityPolicyHashAlgorithm&, const DigestVa lue& hash);
58 58
59 bool hasSourceMatchInList(const KURL&, ContentSecurityPolicy::RedirectStatus ) const; 59 bool hasSourceMatchInList(const KURL&, ContentSecurityPolicy::RedirectStatus ) const;
60 60
61 Member<ContentSecurityPolicy> m_policy; 61 Member<ContentSecurityPolicy> m_policy;
62 HeapVector<Member<CSPSource>> m_list; 62 HeapVector<Member<CSPSource>> m_list;
63 String m_directiveName; 63 String m_directiveName;
64 bool m_allowSelf; 64 bool m_allowSelf;
65 bool m_allowStar; 65 bool m_allowStar;
66 bool m_allowInline; 66 bool m_allowInline;
67 bool m_allowEval; 67 bool m_allowEval;
68 bool m_allowDynamic; 68 bool m_allowDynamic;
69 bool m_allowHashedAttributes; 69 bool m_allowHashedAttributes;
70 HashSet<String> m_nonces; 70 HashSet<String> m_nonces;
71 HashSet<CSPHashValue> m_hashes; 71 HashSet<CSPHashValue> m_hashes;
72 uint8_t m_hashAlgorithmsUsed; 72 uint8_t m_hashAlgorithmsUsed;
73 }; 73 };
74 74
75 75
76 } // namespace blink 76 } // namespace blink
77 77
78 #endif 78 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698