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

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

Issue 15082004: Adds chrome.memoryBenchmarking.heapProfilerDump for the browser process. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Patch Created 7 years, 7 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
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 #include <algorithm> 10 #include <algorithm>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #include "content/browser/renderer_host/database_message_filter.h" 68 #include "content/browser/renderer_host/database_message_filter.h"
69 #include "content/browser/renderer_host/file_utilities_message_filter.h" 69 #include "content/browser/renderer_host/file_utilities_message_filter.h"
70 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" 70 #include "content/browser/renderer_host/gamepad_browser_message_filter.h"
71 #include "content/browser/renderer_host/gpu_message_filter.h" 71 #include "content/browser/renderer_host/gpu_message_filter.h"
72 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 72 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
73 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" 73 #include "content/browser/renderer_host/media/audio_mirroring_manager.h"
74 #include "content/browser/renderer_host/media/audio_renderer_host.h" 74 #include "content/browser/renderer_host/media/audio_renderer_host.h"
75 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" 75 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h"
76 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" 76 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h"
77 #include "content/browser/renderer_host/media/video_capture_host.h" 77 #include "content/browser/renderer_host/media/video_capture_host.h"
78 #include "content/browser/renderer_host/memory_benchmark_message_filter.h"
78 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" 79 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
79 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 80 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
80 #include "content/browser/renderer_host/quota_dispatcher_host.h" 81 #include "content/browser/renderer_host/quota_dispatcher_host.h"
81 #include "content/browser/renderer_host/render_message_filter.h" 82 #include "content/browser/renderer_host/render_message_filter.h"
82 #include "content/browser/renderer_host/render_view_host_delegate.h" 83 #include "content/browser/renderer_host/render_view_host_delegate.h"
83 #include "content/browser/renderer_host/render_view_host_impl.h" 84 #include "content/browser/renderer_host/render_view_host_impl.h"
84 #include "content/browser/renderer_host/render_widget_helper.h" 85 #include "content/browser/renderer_host/render_widget_helper.h"
85 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" 86 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h"
86 #include "content/browser/renderer_host/text_input_client_message_filter.h" 87 #include "content/browser/renderer_host/text_input_client_message_filter.h"
87 #include "content/browser/resolve_proxy_msg_helper.h" 88 #include "content/browser/resolve_proxy_msg_helper.h"
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 channel_->AddFilter(new ResolveProxyMsgHelper( 684 channel_->AddFilter(new ResolveProxyMsgHelper(
684 browser_context->GetRequestContextForRenderProcess(GetID()))); 685 browser_context->GetRequestContextForRenderProcess(GetID())));
685 channel_->AddFilter(new QuotaDispatcherHost( 686 channel_->AddFilter(new QuotaDispatcherHost(
686 GetID(), 687 GetID(),
687 storage_partition_impl_->GetQuotaManager(), 688 storage_partition_impl_->GetQuotaManager(),
688 GetContentClient()->browser()->CreateQuotaPermissionContext())); 689 GetContentClient()->browser()->CreateQuotaPermissionContext()));
689 channel_->AddFilter(new GamepadBrowserMessageFilter()); 690 channel_->AddFilter(new GamepadBrowserMessageFilter());
690 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 691 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
691 channel_->AddFilter(new HistogramMessageFilter()); 692 channel_->AddFilter(new HistogramMessageFilter());
692 channel_->AddFilter(new HyphenatorMessageFilter(this)); 693 channel_->AddFilter(new HyphenatorMessageFilter(this));
694 #if defined(USE_TCMALLOC)
695 channel_->AddFilter(new MemoryBenchmarkMessageFilter());
696 #endif
693 } 697 }
694 698
695 int RenderProcessHostImpl::GetNextRoutingID() { 699 int RenderProcessHostImpl::GetNextRoutingID() {
696 return widget_helper_->GetNextRoutingID(); 700 return widget_helper_->GetNextRoutingID();
697 } 701 }
698 702
699 void RenderProcessHostImpl::SimulateSwapOutACK( 703 void RenderProcessHostImpl::SimulateSwapOutACK(
700 const ViewMsg_SwapOut_Params& params) { 704 const ViewMsg_SwapOut_Params& params) {
701 widget_helper_->SimulateSwapOutACK(params); 705 widget_helper_->SimulateSwapOutACK(params);
702 } 706 }
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1748 TRACE_EVENT0("renderer_host", 1752 TRACE_EVENT0("renderer_host",
1749 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1753 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1750 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1754 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1751 ack_params.sync_point = 0; 1755 ack_params.sync_point = 0;
1752 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1756 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1753 gpu_process_host_id, 1757 gpu_process_host_id,
1754 ack_params); 1758 ack_params);
1755 } 1759 }
1756 1760
1757 } // namespace content 1761 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698