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

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

Issue 1229263003: Add an empty boolean to WebFrameClient::didFinishDocumentLoad (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: empty -> documentIsEmpty Created 5 years, 5 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
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 documentIsEmpty)
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, documentIsEmpty) ;
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
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
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698