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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 785 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
786 AddFilter(gpu_message_filter_); | 786 AddFilter(gpu_message_filter_); |
787 #if defined(ENABLE_WEBRTC) | 787 #if defined(ENABLE_WEBRTC) |
788 AddFilter(new WebRTCIdentityServiceHost( | 788 AddFilter(new WebRTCIdentityServiceHost( |
789 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); | 789 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); |
790 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 790 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
791 AddFilter(peer_connection_tracker_host_.get()); | 791 AddFilter(peer_connection_tracker_host_.get()); |
792 AddFilter(new MediaStreamDispatcherHost( | 792 AddFilter(new MediaStreamDispatcherHost( |
793 GetID(), | 793 GetID(), |
794 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), | 794 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), |
795 media_stream_manager, | 795 media_stream_manager)); |
796 resource_context)); | |
797 AddFilter(new DeviceRequestMessageFilter( | 796 AddFilter(new DeviceRequestMessageFilter( |
798 resource_context, media_stream_manager, GetID())); | 797 resource_context, media_stream_manager, GetID())); |
799 AddFilter(new MediaStreamTrackMetricsHost()); | 798 AddFilter(new MediaStreamTrackMetricsHost()); |
800 #endif | 799 #endif |
801 #if defined(ENABLE_PLUGINS) | 800 #if defined(ENABLE_PLUGINS) |
802 AddFilter(new PepperRendererConnection(GetID())); | 801 AddFilter(new PepperRendererConnection(GetID())); |
803 #endif | 802 #endif |
804 AddFilter(new SpeechRecognitionDispatcherHost( | 803 AddFilter(new SpeechRecognitionDispatcherHost( |
805 GetID(), storage_partition_impl_->GetURLRequestContext())); | 804 GetID(), storage_partition_impl_->GetURLRequestContext())); |
806 AddFilter(new FileAPIMessageFilter( | 805 AddFilter(new FileAPIMessageFilter( |
(...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2353 } | 2352 } |
2354 | 2353 |
2355 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( | 2354 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( |
2356 gfx::GpuMemoryBufferType type, | 2355 gfx::GpuMemoryBufferType type, |
2357 const gfx::GpuMemoryBufferId& id) { | 2356 const gfx::GpuMemoryBufferId& id) { |
2358 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2357 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2359 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); | 2358 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); |
2360 } | 2359 } |
2361 | 2360 |
2362 } // namespace content | 2361 } // namespace content |
OLD | NEW |