Chromium Code Reviews| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 366 } | 366 } |
| 367 | 367 |
| 368 // Called when a particular resource load completes | 368 // Called when a particular resource load completes |
| 369 void FrameLoaderClientImpl::dispatchDidFinishLoading(DocumentLoader* loader, | 369 void FrameLoaderClientImpl::dispatchDidFinishLoading(DocumentLoader* loader, |
| 370 unsigned long identifier) | 370 unsigned long identifier) |
| 371 { | 371 { |
| 372 if (m_webFrame->client()) | 372 if (m_webFrame->client()) |
| 373 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier); | 373 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier); |
| 374 } | 374 } |
| 375 | 375 |
| 376 void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad() | 376 void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad(bool empty) |
|
dcheng
2015/07/13 20:53:56
I feel like empty isn't quite descriptive enough.
Nate Chapin
2015/07/13 21:13:28
I changed the chromium-side to use the name docume
dcheng
2015/07/13 21:23:22
Yes, that seems better.
| |
| 377 { | 377 { |
| 378 if (m_webFrame->client()) | 378 if (m_webFrame->client()) |
| 379 m_webFrame->client()->didFinishDocumentLoad(m_webFrame); | 379 m_webFrame->client()->didFinishDocumentLoad(m_webFrame, empty); |
| 380 } | 380 } |
| 381 | 381 |
| 382 void FrameLoaderClientImpl::dispatchDidLoadResourceFromMemoryCache(const Resourc eRequest& request, const ResourceResponse& response) | 382 void FrameLoaderClientImpl::dispatchDidLoadResourceFromMemoryCache(const Resourc eRequest& request, const ResourceResponse& response) |
| 383 { | 383 { |
| 384 if (m_webFrame->client()) | 384 if (m_webFrame->client()) |
| 385 m_webFrame->client()->didLoadResourceFromMemoryCache(m_webFrame, Wrapped ResourceRequest(request), WrappedResourceResponse(response)); | 385 m_webFrame->client()->didLoadResourceFromMemoryCache(m_webFrame, Wrapped ResourceRequest(request), WrappedResourceResponse(response)); |
| 386 } | 386 } |
| 387 | 387 |
| 388 void FrameLoaderClientImpl::dispatchDidHandleOnloadEvents() | 388 void FrameLoaderClientImpl::dispatchDidHandleOnloadEvents() |
| 389 { | 389 { |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 958 | 958 |
| 959 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) | 959 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) |
| 960 { | 960 { |
| 961 if (m_webFrame->client()) { | 961 if (m_webFrame->client()) { |
| 962 m_webFrame->client()->suddenTerminationDisablerChanged( | 962 m_webFrame->client()->suddenTerminationDisablerChanged( |
| 963 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); | 963 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); |
| 964 } | 964 } |
| 965 } | 965 } |
| 966 | 966 |
| 967 } // namespace blink | 967 } // namespace blink |
| OLD | NEW |