| Index: Source/core/frame/csp/CSPSource.h
|
| diff --git a/Source/core/frame/csp/CSPSource.h b/Source/core/frame/csp/CSPSource.h
|
| index bad9daf45150fca894a11a3aa6b0a027d237bfc8..5d753b426e0afda112b1f2e514ad68208e3a7208 100644
|
| --- a/Source/core/frame/csp/CSPSource.h
|
| +++ b/Source/core/frame/csp/CSPSource.h
|
| @@ -14,7 +14,12 @@
|
|
|
| class CSPSource {
|
| public:
|
| - CSPSource(ContentSecurityPolicy*, const String& scheme, const String& host, int port, const String& path, bool hostHasWildcard, bool portHasWildcard);
|
| + enum WildcardDisposition {
|
| + HasWildcard,
|
| + NoWildcard
|
| + };
|
| +
|
| + CSPSource(ContentSecurityPolicy*, const String& scheme, const String& host, int port, const String& path, WildcardDisposition hostWildcard, WildcardDisposition portWildcard);
|
| bool matches(const KURL&) const;
|
|
|
| private:
|
| @@ -30,8 +35,8 @@
|
| int m_port;
|
| String m_path;
|
|
|
| - bool m_hostHasWildcard;
|
| - bool m_portHasWildcard;
|
| + WildcardDisposition m_hostWildcard;
|
| + WildcardDisposition m_portWildcard;
|
| };
|
|
|
| } // namespace
|
|
|