OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/devtools/render_view_devtools_agent_host.h" | 5 #include "content/browser/devtools/render_view_devtools_agent_host.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "content/browser/child_process_security_policy_impl.h" | 9 #include "content/browser/child_process_security_policy_impl.h" |
10 #include "content/browser/devtools/devtools_manager_impl.h" | 10 #include "content/browser/devtools/devtools_manager_impl.h" |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 return; | 240 return; |
241 | 241 |
242 if (render_view_host_ == dest_rvh && static_cast<RenderViewHostImpl*>( | 242 if (render_view_host_ == dest_rvh && static_cast<RenderViewHostImpl*>( |
243 render_view_host_)->render_view_termination_status() == | 243 render_view_host_)->render_view_termination_status() == |
244 base::TERMINATION_STATUS_STILL_RUNNING) | 244 base::TERMINATION_STATUS_STILL_RUNNING) |
245 return; | 245 return; |
246 DisconnectRenderViewHost(); | 246 DisconnectRenderViewHost(); |
247 ConnectRenderViewHost(dest_rvh, true); | 247 ConnectRenderViewHost(dest_rvh, true); |
248 } | 248 } |
249 | 249 |
250 void RenderViewDevToolsAgentHost::RenderViewGone( | 250 void RenderViewDevToolsAgentHost::RenderProcessGone( |
251 base::TerminationStatus status) { | 251 base::TerminationStatus status) { |
252 switch(status) { | 252 switch(status) { |
253 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: | 253 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: |
254 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: | 254 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: |
255 case base::TERMINATION_STATUS_PROCESS_CRASHED: | 255 case base::TERMINATION_STATUS_PROCESS_CRASHED: |
256 RenderViewCrashed(); | 256 RenderViewCrashed(); |
257 break; | 257 break; |
258 default: | 258 default: |
259 break; | 259 break; |
260 } | 260 } |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 if (render_view_host_) | 339 if (render_view_host_) |
340 GetContentClient()->browser()->ClearCache(render_view_host_); | 340 GetContentClient()->browser()->ClearCache(render_view_host_); |
341 } | 341 } |
342 | 342 |
343 void RenderViewDevToolsAgentHost::OnClearBrowserCookies() { | 343 void RenderViewDevToolsAgentHost::OnClearBrowserCookies() { |
344 if (render_view_host_) | 344 if (render_view_host_) |
345 GetContentClient()->browser()->ClearCookies(render_view_host_); | 345 GetContentClient()->browser()->ClearCookies(render_view_host_); |
346 } | 346 } |
347 | 347 |
348 } // namespace content | 348 } // namespace content |
OLD | NEW |