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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 void DocumentLoader::dispatchLinkHeaderPreloads( | 232 void DocumentLoader::dispatchLinkHeaderPreloads( |
233 ViewportDescriptionWrapper* viewport, | 233 ViewportDescriptionWrapper* viewport, |
234 LinkLoader::MediaPreloadPolicy mediaPolicy) { | 234 LinkLoader::MediaPreloadPolicy mediaPolicy) { |
235 LinkLoader::loadLinksFromHeader( | 235 LinkLoader::loadLinksFromHeader( |
236 response().httpHeaderField(HTTPNames::Link), response().url(), | 236 response().httpHeaderField(HTTPNames::Link), response().url(), |
237 m_frame->document(), NetworkHintsInterfaceImpl(), | 237 m_frame->document(), NetworkHintsInterfaceImpl(), |
238 LinkLoader::OnlyLoadResources, mediaPolicy, viewport); | 238 LinkLoader::OnlyLoadResources, mediaPolicy, viewport); |
239 } | 239 } |
240 | 240 |
241 void DocumentLoader::didChangePerformanceTiming() { | 241 void DocumentLoader::didChangePerformanceTiming() { |
242 if (m_frame && m_frame->isMainFrame() && m_state >= Committed) { | 242 if (m_frame && m_state >= Committed) { |
243 localFrameClient().didChangePerformanceTiming(); | 243 localFrameClient().didChangePerformanceTiming(); |
244 } | 244 } |
245 } | 245 } |
246 | 246 |
247 void DocumentLoader::didObserveLoadingBehavior( | 247 void DocumentLoader::didObserveLoadingBehavior( |
248 WebLoadingBehaviorFlag behavior) { | 248 WebLoadingBehaviorFlag behavior) { |
249 if (m_frame && m_frame->isMainFrame()) { | 249 if (m_frame) { |
250 DCHECK_GE(m_state, Committed); | 250 DCHECK_GE(m_state, Committed); |
251 localFrameClient().didObserveLoadingBehavior(behavior); | 251 localFrameClient().didObserveLoadingBehavior(behavior); |
252 } | 252 } |
253 } | 253 } |
254 | 254 |
255 void DocumentLoader::updateForSameDocumentNavigation( | 255 void DocumentLoader::updateForSameDocumentNavigation( |
256 const KURL& newURL, | 256 const KURL& newURL, |
257 SameDocumentNavigationSource sameDocumentNavigationSource) { | 257 SameDocumentNavigationSource sameDocumentNavigationSource) { |
258 KURL oldURL = m_request.url(); | 258 KURL oldURL = m_request.url(); |
259 m_originalRequest.setURL(newURL); | 259 m_originalRequest.setURL(newURL); |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 m_writer ? m_writer->encoding() : emptyAtom, true, | 811 m_writer ? m_writer->encoding() : emptyAtom, true, |
812 ForceSynchronousParsing); | 812 ForceSynchronousParsing); |
813 if (!source.isNull()) | 813 if (!source.isNull()) |
814 m_writer->appendReplacingData(source); | 814 m_writer->appendReplacingData(source); |
815 endWriting(); | 815 endWriting(); |
816 } | 816 } |
817 | 817 |
818 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 818 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
819 | 819 |
820 } // namespace blink | 820 } // namespace blink |
OLD | NEW |