| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 * | 29 * |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #include "core/loader/LinkLoader.h" | 32 #include "core/loader/LinkLoader.h" |
| 33 | 33 |
| 34 #include "core/css/MediaList.h" | 34 #include "core/css/MediaList.h" |
| 35 #include "core/css/MediaQueryEvaluator.h" | 35 #include "core/css/MediaQueryEvaluator.h" |
| 36 #include "core/dom/Document.h" | 36 #include "core/dom/Document.h" |
| 37 #include "core/fetch/FetchInitiatorTypeNames.h" | |
| 38 #include "core/fetch/FetchRequest.h" | |
| 39 #include "core/fetch/ResourceFetcher.h" | |
| 40 #include "core/frame/Settings.h" | 37 #include "core/frame/Settings.h" |
| 41 #include "core/frame/UseCounter.h" | 38 #include "core/frame/UseCounter.h" |
| 42 #include "core/html/CrossOriginAttribute.h" | 39 #include "core/html/CrossOriginAttribute.h" |
| 43 #include "core/html/LinkRelAttribute.h" | 40 #include "core/html/LinkRelAttribute.h" |
| 44 #include "core/html/parser/HTMLPreloadScanner.h" | 41 #include "core/html/parser/HTMLPreloadScanner.h" |
| 45 #include "core/inspector/ConsoleMessage.h" | 42 #include "core/inspector/ConsoleMessage.h" |
| 46 #include "core/loader/DocumentLoader.h" | 43 #include "core/loader/DocumentLoader.h" |
| 47 #include "core/loader/NetworkHintsInterface.h" | 44 #include "core/loader/NetworkHintsInterface.h" |
| 48 #include "core/loader/PrerenderHandle.h" | 45 #include "core/loader/PrerenderHandle.h" |
| 49 #include "core/loader/resource/LinkFetchResource.h" | 46 #include "core/loader/resource/LinkFetchResource.h" |
| 50 #include "platform/Prerender.h" | 47 #include "platform/Prerender.h" |
| 51 #include "platform/RuntimeEnabledFeatures.h" | 48 #include "platform/RuntimeEnabledFeatures.h" |
| 49 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" |
| 50 #include "platform/loader/fetch/FetchRequest.h" |
| 51 #include "platform/loader/fetch/ResourceFetcher.h" |
| 52 #include "platform/network/LinkHeader.h" | 52 #include "platform/network/LinkHeader.h" |
| 53 #include "platform/network/NetworkHints.h" | 53 #include "platform/network/NetworkHints.h" |
| 54 #include "platform/network/mime/MIMETypeRegistry.h" | 54 #include "platform/network/mime/MIMETypeRegistry.h" |
| 55 #include "public/platform/WebPrerender.h" | 55 #include "public/platform/WebPrerender.h" |
| 56 | 56 |
| 57 namespace blink { | 57 namespace blink { |
| 58 | 58 |
| 59 static unsigned prerenderRelTypesFromRelAttribute( | 59 static unsigned prerenderRelTypesFromRelAttribute( |
| 60 const LinkRelAttribute& relAttribute, | 60 const LinkRelAttribute& relAttribute, |
| 61 Document& document) { | 61 Document& document) { |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 | 486 |
| 487 DEFINE_TRACE(LinkLoader) { | 487 DEFINE_TRACE(LinkLoader) { |
| 488 visitor->trace(m_client); | 488 visitor->trace(m_client); |
| 489 visitor->trace(m_prerender); | 489 visitor->trace(m_prerender); |
| 490 visitor->trace(m_linkPreloadResourceClient); | 490 visitor->trace(m_linkPreloadResourceClient); |
| 491 ResourceOwner<Resource, ResourceClient>::trace(visitor); | 491 ResourceOwner<Resource, ResourceClient>::trace(visitor); |
| 492 PrerenderClient::trace(visitor); | 492 PrerenderClient::trace(visitor); |
| 493 } | 493 } |
| 494 | 494 |
| 495 } // namespace blink | 495 } // namespace blink |
| OLD | NEW |