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

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

Issue 2821203005: Add a mojo implementation of AudioOutputIPC. (Closed)
Patch Set: Created 3 years, 8 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 #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 <memory> 11 #include <memory>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/cancelable_callback.h" 16 #include "base/cancelable_callback.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/memory_coordinator_client.h" 18 #include "base/memory/memory_coordinator_client.h"
19 #include "base/memory/memory_pressure_listener.h" 19 #include "base/memory/memory_pressure_listener.h"
20 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
21 #include "base/metrics/field_trial.h" 21 #include "base/metrics/field_trial.h"
22 #include "base/metrics/user_metrics_action.h" 22 #include "base/metrics/user_metrics_action.h"
23 #include "base/observer_list.h" 23 #include "base/observer_list.h"
24 #include "base/optional.h"
24 #include "base/strings/string16.h" 25 #include "base/strings/string16.h"
25 #include "base/threading/thread_checker.h" 26 #include "base/threading/thread_checker.h"
26 #include "base/timer/timer.h" 27 #include "base/timer/timer.h"
27 #include "build/build_config.h" 28 #include "build/build_config.h"
28 #include "components/variations/child_process_field_trial_syncer.h" 29 #include "components/variations/child_process_field_trial_syncer.h"
29 #include "content/child/child_thread_impl.h" 30 #include "content/child/child_thread_impl.h"
30 #include "content/child/memory/child_memory_coordinator_impl.h" 31 #include "content/child/memory/child_memory_coordinator_impl.h"
31 #include "content/common/associated_interface_registry_impl.h" 32 #include "content/common/associated_interface_registry_impl.h"
32 #include "content/common/content_export.h" 33 #include "content/common/content_export.h"
33 #include "content/common/frame.mojom.h" 34 #include "content/common/frame.mojom.h"
34 #include "content/common/frame_replication_state.h" 35 #include "content/common/frame_replication_state.h"
35 #include "content/common/frame_sink_provider.mojom.h" 36 #include "content/common/frame_sink_provider.mojom.h"
36 #include "content/common/render_frame_message_filter.mojom.h" 37 #include "content/common/render_frame_message_filter.mojom.h"
37 #include "content/common/render_message_filter.mojom.h" 38 #include "content/common/render_message_filter.mojom.h"
38 #include "content/common/renderer.mojom.h" 39 #include "content/common/renderer.mojom.h"
39 #include "content/common/storage_partition_service.mojom.h" 40 #include "content/common/storage_partition_service.mojom.h"
40 #include "content/public/renderer/render_thread.h" 41 #include "content/public/renderer/render_thread.h"
41 #include "content/renderer/gpu/compositor_dependencies.h" 42 #include "content/renderer/gpu/compositor_dependencies.h"
42 #include "content/renderer/layout_test_dependencies.h" 43 #include "content/renderer/layout_test_dependencies.h"
44 #include "content/renderer/media/audio_ipc_factory.h"
43 #include "gpu/ipc/client/gpu_channel_host.h" 45 #include "gpu/ipc/client/gpu_channel_host.h"
44 #include "media/media_features.h" 46 #include "media/media_features.h"
45 #include "mojo/public/cpp/bindings/associated_binding.h" 47 #include "mojo/public/cpp/bindings/associated_binding.h"
46 #include "mojo/public/cpp/bindings/binding.h" 48 #include "mojo/public/cpp/bindings/binding.h"
47 #include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h" 49 #include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h"
48 #include "net/base/network_change_notifier.h" 50 #include "net/base/network_change_notifier.h"
49 #include "third_party/WebKit/public/platform/WebConnectionType.h" 51 #include "third_party/WebKit/public/platform/WebConnectionType.h"
50 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul er.h" 52 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul er.h"
51 #include "third_party/WebKit/public/web/WebMemoryStatistics.h" 53 #include "third_party/WebKit/public/web/WebMemoryStatistics.h"
52 #include "ui/gfx/native_widget_types.h" 54 #include "ui/gfx/native_widget_types.h"
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 // Dispatches all P2P sockets. 633 // Dispatches all P2P sockets.
632 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_; 634 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_;
633 635
634 // Used for communicating registering AEC dump consumers with the browser and 636 // Used for communicating registering AEC dump consumers with the browser and
635 // receving AEC dump file handles when AEC dump is enabled. An AEC dump is 637 // receving AEC dump file handles when AEC dump is enabled. An AEC dump is
636 // diagnostic audio data for WebRTC stored locally when enabled by the user in 638 // diagnostic audio data for WebRTC stored locally when enabled by the user in
637 // chrome://webrtc-internals. 639 // chrome://webrtc-internals.
638 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_; 640 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_;
639 #endif 641 #endif
640 642
643 // Provides MojoAudioOutputIPC objects for audio output devices.
644 base::Optional<AudioIPCFactory> audio_ipc_factory_;
o1ka 2017/04/20 10:36:00 unique_ptr? Comment for it and |audio_message_fil
Max Morin 2017/05/05 13:10:59 Changed to be a member.
Max Morin 2017/05/05 14:06:14 Oh, actually I left it as an optional since it's n
645
641 // Used on the render thread. 646 // Used on the render thread.
642 std::unique_ptr<VideoCaptureImplManager> vc_manager_; 647 std::unique_ptr<VideoCaptureImplManager> vc_manager_;
643 648
644 std::unique_ptr<ui::ChildSharedBitmapManager> shared_bitmap_manager_; 649 std::unique_ptr<ui::ChildSharedBitmapManager> shared_bitmap_manager_;
645 650
646 // The count of RenderWidgets running through this thread. 651 // The count of RenderWidgets running through this thread.
647 int widget_count_; 652 int widget_count_;
648 653
649 // The count of hidden RenderWidgets running through this thread. 654 // The count of hidden RenderWidgets running through this thread.
650 int hidden_widget_count_; 655 int hidden_widget_count_;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 798 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
794 }; 799 };
795 800
796 #if defined(COMPILER_MSVC) 801 #if defined(COMPILER_MSVC)
797 #pragma warning(pop) 802 #pragma warning(pop)
798 #endif 803 #endif
799 804
800 } // namespace content 805 } // namespace content
801 806
802 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 807 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698