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

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

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

Powered by Google App Engine
This is Rietveld 408576698