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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |