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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 10907182: Add UMA counter for hung renderers on cross-site navigation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 } 624 }
625 625
626 int RenderProcessHostImpl::GetNextRoutingID() { 626 int RenderProcessHostImpl::GetNextRoutingID() {
627 return widget_helper_->GetNextRoutingID(); 627 return widget_helper_->GetNextRoutingID();
628 } 628 }
629 629
630 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { 630 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) {
631 widget_helper_->CancelResourceRequests(render_widget_id); 631 widget_helper_->CancelResourceRequests(render_widget_id);
632 } 632 }
633 633
634 void RenderProcessHostImpl::CrossSiteSwapOutACK( 634 void RenderProcessHostImpl::SimulateSwapOutACK(
635 const ViewMsg_SwapOut_Params& params) { 635 const ViewMsg_SwapOut_Params& params) {
636 widget_helper_->CrossSiteSwapOutACK(params); 636 widget_helper_->SimulateSwapOutACK(params);
637 } 637 }
638 638
639 bool RenderProcessHostImpl::WaitForBackingStoreMsg( 639 bool RenderProcessHostImpl::WaitForBackingStoreMsg(
640 int render_widget_id, 640 int render_widget_id,
641 const base::TimeDelta& max_delay, 641 const base::TimeDelta& max_delay,
642 IPC::Message* msg) { 642 IPC::Message* msg) {
643 // The post task to this thread with the process id could be in queue, and we 643 // The post task to this thread with the process id could be in queue, and we
644 // don't want to dispatch a message before then since it will need the handle. 644 // don't want to dispatch a message before then since it will need the handle.
645 if (child_process_launcher_.get() && child_process_launcher_->IsStarting()) 645 if (child_process_launcher_.get() && child_process_launcher_->IsStarting())
646 return false; 646 return false;
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 const gfx::Size& size, 1545 const gfx::Size& size,
1546 int32 gpu_process_host_id) { 1546 int32 gpu_process_host_id) {
1547 TRACE_EVENT0("renderer_host", 1547 TRACE_EVENT0("renderer_host",
1548 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1548 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1549 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1549 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1550 gpu_process_host_id, 1550 gpu_process_host_id,
1551 0); 1551 0);
1552 } 1552 }
1553 1553
1554 } // namespace content 1554 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698