| 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 29 matching lines...) Expand all Loading... |
| 40 #include "core/frame/Settings.h" | 40 #include "core/frame/Settings.h" |
| 41 #include "core/frame/UseCounter.h" | 41 #include "core/frame/UseCounter.h" |
| 42 #include "core/html/CrossOriginAttribute.h" | 42 #include "core/html/CrossOriginAttribute.h" |
| 43 #include "core/html/LinkRelAttribute.h" | 43 #include "core/html/LinkRelAttribute.h" |
| 44 #include "core/html/parser/HTMLPreloadScanner.h" | 44 #include "core/html/parser/HTMLPreloadScanner.h" |
| 45 #include "core/inspector/ConsoleMessage.h" | 45 #include "core/inspector/ConsoleMessage.h" |
| 46 #include "core/loader/DocumentLoader.h" | 46 #include "core/loader/DocumentLoader.h" |
| 47 #include "core/loader/NetworkHintsInterface.h" | 47 #include "core/loader/NetworkHintsInterface.h" |
| 48 #include "core/loader/PrerenderHandle.h" | 48 #include "core/loader/PrerenderHandle.h" |
| 49 #include "core/loader/resource/LinkFetchResource.h" | 49 #include "core/loader/resource/LinkFetchResource.h" |
| 50 #include "platform/MIMETypeRegistry.h" | |
| 51 #include "platform/Prerender.h" | 50 #include "platform/Prerender.h" |
| 52 #include "platform/RuntimeEnabledFeatures.h" | 51 #include "platform/RuntimeEnabledFeatures.h" |
| 53 #include "platform/network/LinkHeader.h" | 52 #include "platform/network/LinkHeader.h" |
| 54 #include "platform/network/NetworkHints.h" | 53 #include "platform/network/NetworkHints.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) { |
| 62 unsigned result = 0; | 62 unsigned result = 0; |
| 63 if (relAttribute.isLinkPrerender()) { | 63 if (relAttribute.isLinkPrerender()) { |
| 64 result |= PrerenderRelTypePrerender; | 64 result |= PrerenderRelTypePrerender; |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 | 480 |
| 481 DEFINE_TRACE(LinkLoader) { | 481 DEFINE_TRACE(LinkLoader) { |
| 482 visitor->trace(m_client); | 482 visitor->trace(m_client); |
| 483 visitor->trace(m_prerender); | 483 visitor->trace(m_prerender); |
| 484 visitor->trace(m_linkPreloadResourceClient); | 484 visitor->trace(m_linkPreloadResourceClient); |
| 485 ResourceOwner<Resource, ResourceClient>::trace(visitor); | 485 ResourceOwner<Resource, ResourceClient>::trace(visitor); |
| 486 PrerenderClient::trace(visitor); | 486 PrerenderClient::trace(visitor); |
| 487 } | 487 } |
| 488 | 488 |
| 489 } // namespace blink | 489 } // namespace blink |
| OLD | NEW |