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

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

Issue 549163003: CSP: Change 'self' to ask the policy object whether a URL matches. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: httpfamily Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/csp/CSPSource.cpp ('k') | Source/core/frame/csp/CSPSourceList.cpp » ('j') | 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 #ifndef CSPSourceList_h 5 #ifndef CSPSourceList_h
6 #define CSPSourceList_h 6 #define CSPSourceList_h
7 7
8 #include "core/frame/csp/CSPSource.h" 8 #include "core/frame/csp/CSPSource.h"
9 #include "platform/Crypto.h" 9 #include "platform/Crypto.h"
10 #include "platform/network/ContentSecurityPolicyParsers.h" 10 #include "platform/network/ContentSecurityPolicyParsers.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void addSourceSelf(); 44 void addSourceSelf();
45 void addSourceStar(); 45 void addSourceStar();
46 void addSourceUnsafeInline(); 46 void addSourceUnsafeInline();
47 void addSourceUnsafeEval(); 47 void addSourceUnsafeEval();
48 void addSourceNonce(const String& nonce); 48 void addSourceNonce(const String& nonce);
49 void addSourceHash(const ContentSecurityPolicyHashAlgorithm&, const DigestVa lue& hash); 49 void addSourceHash(const ContentSecurityPolicyHashAlgorithm&, const DigestVa lue& hash);
50 50
51 ContentSecurityPolicy* m_policy; 51 ContentSecurityPolicy* m_policy;
52 Vector<CSPSource> m_list; 52 Vector<CSPSource> m_list;
53 String m_directiveName; 53 String m_directiveName;
54 bool m_allowSelf;
54 bool m_allowStar; 55 bool m_allowStar;
55 bool m_allowInline; 56 bool m_allowInline;
56 bool m_allowEval; 57 bool m_allowEval;
57 HashSet<String> m_nonces; 58 HashSet<String> m_nonces;
58 HashSet<CSPHashValue> m_hashes; 59 HashSet<CSPHashValue> m_hashes;
59 uint8_t m_hashAlgorithmsUsed; 60 uint8_t m_hashAlgorithmsUsed;
60 }; 61 };
61 62
62 63
63 } // namespace blink 64 } // namespace blink
64 65
65 #endif 66 #endif
OLDNEW
« no previous file with comments | « Source/core/frame/csp/CSPSource.cpp ('k') | Source/core/frame/csp/CSPSourceList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698