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/CSPSourceList.h" | 5 #include "core/frame/csp/CSPSourceList.h" |
6 | 6 |
7 #include "core/frame/csp/CSPSource.h" | 7 #include "core/frame/csp/CSPSource.h" |
8 #include "core/frame/csp/ContentSecurityPolicy.h" | 8 #include "core/frame/csp/ContentSecurityPolicy.h" |
9 #include "platform/ParsingUtilities.h" | |
10 #include "platform/weborigin/KURL.h" | 9 #include "platform/weborigin/KURL.h" |
11 #include "platform/weborigin/SecurityOrigin.h" | 10 #include "platform/weborigin/SecurityOrigin.h" |
12 #include "wtf/HashSet.h" | 11 #include "wtf/HashSet.h" |
13 #include "wtf/text/Base64.h" | 12 #include "wtf/text/Base64.h" |
| 13 #include "wtf/text/ParsingUtilities.h" |
14 #include "wtf/text/StringToNumber.h" | 14 #include "wtf/text/StringToNumber.h" |
15 #include "wtf/text/WTFString.h" | 15 #include "wtf/text/WTFString.h" |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 | 18 |
19 static bool isSourceListNone(const UChar* begin, const UChar* end) | 19 static bool isSourceListNone(const UChar* begin, const UChar* end) |
20 { | 20 { |
21 skipWhile<UChar, isASCIISpace>(begin, end); | 21 skipWhile<UChar, isASCIISpace>(begin, end); |
22 | 22 |
23 const UChar* position = begin; | 23 const UChar* position = begin; |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 return false; | 535 return false; |
536 } | 536 } |
537 | 537 |
538 DEFINE_TRACE(CSPSourceList) | 538 DEFINE_TRACE(CSPSourceList) |
539 { | 539 { |
540 visitor->trace(m_policy); | 540 visitor->trace(m_policy); |
541 visitor->trace(m_list); | 541 visitor->trace(m_list); |
542 } | 542 } |
543 | 543 |
544 } // namespace blink | 544 } // namespace blink |
OLD | NEW |