| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 | 10 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 void WebFrameLoaderClient::setCopiesOnScroll() { | 148 void WebFrameLoaderClient::setCopiesOnScroll() { |
| 149 // FIXME | 149 // FIXME |
| 150 } | 150 } |
| 151 | 151 |
| 152 void WebFrameLoaderClient::detachedFromParent2() { | 152 void WebFrameLoaderClient::detachedFromParent2() { |
| 153 // Nothing to do here. | 153 // Nothing to do here. |
| 154 } | 154 } |
| 155 | 155 |
| 156 void WebFrameLoaderClient::detachedFromParent3() { | 156 void WebFrameLoaderClient::detachedFromParent3() { |
| 157 // Nothing to do here. | 157 // Close down the proxy. This is done at this point to avoid any problems |
| 158 // when ScriptController::clearWindowShell is called later. |
| 159 webframe_->frame()->script()->proxy()->clearForClose(); |
| 158 } | 160 } |
| 159 | 161 |
| 160 // This function is responsible for associating the |identifier| with a given | 162 // This function is responsible for associating the |identifier| with a given |
| 161 // subresource load. The following functions that accept an |identifier| are | 163 // subresource load. The following functions that accept an |identifier| are |
| 162 // called for each subresource, so they should not be dispatched to the | 164 // called for each subresource, so they should not be dispatched to the |
| 163 // WebFrame. | 165 // WebFrame. |
| 164 void WebFrameLoaderClient::assignIdentifierToInitialRequest( | 166 void WebFrameLoaderClient::assignIdentifierToInitialRequest( |
| 165 unsigned long identifier, DocumentLoader* loader, | 167 unsigned long identifier, DocumentLoader* loader, |
| 166 const ResourceRequest& request) { | 168 const ResourceRequest& request) { |
| 167 WebViewImpl* webview = webframe_->webview_impl(); | 169 WebViewImpl* webview = webframe_->webview_impl(); |
| (...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1623 if (!web_view) { | 1625 if (!web_view) { |
| 1624 return NULL; | 1626 return NULL; |
| 1625 } | 1627 } |
| 1626 WebDevToolsAgentImpl* tools_agent = web_view->GetWebDevToolsAgentImpl(); | 1628 WebDevToolsAgentImpl* tools_agent = web_view->GetWebDevToolsAgentImpl(); |
| 1627 if (tools_agent) { | 1629 if (tools_agent) { |
| 1628 return tools_agent->net_agent_impl(); | 1630 return tools_agent->net_agent_impl(); |
| 1629 } else { | 1631 } else { |
| 1630 return NULL; | 1632 return NULL; |
| 1631 } | 1633 } |
| 1632 } | 1634 } |
| OLD | NEW |