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

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

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_frame_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('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 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map>
11 #include <memory> 12 #include <memory>
12 #include <set> 13 #include <set>
13 #include <string> 14 #include <string>
15 #include <utility>
14 #include <vector> 16 #include <vector>
15 17
16 #include "base/cancelable_callback.h" 18 #include "base/cancelable_callback.h"
17 #include "base/macros.h" 19 #include "base/macros.h"
18 #include "base/memory/memory_coordinator_client.h" 20 #include "base/memory/memory_coordinator_client.h"
19 #include "base/memory/memory_pressure_listener.h" 21 #include "base/memory/memory_pressure_listener.h"
20 #include "base/memory/ref_counted.h" 22 #include "base/memory/ref_counted.h"
21 #include "base/metrics/field_trial.h" 23 #include "base/metrics/field_trial.h"
22 #include "base/metrics/user_metrics_action.h" 24 #include "base/metrics/user_metrics_action.h"
23 #include "base/observer_list.h" 25 #include "base/observer_list.h"
26 #include "base/optional.h"
24 #include "base/strings/string16.h" 27 #include "base/strings/string16.h"
25 #include "base/threading/thread_checker.h" 28 #include "base/threading/thread_checker.h"
26 #include "base/time/time.h" 29 #include "base/time/time.h"
27 #include "base/timer/timer.h" 30 #include "base/timer/timer.h"
28 #include "build/build_config.h" 31 #include "build/build_config.h"
29 #include "components/variations/child_process_field_trial_syncer.h" 32 #include "components/variations/child_process_field_trial_syncer.h"
30 #include "content/child/child_thread_impl.h" 33 #include "content/child/child_thread_impl.h"
31 #include "content/child/memory/child_memory_coordinator_impl.h" 34 #include "content/child/memory/child_memory_coordinator_impl.h"
32 #include "content/common/associated_interface_registry_impl.h" 35 #include "content/common/associated_interface_registry_impl.h"
33 #include "content/common/content_export.h" 36 #include "content/common/content_export.h"
34 #include "content/common/frame.mojom.h" 37 #include "content/common/frame.mojom.h"
35 #include "content/common/frame_replication_state.h" 38 #include "content/common/frame_replication_state.h"
36 #include "content/common/frame_sink_provider.mojom.h" 39 #include "content/common/frame_sink_provider.mojom.h"
37 #include "content/common/render_frame_message_filter.mojom.h" 40 #include "content/common/render_frame_message_filter.mojom.h"
38 #include "content/common/render_message_filter.mojom.h" 41 #include "content/common/render_message_filter.mojom.h"
39 #include "content/common/renderer.mojom.h" 42 #include "content/common/renderer.mojom.h"
40 #include "content/common/storage_partition_service.mojom.h" 43 #include "content/common/storage_partition_service.mojom.h"
41 #include "content/public/renderer/render_thread.h" 44 #include "content/public/renderer/render_thread.h"
42 #include "content/renderer/gpu/compositor_dependencies.h" 45 #include "content/renderer/gpu/compositor_dependencies.h"
43 #include "content/renderer/layout_test_dependencies.h" 46 #include "content/renderer/layout_test_dependencies.h"
47 #include "content/renderer/media/audio_ipc_factory.h"
44 #include "gpu/ipc/client/gpu_channel_host.h" 48 #include "gpu/ipc/client/gpu_channel_host.h"
45 #include "media/media_features.h" 49 #include "media/media_features.h"
46 #include "mojo/public/cpp/bindings/associated_binding.h" 50 #include "mojo/public/cpp/bindings/associated_binding.h"
47 #include "mojo/public/cpp/bindings/binding.h" 51 #include "mojo/public/cpp/bindings/binding.h"
48 #include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h" 52 #include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h"
49 #include "net/base/network_change_notifier.h" 53 #include "net/base/network_change_notifier.h"
50 #include "net/nqe/effective_connection_type.h" 54 #include "net/nqe/effective_connection_type.h"
51 #include "third_party/WebKit/public/platform/WebConnectionType.h" 55 #include "third_party/WebKit/public/platform/WebConnectionType.h"
52 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul er.h" 56 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul er.h"
53 #include "third_party/WebKit/public/web/WebMemoryStatistics.h" 57 #include "third_party/WebKit/public/web/WebMemoryStatistics.h"
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 } 317 }
314 318
315 DomStorageDispatcher* dom_storage_dispatcher() const { 319 DomStorageDispatcher* dom_storage_dispatcher() const {
316 return dom_storage_dispatcher_.get(); 320 return dom_storage_dispatcher_.get();
317 } 321 }
318 322
319 AudioInputMessageFilter* audio_input_message_filter() { 323 AudioInputMessageFilter* audio_input_message_filter() {
320 return audio_input_message_filter_.get(); 324 return audio_input_message_filter_.get();
321 } 325 }
322 326
323 AudioMessageFilter* audio_message_filter() {
324 return audio_message_filter_.get();
325 }
326
327 MidiMessageFilter* midi_message_filter() { 327 MidiMessageFilter* midi_message_filter() {
328 return midi_message_filter_.get(); 328 return midi_message_filter_.get();
329 } 329 }
330 330
331 #if defined(OS_ANDROID) 331 #if defined(OS_ANDROID)
332 SynchronousCompositorFilter* sync_compositor_message_filter() { 332 SynchronousCompositorFilter* sync_compositor_message_filter() {
333 return sync_compositor_message_filter_.get(); 333 return sync_compositor_message_filter_.get();
334 } 334 }
335 335
336 scoped_refptr<StreamTextureFactory> GetStreamTexureFactory(); 336 scoped_refptr<StreamTextureFactory> GetStreamTexureFactory();
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; 613 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_;
614 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_; 614 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_;
615 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; 615 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_;
616 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_; 616 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_;
617 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_; 617 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_;
618 618
619 // Used on the renderer and IPC threads. 619 // Used on the renderer and IPC threads.
620 scoped_refptr<BlobMessageFilter> blob_message_filter_; 620 scoped_refptr<BlobMessageFilter> blob_message_filter_;
621 scoped_refptr<DBMessageFilter> db_message_filter_; 621 scoped_refptr<DBMessageFilter> db_message_filter_;
622 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; 622 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_;
623 scoped_refptr<AudioMessageFilter> audio_message_filter_;
624 scoped_refptr<MidiMessageFilter> midi_message_filter_; 623 scoped_refptr<MidiMessageFilter> midi_message_filter_;
625 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; 624 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_;
626 625
627 std::unique_ptr<BrowserPluginManager> browser_plugin_manager_; 626 std::unique_ptr<BrowserPluginManager> browser_plugin_manager_;
628 627
629 #if BUILDFLAG(ENABLE_WEBRTC) 628 #if BUILDFLAG(ENABLE_WEBRTC)
630 std::unique_ptr<PeerConnectionDependencyFactory> peer_connection_factory_; 629 std::unique_ptr<PeerConnectionDependencyFactory> peer_connection_factory_;
631 630
632 // This is used to communicate to the browser process the status 631 // This is used to communicate to the browser process the status
633 // of all the peer connections created in the renderer. 632 // of all the peer connections created in the renderer.
634 std::unique_ptr<PeerConnectionTracker> peer_connection_tracker_; 633 std::unique_ptr<PeerConnectionTracker> peer_connection_tracker_;
635 634
636 // Dispatches all P2P sockets. 635 // Dispatches all P2P sockets.
637 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_; 636 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_;
638 637
639 // Used for communicating registering AEC dump consumers with the browser and 638 // Used for communicating registering AEC dump consumers with the browser and
640 // receving AEC dump file handles when AEC dump is enabled. An AEC dump is 639 // receving AEC dump file handles when AEC dump is enabled. An AEC dump is
641 // diagnostic audio data for WebRTC stored locally when enabled by the user in 640 // diagnostic audio data for WebRTC stored locally when enabled by the user in
642 // chrome://webrtc-internals. 641 // chrome://webrtc-internals.
643 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_; 642 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_;
644 #endif 643 #endif
645 644
645 // Provides AudioOutputIPC objects for audio output devices. It either uses
646 // an AudioMessageFilter for this or provides MojoAudioOutputIPC objects.
647 // Initialized in Init.
648 base::Optional<AudioIPCFactory> audio_ipc_factory_;
649
646 // Used on the render thread. 650 // Used on the render thread.
647 std::unique_ptr<VideoCaptureImplManager> vc_manager_; 651 std::unique_ptr<VideoCaptureImplManager> vc_manager_;
648 652
649 std::unique_ptr<ui::ChildSharedBitmapManager> shared_bitmap_manager_; 653 std::unique_ptr<ui::ChildSharedBitmapManager> shared_bitmap_manager_;
650 654
651 // The count of RenderWidgets running through this thread. 655 // The count of RenderWidgets running through this thread.
652 int widget_count_; 656 int widget_count_;
653 657
654 // The count of hidden RenderWidgets running through this thread. 658 // The count of hidden RenderWidgets running through this thread.
655 int hidden_widget_count_; 659 int hidden_widget_count_;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 806 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
803 }; 807 };
804 808
805 #if defined(COMPILER_MSVC) 809 #if defined(COMPILER_MSVC)
806 #pragma warning(pop) 810 #pragma warning(pop)
807 #endif 811 #endif
808 812
809 } // namespace content 813 } // namespace content
810 814
811 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 815 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698