Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: Source/web/FrameLoaderClientImpl.cpp

Issue 24009002: Move synchronously fetching to ResourceFetcher, as well as most of the logic (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 if (m_webFrame->client()) 319 if (m_webFrame->client())
320 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier); 320 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier);
321 } 321 }
322 322
323 void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad() 323 void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad()
324 { 324 {
325 if (m_webFrame->client()) 325 if (m_webFrame->client())
326 m_webFrame->client()->didFinishDocumentLoad(m_webFrame); 326 m_webFrame->client()->didFinishDocumentLoad(m_webFrame);
327 } 327 }
328 328
329 void FrameLoaderClientImpl::dispatchDidLoadResourceFromMemoryCache( 329 void FrameLoaderClientImpl::dispatchDidLoadResourceFromMemoryCache(const Resourc eRequest& request, const ResourceResponse& response)
330 DocumentLoader* loader,
331 const ResourceRequest& request,
332 const ResourceResponse& response,
333 int length)
334 { 330 {
335 if (m_webFrame->client()) { 331 if (m_webFrame->client())
336 WrappedResourceRequest webreq(request); 332 m_webFrame->client()->didLoadResourceFromMemoryCache(m_webFrame, Wrapped ResourceRequest(request), WrappedResourceResponse(response));
337 WrappedResourceResponse webresp(response);
338 m_webFrame->client()->didLoadResourceFromMemoryCache(
339 m_webFrame, webreq, webresp);
340 }
341 } 333 }
342 334
343 void FrameLoaderClientImpl::dispatchDidHandleOnloadEvents() 335 void FrameLoaderClientImpl::dispatchDidHandleOnloadEvents()
344 { 336 {
345 if (m_webFrame->client()) 337 if (m_webFrame->client())
346 m_webFrame->client()->didHandleOnloadEvents(m_webFrame); 338 m_webFrame->client()->didHandleOnloadEvents(m_webFrame);
347 } 339 }
348 340
349 void FrameLoaderClientImpl::dispatchDidReceiveServerRedirectForProvisionalLoad() 341 void FrameLoaderClientImpl::dispatchDidReceiveServerRedirectForProvisionalLoad()
350 { 342 {
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte xtLostReason); 745 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte xtLostReason);
754 } 746 }
755 747
756 void FrameLoaderClientImpl::dispatchWillInsertBody() 748 void FrameLoaderClientImpl::dispatchWillInsertBody()
757 { 749 {
758 if (m_webFrame->client()) 750 if (m_webFrame->client())
759 m_webFrame->client()->willInsertBody(m_webFrame); 751 m_webFrame->client()->willInsertBody(m_webFrame);
760 } 752 }
761 753
762 } // namespace WebKit 754 } // namespace WebKit
OLDNEW
« Source/core/fetch/ResourceFetcher.h ('K') | « Source/web/FrameLoaderClientImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698