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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 void FrameLoaderClientImpl::dispatchDidReceiveResponse( | 374 void FrameLoaderClientImpl::dispatchDidReceiveResponse( |
375 const ResourceResponse& response) { | 375 const ResourceResponse& response) { |
376 if (m_webFrame->client()) { | 376 if (m_webFrame->client()) { |
377 WrappedResourceResponse webresp(response); | 377 WrappedResourceResponse webresp(response); |
378 m_webFrame->client()->didReceiveResponse(webresp); | 378 m_webFrame->client()->didReceiveResponse(webresp); |
379 } | 379 } |
380 } | 380 } |
381 | 381 |
382 void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad() { | 382 void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad() { |
383 // TODO(dglazkov): Sadly, workers are WebFrameClients, and they can totally | 383 // TODO(dglazkov): Sadly, workers are WebFrameClients, and they can totally |
384 // destroy themselves when didFinishDocumentLoad is invoked, and in turn destr
oy | 384 // destroy themselves when didFinishDocumentLoad is invoked, and in turn |
385 // the fake WebLocalFrame that they create, which means that you should not | 385 // destroy the fake WebLocalFrame that they create, which means that you |
386 // put any code touching `this` after the two lines below. | 386 // should not put any code touching `this` after the two lines below. |
387 if (m_webFrame->client()) | 387 if (m_webFrame->client()) |
388 m_webFrame->client()->didFinishDocumentLoad(m_webFrame); | 388 m_webFrame->client()->didFinishDocumentLoad(m_webFrame); |
389 } | 389 } |
390 | 390 |
391 void FrameLoaderClientImpl::dispatchDidLoadResourceFromMemoryCache( | 391 void FrameLoaderClientImpl::dispatchDidLoadResourceFromMemoryCache( |
392 const ResourceRequest& request, | 392 const ResourceRequest& request, |
393 const ResourceResponse& response) { | 393 const ResourceResponse& response) { |
394 if (m_webFrame->client()) | 394 if (m_webFrame->client()) |
395 m_webFrame->client()->didLoadResourceFromMemoryCache( | 395 m_webFrame->client()->didLoadResourceFromMemoryCache( |
396 WrappedResourceRequest(request), WrappedResourceResponse(response)); | 396 WrappedResourceRequest(request), WrappedResourceResponse(response)); |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() { | 999 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() { |
1000 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot()) | 1000 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot()) |
1001 ->devToolsAgentImpl(); | 1001 ->devToolsAgentImpl(); |
1002 } | 1002 } |
1003 | 1003 |
1004 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { | 1004 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { |
1005 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); | 1005 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); |
1006 } | 1006 } |
1007 | 1007 |
1008 } // namespace blink | 1008 } // namespace blink |
OLD | NEW |