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

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

Issue 2578983003: Add AudioStreamRegistry. Move stream counting logic (Closed)
Patch Set: Thread checks. Created 3 years, 11 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_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_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 <map>
12 #include <memory> 12 #include <memory>
13 #include <queue> 13 #include <queue>
14 #include <string> 14 #include <string>
15 15
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "base/process/process.h" 19 #include "base/process/process.h"
20 #include "base/single_thread_task_runner.h" 20 #include "base/single_thread_task_runner.h"
21 #include "base/synchronization/waitable_event.h" 21 #include "base/synchronization/waitable_event.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "content/browser/child_process_launcher.h" 23 #include "content/browser/child_process_launcher.h"
24 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 24 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
25 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p rovider_impl.h" 25 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p rovider_impl.h"
26 #include "content/browser/renderer_host/media/audio_stream_registry_impl.h"
26 #include "content/browser/webrtc/webrtc_eventlog_host.h" 27 #include "content/browser/webrtc/webrtc_eventlog_host.h"
27 #include "content/common/associated_interfaces.mojom.h" 28 #include "content/common/associated_interfaces.mojom.h"
28 #include "content/common/content_export.h" 29 #include "content/common/content_export.h"
29 #include "content/common/indexed_db/indexed_db.mojom.h" 30 #include "content/common/indexed_db/indexed_db.mojom.h"
30 #include "content/common/renderer.mojom.h" 31 #include "content/common/renderer.mojom.h"
31 #include "content/public/browser/render_process_host.h" 32 #include "content/public/browser/render_process_host.h"
32 #include "content/public/common/service_manager_connection.h" 33 #include "content/public/common/service_manager_connection.h"
33 #include "ipc/ipc_channel_proxy.h" 34 #include "ipc/ipc_channel_proxy.h"
34 #include "ipc/ipc_platform_file.h" 35 #include "ipc/ipc_platform_file.h"
35 #include "media/media_features.h" 36 #include "media/media_features.h"
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 bool gpu_observer_registered_; 538 bool gpu_observer_registered_;
538 539
539 // Set if a call to Cleanup is required once the RenderProcessHostImpl is no 540 // Set if a call to Cleanup is required once the RenderProcessHostImpl is no
540 // longer within the RenderProcessHostObserver::RenderProcessExited callbacks. 541 // longer within the RenderProcessHostObserver::RenderProcessExited callbacks.
541 bool delayed_cleanup_needed_; 542 bool delayed_cleanup_needed_;
542 543
543 // Indicates whether RenderProcessHostImpl is currently iterating and calling 544 // Indicates whether RenderProcessHostImpl is currently iterating and calling
544 // through RenderProcessHostObserver::RenderProcessExited. 545 // through RenderProcessHostObserver::RenderProcessExited.
545 bool within_process_died_observer_; 546 bool within_process_died_observer_;
546 547
548 const AudioStreamRegistryImpl::UniquePtr audio_stream_registry_;
549
547 scoped_refptr<AudioRendererHost> audio_renderer_host_; 550 scoped_refptr<AudioRendererHost> audio_renderer_host_;
548 551
549 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; 552 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_;
550 553
551 #if BUILDFLAG(ENABLE_WEBRTC) 554 #if BUILDFLAG(ENABLE_WEBRTC)
552 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; 555 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_;
553 556
554 // Must be accessed on UI thread. 557 // Must be accessed on UI thread.
555 std::vector<int> aec_dump_consumers_; 558 std::vector<int> aec_dump_consumers_;
556 559
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 instance_weak_factory_; 607 instance_weak_factory_;
605 608
606 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 609 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
607 610
608 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 611 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
609 }; 612 };
610 613
611 } // namespace content 614 } // namespace content
612 615
613 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 616 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698