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

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

Issue 499483003: AudioMirroringManager becomes a global LazyInstance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 storage_partition_impl_->GetFileSystemContext(), 748 storage_partition_impl_->GetFileSystemContext(),
749 storage_partition_impl_->GetServiceWorkerContext(), 749 storage_partition_impl_->GetServiceWorkerContext(),
750 get_contexts_callback); 750 get_contexts_callback);
751 751
752 AddFilter(resource_message_filter); 752 AddFilter(resource_message_filter);
753 MediaStreamManager* media_stream_manager = 753 MediaStreamManager* media_stream_manager =
754 BrowserMainLoop::GetInstance()->media_stream_manager(); 754 BrowserMainLoop::GetInstance()->media_stream_manager();
755 AddFilter(new AudioInputRendererHost( 755 AddFilter(new AudioInputRendererHost(
756 audio_manager, 756 audio_manager,
757 media_stream_manager, 757 media_stream_manager,
758 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), 758 AudioMirroringManager::GetInstance(),
759 BrowserMainLoop::GetInstance()->user_input_monitor())); 759 BrowserMainLoop::GetInstance()->user_input_monitor()));
760 // The AudioRendererHost needs to be available for lookup, so it's 760 // The AudioRendererHost needs to be available for lookup, so it's
761 // stashed in a member variable. 761 // stashed in a member variable.
762 audio_renderer_host_ = new AudioRendererHost( 762 audio_renderer_host_ = new AudioRendererHost(
763 GetID(), 763 GetID(),
764 audio_manager, 764 audio_manager,
765 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), 765 AudioMirroringManager::GetInstance(),
766 media_internals, 766 media_internals,
767 media_stream_manager); 767 media_stream_manager);
768 AddFilter(audio_renderer_host_.get()); 768 AddFilter(audio_renderer_host_.get());
769 AddFilter( 769 AddFilter(
770 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); 770 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager()));
771 AddFilter(new VideoCaptureHost(media_stream_manager)); 771 AddFilter(new VideoCaptureHost(media_stream_manager));
772 AddFilter(new AppCacheDispatcherHost( 772 AddFilter(new AppCacheDispatcherHost(
773 storage_partition_impl_->GetAppCacheService(), 773 storage_partition_impl_->GetAppCacheService(),
774 GetID())); 774 GetID()));
775 AddFilter(new ClipboardMessageFilter); 775 AddFilter(new ClipboardMessageFilter);
(...skipping 1577 matching lines...) Expand 10 before | Expand all | Expand 10 after
2353 } 2353 }
2354 2354
2355 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( 2355 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer(
2356 gfx::GpuMemoryBufferType type, 2356 gfx::GpuMemoryBufferType type,
2357 const gfx::GpuMemoryBufferId& id) { 2357 const gfx::GpuMemoryBufferId& id) {
2358 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2358 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2359 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); 2359 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle());
2360 } 2360 }
2361 2361
2362 } // namespace content 2362 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698