| Index: content/browser/renderer_host/media/audio_renderer_host.h
|
| diff --git a/content/browser/renderer_host/media/audio_renderer_host.h b/content/browser/renderer_host/media/audio_renderer_host.h
|
| index ad03140fb07232ec6e57edbc6761167d774cad9b..222493d05e435fd4804ec685671ae863f2377d7a 100644
|
| --- a/content/browser/renderer_host/media/audio_renderer_host.h
|
| +++ b/content/browser/renderer_host/media/audio_renderer_host.h
|
| @@ -65,6 +65,7 @@ class AudioParameters;
|
| namespace content {
|
|
|
| class AudioMirroringManager;
|
| +class AudioStreamRegistry;
|
| class MediaStreamManager;
|
|
|
| class CONTENT_EXPORT AudioRendererHost
|
| @@ -73,6 +74,7 @@ class CONTENT_EXPORT AudioRendererHost
|
| public:
|
| // Called from UI thread from the owner of this object.
|
| AudioRendererHost(int render_process_id,
|
| + AudioStreamRegistry* stream_registry,
|
| media::AudioManager* audio_manager,
|
| AudioMirroringManager* mirroring_manager,
|
| MediaStreamManager* media_stream_manager,
|
| @@ -93,7 +95,6 @@ class CONTENT_EXPORT AudioRendererHost
|
| base::SharedMemory* shared_memory,
|
| base::CancelableSyncSocket* foreign_socket) override;
|
| void OnStreamError(int stream_id) override;
|
| - void OnStreamStateChanged(bool is_playing) override;
|
|
|
| // Returns true if any streams managed by this host are actively playing. Can
|
| // be called from any thread.
|
| @@ -177,10 +178,6 @@ class CONTENT_EXPORT AudioRendererHost
|
| // validated. When |is_valid| is false, this calls OnStreamError().
|
| void DidValidateRenderFrame(int stream_id, bool is_valid);
|
|
|
| - // Updates status of stream for AudioStreamMonitor and updates
|
| - // the number of playing streams.
|
| - void StreamStateChanged(int stream_id, bool is_playing);
|
| -
|
| RenderProcessHost::AudioOutputControllerList DoGetOutputControllers() const;
|
|
|
| // Send an error message to the renderer.
|
| @@ -206,6 +203,7 @@ class CONTENT_EXPORT AudioRendererHost
|
| // ID of the RenderProcessHost that owns this instance.
|
| const int render_process_id_;
|
|
|
| + AudioStreamRegistry* stream_registry_;
|
| media::AudioManager* const audio_manager_;
|
| AudioMirroringManager* const mirroring_manager_;
|
|
|
| @@ -215,10 +213,6 @@ class CONTENT_EXPORT AudioRendererHost
|
| // A list of the current open streams.
|
| AudioOutputDelegateVector delegates_;
|
|
|
| - // The number of streams in the playing state. Atomic read safe from any
|
| - // thread, but should only be updated from the IO thread.
|
| - base::AtomicRefCount num_playing_streams_;
|
| -
|
| // Salt required to translate renderer device IDs to raw device unique IDs
|
| std::string salt_;
|
|
|
| @@ -233,10 +227,6 @@ class CONTENT_EXPORT AudioRendererHost
|
| // constructor, but this can be overridden by unit tests.
|
| ValidateRenderFrameIdFunction validate_render_frame_id_function_;
|
|
|
| - // The maximum number of simultaneous streams during the lifetime of this
|
| - // host. Reported as UMA stat at shutdown.
|
| - size_t max_simultaneous_streams_;
|
| -
|
| AudioOutputAuthorizationHandler authorization_handler_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(AudioRendererHost);
|
|
|