| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 break; | 201 break; |
| 202 default: | 202 default: |
| 203 ASSERT_NOT_REACHED(); | 203 ASSERT_NOT_REACHED(); |
| 204 } | 204 } |
| 205 | 205 |
| 206 if (resource) | 206 if (resource) |
| 207 fetcher()->preloadStarted(resource); | 207 fetcher()->preloadStarted(resource); |
| 208 return resource; | 208 return resource; |
| 209 } | 209 } |
| 210 | 210 |
| 211 void DocumentLoader::dispatchLinkHeaderPreloads(ViewportDescriptionWrapper* view
port, LinkLoader::MediaPreloadPolicy mediaPolicy) |
| 212 { |
| 213 LinkLoader::loadLinksFromHeader(response().httpHeaderField(HTTPNames::Link),
response().url(), m_frame->document(), NetworkHintsInterfaceImpl(), LinkLoader:
:OnlyLoadResources, mediaPolicy, viewport); |
| 214 } |
| 215 |
| 211 void DocumentLoader::didChangePerformanceTiming() | 216 void DocumentLoader::didChangePerformanceTiming() |
| 212 { | 217 { |
| 213 if (frame() && frame()->isMainFrame() && m_state >= Committed) { | 218 if (frame() && frame()->isMainFrame() && m_state >= Committed) { |
| 214 frameLoader()->client()->didChangePerformanceTiming(); | 219 frameLoader()->client()->didChangePerformanceTiming(); |
| 215 } | 220 } |
| 216 } | 221 } |
| 217 | 222 |
| 218 void DocumentLoader::didObserveLoadingBehavior(WebLoadingBehaviorFlag behavior) | 223 void DocumentLoader::didObserveLoadingBehavior(WebLoadingBehaviorFlag behavior) |
| 219 { | 224 { |
| 220 if (frame() && frame()->isMainFrame()) { | 225 if (frame() && frame()->isMainFrame()) { |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 { | 710 { |
| 706 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding()
: emptyAtom, true, ForceSynchronousParsing); | 711 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding()
: emptyAtom, true, ForceSynchronousParsing); |
| 707 if (!source.isNull()) | 712 if (!source.isNull()) |
| 708 m_writer->appendReplacingData(source); | 713 m_writer->appendReplacingData(source); |
| 709 endWriting(m_writer.get()); | 714 endWriting(m_writer.get()); |
| 710 } | 715 } |
| 711 | 716 |
| 712 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 717 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 713 | 718 |
| 714 } // namespace blink | 719 } // namespace blink |
| OLD | NEW |