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
3 // found in the LICENSE file.
8 #include "wtf/text/WTFString.h"
12 class ContentSecurityPolicy;
17 enum WildcardDisposition {
22 CSPSource(ContentSecurityPolicy*, const String& scheme, const String& host, int port, const String& path, WildcardDisposition hostWildcard, WildcardDisposition portWildcard);
23 bool matches(const KURL&) const;
26 bool schemeMatches(const KURL&) const;
27 bool hostMatches(const KURL&) const;
28 bool pathMatches(const KURL&) const;
29 bool portMatches(const KURL&) const;
30 bool isSchemeOnly() const;
32 ContentSecurityPolicy* m_policy;
38 WildcardDisposition m_hostWildcard;
39 WildcardDisposition m_portWildcard;