OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2010 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2010 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ | 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ |
4 * Copyright (C) 2010 Google Inc. All Rights Reserved. | 4 * Copyright (C) 2010 Google Inc. All Rights Reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 10 matching lines...) Expand all Loading... |
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #include "core/html/parser/CSSPreloadScanner.h" | 28 #include "core/html/parser/CSSPreloadScanner.h" |
29 | 29 |
30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
31 #include "core/fetch/CSSStyleSheetResource.h" | |
32 #include "core/fetch/FetchInitiatorTypeNames.h" | 31 #include "core/fetch/FetchInitiatorTypeNames.h" |
33 #include "core/frame/Settings.h" | 32 #include "core/frame/Settings.h" |
34 #include "core/html/parser/HTMLParserIdioms.h" | 33 #include "core/html/parser/HTMLParserIdioms.h" |
35 #include "core/html/parser/HTMLResourcePreloader.h" | 34 #include "core/html/parser/HTMLResourcePreloader.h" |
36 #include "core/loader/DocumentLoader.h" | 35 #include "core/loader/DocumentLoader.h" |
| 36 #include "core/loader/resource/CSSStyleSheetResource.h" |
37 #include "platform/Histogram.h" | 37 #include "platform/Histogram.h" |
38 #include "platform/text/SegmentedString.h" | 38 #include "platform/text/SegmentedString.h" |
39 #include <memory> | 39 #include <memory> |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 CSSPreloadScanner::CSSPreloadScanner() {} | 43 CSSPreloadScanner::CSSPreloadScanner() {} |
44 | 44 |
45 CSSPreloadScanner::~CSSPreloadScanner() {} | 45 CSSPreloadScanner::~CSSPreloadScanner() {} |
46 | 46 |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 m_resource.clear(); | 325 m_resource.clear(); |
326 } | 326 } |
327 | 327 |
328 DEFINE_TRACE(CSSPreloaderResourceClient) { | 328 DEFINE_TRACE(CSSPreloaderResourceClient) { |
329 visitor->trace(m_preloader); | 329 visitor->trace(m_preloader); |
330 visitor->trace(m_resource); | 330 visitor->trace(m_resource); |
331 StyleSheetResourceClient::trace(visitor); | 331 StyleSheetResourceClient::trace(visitor); |
332 } | 332 } |
333 | 333 |
334 } // namespace blink | 334 } // namespace blink |
OLD | NEW |