OLD | NEW |
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 #include "core/frame/csp/CSPSource.h" | 5 #include "core/frame/csp/CSPSource.h" |
6 | 6 |
7 #include "core/frame/UseCounter.h" | 7 #include "core/frame/UseCounter.h" |
8 #include "core/frame/csp/ContentSecurityPolicy.h" | 8 #include "core/frame/csp/ContentSecurityPolicy.h" |
9 #include "platform/weborigin/KURL.h" | 9 #include "platform/weborigin/KURL.h" |
10 #include "platform/weborigin/KnownPorts.h" | 10 #include "platform/weborigin/KnownPorts.h" |
11 #include "platform/weborigin/SecurityOrigin.h" | 11 #include "platform/weborigin/SecurityOrigin.h" |
12 #include "wtf/text/WTFString.h" | 12 #include "platform/wtf/text/WTFString.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 CSPSource::CSPSource(ContentSecurityPolicy* policy, | 16 CSPSource::CSPSource(ContentSecurityPolicy* policy, |
17 const String& scheme, | 17 const String& scheme, |
18 const String& host, | 18 const String& host, |
19 int port, | 19 int port, |
20 const String& path, | 20 const String& path, |
21 WildcardDisposition host_wildcard, | 21 WildcardDisposition host_wildcard, |
22 WildcardDisposition port_wildcard) | 22 WildcardDisposition port_wildcard) |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 static_cast<WebWildcardDisposition>(port_wildcard_); | 267 static_cast<WebWildcardDisposition>(port_wildcard_); |
268 source_expression.path = path_; | 268 source_expression.path = path_; |
269 return source_expression; | 269 return source_expression; |
270 } | 270 } |
271 | 271 |
272 DEFINE_TRACE(CSPSource) { | 272 DEFINE_TRACE(CSPSource) { |
273 visitor->Trace(policy_); | 273 visitor->Trace(policy_); |
274 } | 274 } |
275 | 275 |
276 } // namespace blink | 276 } // namespace blink |
OLD | NEW |