| 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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 media_stream_manager, | 781 media_stream_manager, |
| 782 AudioMirroringManager::GetInstance(), | 782 AudioMirroringManager::GetInstance(), |
| 783 BrowserMainLoop::GetInstance()->user_input_monitor())); | 783 BrowserMainLoop::GetInstance()->user_input_monitor())); |
| 784 // The AudioRendererHost needs to be available for lookup, so it's | 784 // The AudioRendererHost needs to be available for lookup, so it's |
| 785 // stashed in a member variable. | 785 // stashed in a member variable. |
| 786 audio_renderer_host_ = new AudioRendererHost( | 786 audio_renderer_host_ = new AudioRendererHost( |
| 787 GetID(), | 787 GetID(), |
| 788 audio_manager, | 788 audio_manager, |
| 789 AudioMirroringManager::GetInstance(), | 789 AudioMirroringManager::GetInstance(), |
| 790 media_internals, | 790 media_internals, |
| 791 media_stream_manager); | 791 media_stream_manager, |
| 792 browser_context->GetResourceContext()->GetMediaDeviceIDSalt()); |
| 792 AddFilter(audio_renderer_host_.get()); | 793 AddFilter(audio_renderer_host_.get()); |
| 793 AddFilter( | 794 AddFilter( |
| 794 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); | 795 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); |
| 795 AddFilter(new VideoCaptureHost(media_stream_manager)); | 796 AddFilter(new VideoCaptureHost(media_stream_manager)); |
| 796 AddFilter(new AppCacheDispatcherHost( | 797 AddFilter(new AppCacheDispatcherHost( |
| 797 storage_partition_impl_->GetAppCacheService(), | 798 storage_partition_impl_->GetAppCacheService(), |
| 798 GetID())); | 799 GetID())); |
| 799 AddFilter(new ClipboardMessageFilter); | 800 AddFilter(new ClipboardMessageFilter); |
| 800 AddFilter(new DOMStorageMessageFilter( | 801 AddFilter(new DOMStorageMessageFilter( |
| 801 storage_partition_impl_->GetDOMStorageContext())); | 802 storage_partition_impl_->GetDOMStorageContext())); |
| (...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2455 if (worker_ref_count_ == 0) | 2456 if (worker_ref_count_ == 0) |
| 2456 Cleanup(); | 2457 Cleanup(); |
| 2457 } | 2458 } |
| 2458 | 2459 |
| 2459 void RenderProcessHostImpl::GetAudioOutputControllers( | 2460 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2460 const GetAudioOutputControllersCallback& callback) const { | 2461 const GetAudioOutputControllersCallback& callback) const { |
| 2461 audio_renderer_host()->GetOutputControllers(callback); | 2462 audio_renderer_host()->GetOutputControllers(callback); |
| 2462 } | 2463 } |
| 2463 | 2464 |
| 2464 } // namespace content | 2465 } // namespace content |
| OLD | NEW |