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

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

Issue 54863002: Implement a salt for MediaSource IDs that can be cleared by a user. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed jois nit. Created 7 years 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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 GetID(), browser_context->GetGeolocationPermissionContext())); 662 GetID(), browser_context->GetGeolocationPermissionContext()));
663 } 663 }
664 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); 664 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get());
665 AddFilter(gpu_message_filter_); 665 AddFilter(gpu_message_filter_);
666 #if defined(ENABLE_WEBRTC) 666 #if defined(ENABLE_WEBRTC)
667 AddFilter(new WebRTCIdentityServiceHost( 667 AddFilter(new WebRTCIdentityServiceHost(
668 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); 668 GetID(), storage_partition_impl_->GetWebRTCIdentityStore()));
669 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); 669 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID());
670 AddFilter(peer_connection_tracker_host_.get()); 670 AddFilter(peer_connection_tracker_host_.get());
671 AddFilter(new MediaStreamDispatcherHost( 671 AddFilter(new MediaStreamDispatcherHost(
672 GetID(), media_stream_manager)); 672 GetID(), browser_context->GetResourceContext(), media_stream_manager));
673 AddFilter( 673 AddFilter(
674 new DeviceRequestMessageFilter(resource_context, media_stream_manager)); 674 new DeviceRequestMessageFilter(resource_context, media_stream_manager));
675 #endif 675 #endif
676 #if defined(ENABLE_PLUGINS) 676 #if defined(ENABLE_PLUGINS)
677 AddFilter(new PepperRendererConnection(GetID())); 677 AddFilter(new PepperRendererConnection(GetID()));
678 #endif 678 #endif
679 #if defined(ENABLE_INPUT_SPEECH) 679 #if defined(ENABLE_INPUT_SPEECH)
680 AddFilter(new InputTagSpeechDispatcherHost( 680 AddFilter(new InputTagSpeechDispatcherHost(
681 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); 681 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext()));
682 #endif 682 #endif
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1898 // Skip widgets in other processes. 1898 // Skip widgets in other processes.
1899 if (widget->GetProcess()->GetID() != GetID()) 1899 if (widget->GetProcess()->GetID() != GetID())
1900 continue; 1900 continue;
1901 1901
1902 RenderViewHost* rvh = RenderViewHost::From(widget); 1902 RenderViewHost* rvh = RenderViewHost::From(widget);
1903 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1903 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1904 } 1904 }
1905 } 1905 }
1906 1906
1907 } // namespace content 1907 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_host_unittest.cc ('k') | content/browser/resource_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698