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

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

Issue 2555153002: Part 3.8: Is policy list subsumed under subsuming policy? (Closed)
Patch Set: Fixing c++ empty vector initialization 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/csp/SourceListDirective.h » ('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 CSPSource_h 5 #ifndef CSPSource_h
6 #define CSPSource_h 6 #define CSPSource_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/frame/csp/ContentSecurityPolicy.h" 9 #include "core/frame/csp/ContentSecurityPolicy.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 private: 51 private:
52 FRIEND_TEST_ALL_PREFIXES(CSPSourceTest, IsSimilar); 52 FRIEND_TEST_ALL_PREFIXES(CSPSourceTest, IsSimilar);
53 FRIEND_TEST_ALL_PREFIXES(CSPSourceTest, Intersect); 53 FRIEND_TEST_ALL_PREFIXES(CSPSourceTest, Intersect);
54 FRIEND_TEST_ALL_PREFIXES(CSPSourceTest, IntersectSchemesOnly); 54 FRIEND_TEST_ALL_PREFIXES(CSPSourceTest, IntersectSchemesOnly);
55 FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetIntersectCSPSources); 55 FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetIntersectCSPSources);
56 FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, 56 FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest,
57 GetIntersectCSPSourcesSchemes); 57 GetIntersectCSPSourcesSchemes);
58 FRIEND_TEST_ALL_PREFIXES(CSPDirectiveListTest, GetSourceVector); 58 FRIEND_TEST_ALL_PREFIXES(CSPDirectiveListTest, GetSourceVector);
59 FRIEND_TEST_ALL_PREFIXES(CSPDirectiveListTest, OperativeDirectiveGivenType); 59 FRIEND_TEST_ALL_PREFIXES(CSPDirectiveListTest, OperativeDirectiveGivenType);
60 FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, SubsumesWithSelf); 60 FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, SubsumesWithSelf);
61 FRIEND_TEST_ALL_PREFIXES(SourceListDirectiveTest, GetSources);
61 62
62 bool schemeMatches(const String&) const; 63 bool schemeMatches(const String&) const;
63 bool hostMatches(const String&) const; 64 bool hostMatches(const String&) const;
64 bool pathMatches(const String&) const; 65 bool pathMatches(const String&) const;
65 // Protocol is necessary to determine default port if it is zero. 66 // Protocol is necessary to determine default port if it is zero.
66 bool portMatches(int port, const String& protocol) const; 67 bool portMatches(int port, const String& protocol) const;
67 bool isSimilar(CSPSource* other) const; 68 bool isSimilar(CSPSource* other) const;
68 69
69 Member<ContentSecurityPolicy> m_policy; 70 Member<ContentSecurityPolicy> m_policy;
70 String m_scheme; 71 String m_scheme;
71 String m_host; 72 String m_host;
72 int m_port; 73 int m_port;
73 String m_path; 74 String m_path;
74 75
75 WildcardDisposition m_hostWildcard; 76 WildcardDisposition m_hostWildcard;
76 WildcardDisposition m_portWildcard; 77 WildcardDisposition m_portWildcard;
77 }; 78 };
78 79
79 } // namespace blink 80 } // namespace blink
80 81
81 #endif 82 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/csp/SourceListDirective.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698