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

Side by Side Diff: Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp

Issue 13934004: Plumb an event through to content/ that is sent just before 'onload'. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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
« no previous file with comments | « Source/WebKit/chromium/src/FrameLoaderClientImpl.h ('k') | no next file » | 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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 { 476 {
477 if (m_webFrame->client()) { 477 if (m_webFrame->client()) {
478 WrappedResourceRequest webreq(request); 478 WrappedResourceRequest webreq(request);
479 WrappedResourceResponse webresp(response); 479 WrappedResourceResponse webresp(response);
480 m_webFrame->client()->didLoadResourceFromMemoryCache( 480 m_webFrame->client()->didLoadResourceFromMemoryCache(
481 m_webFrame, webreq, webresp); 481 m_webFrame, webreq, webresp);
482 } 482 }
483 return false; // Do not suppress remaining notifications 483 return false; // Do not suppress remaining notifications
484 } 484 }
485 485
486 void FrameLoaderClientImpl::dispatchWillHandleOnloadEvents()
487 {
488 if (m_webFrame->client())
489 m_webFrame->client()->willHandleOnloadEvents(m_webFrame);
490 }
491
486 void FrameLoaderClientImpl::dispatchDidHandleOnloadEvents() 492 void FrameLoaderClientImpl::dispatchDidHandleOnloadEvents()
487 { 493 {
488 if (m_webFrame->client()) 494 if (m_webFrame->client())
489 m_webFrame->client()->didHandleOnloadEvents(m_webFrame); 495 m_webFrame->client()->didHandleOnloadEvents(m_webFrame);
490 } 496 }
491 497
492 // Redirect Tracking 498 // Redirect Tracking
493 // ================= 499 // =================
494 // We want to keep track of the chain of redirects that occur during page 500 // We want to keep track of the chain of redirects that occur during page
495 // loading. There are two types of redirects, server redirects which are HTTP 501 // loading. There are two types of redirects, server redirects which are HTTP
(...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 } 1694 }
1689 #endif 1695 #endif
1690 1696
1691 void FrameLoaderClientImpl::dispatchWillInsertBody() 1697 void FrameLoaderClientImpl::dispatchWillInsertBody()
1692 { 1698 {
1693 if (m_webFrame->client()) 1699 if (m_webFrame->client())
1694 m_webFrame->client()->willInsertBody(m_webFrame); 1700 m_webFrame->client()->willInsertBody(m_webFrame);
1695 } 1701 }
1696 1702
1697 } // namespace WebKit 1703 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/FrameLoaderClientImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698