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

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

Issue 1171953002: Add IPC interface for switching the audio output device for a given audio stream in the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviewers' comments Created 5 years, 6 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 media_stream_manager, 788 media_stream_manager,
789 AudioMirroringManager::GetInstance(), 789 AudioMirroringManager::GetInstance(),
790 BrowserMainLoop::GetInstance()->user_input_monitor())); 790 BrowserMainLoop::GetInstance()->user_input_monitor()));
791 // The AudioRendererHost needs to be available for lookup, so it's 791 // The AudioRendererHost needs to be available for lookup, so it's
792 // stashed in a member variable. 792 // stashed in a member variable.
793 audio_renderer_host_ = new AudioRendererHost( 793 audio_renderer_host_ = new AudioRendererHost(
794 GetID(), 794 GetID(),
795 audio_manager, 795 audio_manager,
796 AudioMirroringManager::GetInstance(), 796 AudioMirroringManager::GetInstance(),
797 media_internals, 797 media_internals,
798 media_stream_manager); 798 media_stream_manager,
799 browser_context->GetResourceContext()->GetMediaDeviceIDSalt());
799 AddFilter(audio_renderer_host_.get()); 800 AddFilter(audio_renderer_host_.get());
800 AddFilter( 801 AddFilter(
801 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); 802 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager()));
802 AddFilter(new VideoCaptureHost(media_stream_manager)); 803 AddFilter(new VideoCaptureHost(media_stream_manager));
803 AddFilter(new AppCacheDispatcherHost( 804 AddFilter(new AppCacheDispatcherHost(
804 storage_partition_impl_->GetAppCacheService(), 805 storage_partition_impl_->GetAppCacheService(),
805 GetID())); 806 GetID()));
806 AddFilter(new ClipboardMessageFilter); 807 AddFilter(new ClipboardMessageFilter);
807 AddFilter(new DOMStorageMessageFilter( 808 AddFilter(new DOMStorageMessageFilter(
808 storage_partition_impl_->GetDOMStorageContext())); 809 storage_partition_impl_->GetDOMStorageContext()));
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
2503 void RenderProcessHostImpl::GetAudioOutputControllers( 2504 void RenderProcessHostImpl::GetAudioOutputControllers(
2504 const GetAudioOutputControllersCallback& callback) const { 2505 const GetAudioOutputControllersCallback& callback) const {
2505 audio_renderer_host()->GetOutputControllers(callback); 2506 audio_renderer_host()->GetOutputControllers(callback);
2506 } 2507 }
2507 2508
2508 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2509 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2509 return bluetooth_dispatcher_host_.get(); 2510 return bluetooth_dispatcher_host_.get();
2510 } 2511 }
2511 2512
2512 } // namespace content 2513 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698