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 // 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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 738 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
739 AddFilter(gpu_message_filter_); | 739 AddFilter(gpu_message_filter_); |
740 #if defined(ENABLE_WEBRTC) | 740 #if defined(ENABLE_WEBRTC) |
741 AddFilter(new WebRTCIdentityServiceHost( | 741 AddFilter(new WebRTCIdentityServiceHost( |
742 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); | 742 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); |
743 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 743 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
744 AddFilter(peer_connection_tracker_host_.get()); | 744 AddFilter(peer_connection_tracker_host_.get()); |
745 AddFilter(new MediaStreamDispatcherHost( | 745 AddFilter(new MediaStreamDispatcherHost( |
746 GetID(), | 746 GetID(), |
747 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), | 747 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), |
748 media_stream_manager)); | 748 media_stream_manager, |
| 749 resource_context)); |
749 AddFilter(new DeviceRequestMessageFilter( | 750 AddFilter(new DeviceRequestMessageFilter( |
750 resource_context, media_stream_manager, GetID())); | 751 resource_context, media_stream_manager, GetID())); |
751 AddFilter(new MediaStreamTrackMetricsHost()); | 752 AddFilter(new MediaStreamTrackMetricsHost()); |
752 #endif | 753 #endif |
753 #if defined(ENABLE_PLUGINS) | 754 #if defined(ENABLE_PLUGINS) |
754 AddFilter(new PepperRendererConnection(GetID())); | 755 AddFilter(new PepperRendererConnection(GetID())); |
755 #endif | 756 #endif |
756 AddFilter(new SpeechRecognitionDispatcherHost( | 757 AddFilter(new SpeechRecognitionDispatcherHost( |
757 GetID(), storage_partition_impl_->GetURLRequestContext())); | 758 GetID(), storage_partition_impl_->GetURLRequestContext())); |
758 AddFilter(new FileAPIMessageFilter( | 759 AddFilter(new FileAPIMessageFilter( |
(...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2248 void RenderProcessHostImpl::GpuMemoryBufferAllocated( | 2249 void RenderProcessHostImpl::GpuMemoryBufferAllocated( |
2249 IPC::Message* reply, | 2250 IPC::Message* reply, |
2250 const gfx::GpuMemoryBufferHandle& handle) { | 2251 const gfx::GpuMemoryBufferHandle& handle) { |
2251 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2252 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2252 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 2253 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, |
2253 handle); | 2254 handle); |
2254 Send(reply); | 2255 Send(reply); |
2255 } | 2256 } |
2256 | 2257 |
2257 } // namespace content | 2258 } // namespace content |
OLD | NEW |