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

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

Issue 13932008: Create and add WebRTC filters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/p2p/socket_dispatcher_host.h" 78 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
79 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 79 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
80 #include "content/browser/renderer_host/quota_dispatcher_host.h" 80 #include "content/browser/renderer_host/quota_dispatcher_host.h"
81 #include "content/browser/renderer_host/render_message_filter.h" 81 #include "content/browser/renderer_host/render_message_filter.h"
82 #include "content/browser/renderer_host/render_view_host_delegate.h" 82 #include "content/browser/renderer_host/render_view_host_delegate.h"
83 #include "content/browser/renderer_host/render_view_host_impl.h" 83 #include "content/browser/renderer_host/render_view_host_impl.h"
84 #include "content/browser/renderer_host/render_widget_helper.h" 84 #include "content/browser/renderer_host/render_widget_helper.h"
85 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" 85 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h"
86 #include "content/browser/renderer_host/text_input_client_message_filter.h" 86 #include "content/browser/renderer_host/text_input_client_message_filter.h"
87 #include "content/browser/renderer_host/webrtc_logging_handler_host.h"
87 #include "content/browser/resolve_proxy_msg_helper.h" 88 #include "content/browser/resolve_proxy_msg_helper.h"
88 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" 89 #include "content/browser/speech/input_tag_speech_dispatcher_host.h"
89 #include "content/browser/speech/speech_recognition_dispatcher_host.h" 90 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
90 #include "content/browser/storage_partition_impl.h" 91 #include "content/browser/storage_partition_impl.h"
91 #include "content/browser/tracing/trace_message_filter.h" 92 #include "content/browser/tracing/trace_message_filter.h"
92 #include "content/browser/webui/web_ui_controller_factory_registry.h" 93 #include "content/browser/webui/web_ui_controller_factory_registry.h"
93 #include "content/browser/worker_host/worker_message_filter.h" 94 #include "content/browser/worker_host/worker_message_filter.h"
94 #include "content/browser/worker_host/worker_storage_partition.h" 95 #include "content/browser/worker_host/worker_storage_partition.h"
95 #include "content/common/child_process_host_impl.h" 96 #include "content/common/child_process_host_impl.h"
96 #include "content/common/child_process_messages.h" 97 #include "content/common/child_process_messages.h"
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 channel_->AddFilter(new ResolveProxyMsgHelper( 671 channel_->AddFilter(new ResolveProxyMsgHelper(
671 browser_context->GetRequestContextForRenderProcess(GetID()))); 672 browser_context->GetRequestContextForRenderProcess(GetID())));
672 channel_->AddFilter(new QuotaDispatcherHost( 673 channel_->AddFilter(new QuotaDispatcherHost(
673 GetID(), 674 GetID(),
674 storage_partition_impl_->GetQuotaManager(), 675 storage_partition_impl_->GetQuotaManager(),
675 GetContentClient()->browser()->CreateQuotaPermissionContext())); 676 GetContentClient()->browser()->CreateQuotaPermissionContext()));
676 channel_->AddFilter(new GamepadBrowserMessageFilter()); 677 channel_->AddFilter(new GamepadBrowserMessageFilter());
677 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 678 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
678 channel_->AddFilter(new HistogramMessageFilter()); 679 channel_->AddFilter(new HistogramMessageFilter());
679 channel_->AddFilter(new HyphenatorMessageFilter(this)); 680 channel_->AddFilter(new HyphenatorMessageFilter(this));
681 #if defined(ENABLE_WEBRTC)
682 channel_->AddFilter(new WebRtcLoggingHandlerHost());
683 #endif
680 } 684 }
681 685
682 int RenderProcessHostImpl::GetNextRoutingID() { 686 int RenderProcessHostImpl::GetNextRoutingID() {
683 return widget_helper_->GetNextRoutingID(); 687 return widget_helper_->GetNextRoutingID();
684 } 688 }
685 689
686 void RenderProcessHostImpl::SimulateSwapOutACK( 690 void RenderProcessHostImpl::SimulateSwapOutACK(
687 const ViewMsg_SwapOut_Params& params) { 691 const ViewMsg_SwapOut_Params& params) {
688 widget_helper_->SimulateSwapOutACK(params); 692 widget_helper_->SimulateSwapOutACK(params);
689 } 693 }
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 TRACE_EVENT0("renderer_host", 1727 TRACE_EVENT0("renderer_host",
1724 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1728 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1725 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1729 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1726 ack_params.sync_point = 0; 1730 ack_params.sync_point = 0;
1727 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1731 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1728 gpu_process_host_id, 1732 gpu_process_host_id,
1729 ack_params); 1733 ack_params);
1730 } 1734 }
1731 1735
1732 } // namespace content 1736 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698