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

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

Issue 2661743002: PlzNavigate: Invoke didStartProvisionalLoad() when the renderer initiates a navigation in startLoad( (Closed)
Patch Set: Fix build error Created 3 years, 10 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
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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 m_webFrame, WebHistoryItem(item), 399 m_webFrame, WebHistoryItem(item),
400 static_cast<WebHistoryCommitType>(commitType), contentInitiated); 400 static_cast<WebHistoryCommitType>(commitType), contentInitiated);
401 } 401 }
402 402
403 void FrameLoaderClientImpl::dispatchWillCommitProvisionalLoad() { 403 void FrameLoaderClientImpl::dispatchWillCommitProvisionalLoad() {
404 if (m_webFrame->client()) 404 if (m_webFrame->client())
405 m_webFrame->client()->willCommitProvisionalLoad(m_webFrame); 405 m_webFrame->client()->willCommitProvisionalLoad(m_webFrame);
406 } 406 }
407 407
408 void FrameLoaderClientImpl::dispatchDidStartProvisionalLoad() { 408 void FrameLoaderClientImpl::dispatchDidStartProvisionalLoad() {
409 if (m_webFrame->client()) 409 if (m_webFrame->client()) {
410 m_webFrame->client()->didStartProvisionalLoad(m_webFrame); 410 m_webFrame->client()->didStartProvisionalLoad(
411 m_webFrame, m_webFrame->provisionalDataSource()->getRequest());
412 }
411 if (WebDevToolsAgentImpl* devTools = devToolsAgent()) 413 if (WebDevToolsAgentImpl* devTools = devToolsAgent())
412 devTools->didStartProvisionalLoad(m_webFrame->frame()); 414 devTools->didStartProvisionalLoad(m_webFrame->frame());
413 } 415 }
414 416
415 void FrameLoaderClientImpl::dispatchDidReceiveTitle(const String& title) { 417 void FrameLoaderClientImpl::dispatchDidReceiveTitle(const String& title) {
416 if (m_webFrame->client()) 418 if (m_webFrame->client())
417 m_webFrame->client()->didReceiveTitle(m_webFrame, title, 419 m_webFrame->client()->didReceiveTitle(m_webFrame, title,
418 WebTextDirectionLeftToRight); 420 WebTextDirectionLeftToRight);
419 } 421 }
420 422
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { 1001 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) {
1000 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); 1002 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url));
1001 } 1003 }
1002 1004
1003 void FrameLoaderClientImpl::setHasReceivedUserGesture() { 1005 void FrameLoaderClientImpl::setHasReceivedUserGesture() {
1004 if (m_webFrame->client()) 1006 if (m_webFrame->client())
1005 m_webFrame->client()->setHasReceivedUserGesture(); 1007 m_webFrame->client()->setHasReceivedUserGesture();
1006 } 1008 }
1007 1009
1008 } // namespace blink 1010 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698