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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 2890753003: Introduce AudioIPCFactory. (Closed)
Patch Set: Dale's comments. Created 3 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
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 aec_dump_message_filter_ = new AecDumpMessageFilter( 718 aec_dump_message_filter_ = new AecDumpMessageFilter(
719 GetIOTaskRunner(), message_loop()->task_runner()); 719 GetIOTaskRunner(), message_loop()->task_runner());
720 720
721 AddFilter(aec_dump_message_filter_.get()); 721 AddFilter(aec_dump_message_filter_.get());
722 722
723 #endif // BUILDFLAG(ENABLE_WEBRTC) 723 #endif // BUILDFLAG(ENABLE_WEBRTC)
724 724
725 audio_input_message_filter_ = new AudioInputMessageFilter(GetIOTaskRunner()); 725 audio_input_message_filter_ = new AudioInputMessageFilter(GetIOTaskRunner());
726 AddFilter(audio_input_message_filter_.get()); 726 AddFilter(audio_input_message_filter_.get());
727 727
728 audio_message_filter_ = new AudioMessageFilter(GetIOTaskRunner()); 728 auto audio_message_filter =
729 AddFilter(audio_message_filter_.get()); 729 base::MakeRefCounted<AudioMessageFilter>(GetIOTaskRunner());
730 AddFilter(audio_message_filter.get());
731 // TODO(maxmorin): Based on a feature flag, don't create the
732 // AudioMessageFilter, making AudioIPCFactory instead use mojo factories.
733 audio_ipc_factory_.emplace(std::move(audio_message_filter),
734 GetIOTaskRunner());
730 735
731 midi_message_filter_ = new MidiMessageFilter(GetIOTaskRunner()); 736 midi_message_filter_ = new MidiMessageFilter(GetIOTaskRunner());
732 AddFilter(midi_message_filter_.get()); 737 AddFilter(midi_message_filter_.get());
733 738
734 AddFilter((new CacheStorageMessageFilter(thread_safe_sender()))->GetFilter()); 739 AddFilter((new CacheStorageMessageFilter(thread_safe_sender()))->GetFilter());
735 740
736 AddFilter((new ServiceWorkerContextMessageFilter())->GetFilter()); 741 AddFilter((new ServiceWorkerContextMessageFilter())->GetFilter());
737 742
738 #if defined(USE_AURA) 743 #if defined(USE_AURA)
739 if (IsRunningInMash()) { 744 if (IsRunningInMash()) {
(...skipping 1743 matching lines...) Expand 10 before | Expand all | Expand 10 after
2483 } 2488 }
2484 } 2489 }
2485 2490
2486 void RenderThreadImpl::OnRendererInterfaceRequest( 2491 void RenderThreadImpl::OnRendererInterfaceRequest(
2487 mojom::RendererAssociatedRequest request) { 2492 mojom::RendererAssociatedRequest request) {
2488 DCHECK(!renderer_binding_.is_bound()); 2493 DCHECK(!renderer_binding_.is_bound());
2489 renderer_binding_.Bind(std::move(request)); 2494 renderer_binding_.Bind(std::move(request));
2490 } 2495 }
2491 2496
2492 } // namespace content 2497 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698