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

Side by Side Diff: content/browser/devtools/render_view_devtools_agent_host.cc

Issue 18339006: Rename RenderViewGone IPC/methods to better reflect reality (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for reviews by creis@ and palmer@. Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/devtools/render_view_devtools_agent_host.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698