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

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

Issue 483523006: Check all settings when checking mic and camera access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 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 #include <algorithm> 10 #include <algorithm>
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698