| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 if (resource && !resource->resourceError().isAccessCheck()) | 228 if (resource && !resource->resourceError().isAccessCheck()) |
| 229 fetcher()->preloadStarted(resource); | 229 fetcher()->preloadStarted(resource); |
| 230 return resource; | 230 return resource; |
| 231 } | 231 } |
| 232 | 232 |
| 233 void DocumentLoader::setServiceWorkerNetworkProvider( | 233 void DocumentLoader::setServiceWorkerNetworkProvider( |
| 234 std::unique_ptr<WebServiceWorkerNetworkProvider> provider) { | 234 std::unique_ptr<WebServiceWorkerNetworkProvider> provider) { |
| 235 m_serviceWorkerNetworkProvider = std::move(provider); | 235 m_serviceWorkerNetworkProvider = std::move(provider); |
| 236 } | 236 } |
| 237 | 237 |
| 238 void DocumentLoader::setSourceLocation( |
| 239 std::unique_ptr<SourceLocation> sourceLocation) { |
| 240 m_sourceLocation = std::move(sourceLocation); |
| 241 } |
| 242 |
| 243 std::unique_ptr<SourceLocation> DocumentLoader::copySourceLocation() const { |
| 244 return m_sourceLocation ? m_sourceLocation->clone() : nullptr; |
| 245 } |
| 246 |
| 238 void DocumentLoader::dispatchLinkHeaderPreloads( | 247 void DocumentLoader::dispatchLinkHeaderPreloads( |
| 239 ViewportDescriptionWrapper* viewport, | 248 ViewportDescriptionWrapper* viewport, |
| 240 LinkLoader::MediaPreloadPolicy mediaPolicy) { | 249 LinkLoader::MediaPreloadPolicy mediaPolicy) { |
| 241 LinkLoader::loadLinksFromHeader( | 250 LinkLoader::loadLinksFromHeader( |
| 242 response().httpHeaderField(HTTPNames::Link), response().url(), | 251 response().httpHeaderField(HTTPNames::Link), response().url(), |
| 243 m_frame->document(), NetworkHintsInterfaceImpl(), | 252 m_frame->document(), NetworkHintsInterfaceImpl(), |
| 244 LinkLoader::OnlyLoadResources, mediaPolicy, viewport); | 253 LinkLoader::OnlyLoadResources, mediaPolicy, viewport); |
| 245 } | 254 } |
| 246 | 255 |
| 247 void DocumentLoader::didChangePerformanceTiming() { | 256 void DocumentLoader::didChangePerformanceTiming() { |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 m_writer ? m_writer->encoding() : emptyAtom, true, | 827 m_writer ? m_writer->encoding() : emptyAtom, true, |
| 819 ForceSynchronousParsing); | 828 ForceSynchronousParsing); |
| 820 if (!source.isNull()) | 829 if (!source.isNull()) |
| 821 m_writer->appendReplacingData(source); | 830 m_writer->appendReplacingData(source); |
| 822 endWriting(); | 831 endWriting(); |
| 823 } | 832 } |
| 824 | 833 |
| 825 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 834 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 826 | 835 |
| 827 } // namespace blink | 836 } // namespace blink |
| OLD | NEW |