| 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::discardProvisionalHistoryItem() |
| 212 { |
| 213 FrameLoader* frameloader = frameLoader(); |
| 214 if (frameloader) |
| 215 frameloader->discardProvisionalHistoryItem(); |
| 216 } |
| 217 |
| 211 void DocumentLoader::dispatchLinkHeaderPreloads(ViewportDescriptionWrapper* view
port, LinkLoader::MediaPreloadPolicy mediaPolicy) | 218 void DocumentLoader::dispatchLinkHeaderPreloads(ViewportDescriptionWrapper* view
port, LinkLoader::MediaPreloadPolicy mediaPolicy) |
| 212 { | 219 { |
| 213 LinkLoader::loadLinksFromHeader(response().httpHeaderField(HTTPNames::Link),
response().url(), m_frame->document(), NetworkHintsInterfaceImpl(), LinkLoader:
:OnlyLoadResources, mediaPolicy, viewport); | 220 LinkLoader::loadLinksFromHeader(response().httpHeaderField(HTTPNames::Link),
response().url(), m_frame->document(), NetworkHintsInterfaceImpl(), LinkLoader:
:OnlyLoadResources, mediaPolicy, viewport); |
| 214 } | 221 } |
| 215 | 222 |
| 216 void DocumentLoader::didChangePerformanceTiming() | 223 void DocumentLoader::didChangePerformanceTiming() |
| 217 { | 224 { |
| 218 if (frame() && frame()->isMainFrame() && m_state >= Committed) { | 225 if (frame() && frame()->isMainFrame() && m_state >= Committed) { |
| 219 frameLoader()->client()->didChangePerformanceTiming(); | 226 frameLoader()->client()->didChangePerformanceTiming(); |
| 220 } | 227 } |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 { | 722 { |
| 716 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding()
: emptyAtom, true, ForceSynchronousParsing); | 723 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding()
: emptyAtom, true, ForceSynchronousParsing); |
| 717 if (!source.isNull()) | 724 if (!source.isNull()) |
| 718 m_writer->appendReplacingData(source); | 725 m_writer->appendReplacingData(source); |
| 719 endWriting(m_writer.get()); | 726 endWriting(m_writer.get()); |
| 720 } | 727 } |
| 721 | 728 |
| 722 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 729 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 723 | 730 |
| 724 } // namespace blink | 731 } // namespace blink |
| OLD | NEW |