| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |