| Index: content/browser/renderer_host/media/audio_input_renderer_host.h
|
| diff --git a/content/browser/renderer_host/media/audio_input_renderer_host.h b/content/browser/renderer_host/media/audio_input_renderer_host.h
|
| index eca0a6499be6500d51175484825cb041dcc6cda8..cfebd1648fa5900911899aa807250d40441126d0 100644
|
| --- a/content/browser/renderer_host/media/audio_input_renderer_host.h
|
| +++ b/content/browser/renderer_host/media/audio_input_renderer_host.h
|
| @@ -32,6 +32,7 @@
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/shared_memory.h"
|
| +#include "base/memory/weak_ptr.h"
|
| #include "base/process/process.h"
|
| #include "base/sequenced_task_runner_helpers.h"
|
| #include "content/common/media/audio_messages.h"
|
| @@ -51,6 +52,7 @@ class UserInputMonitor;
|
| namespace content {
|
| class AudioMirroringManager;
|
| class MediaStreamManager;
|
| +class RenderProcessHost;
|
|
|
| class CONTENT_EXPORT AudioInputRendererHost
|
| : public BrowserMessageFilter,
|
| @@ -102,11 +104,16 @@ class CONTENT_EXPORT AudioInputRendererHost
|
| // Called from UI thread from the owner of this object.
|
| // |user_input_monitor| is used for typing detection and can be NULL.
|
| AudioInputRendererHost(int render_process_id,
|
| + RenderProcessHost* render_process_host,
|
| media::AudioManager* audio_manager,
|
| MediaStreamManager* media_stream_manager,
|
| AudioMirroringManager* audio_mirroring_manager,
|
| media::UserInputMonitor* user_input_monitor);
|
|
|
| + // Enable and disable debug recording of input on all audio entries.
|
| + void EnableDebugRecording(const base::FilePath& file);
|
| + void DisableDebugRecording();
|
| +
|
| // BrowserMessageFilter implementation.
|
| void OnChannelClosing() override;
|
| void OnDestruct() const override;
|
| @@ -210,9 +217,24 @@ class CONTENT_EXPORT AudioInputRendererHost
|
| void MaybeUnregisterKeyboardMicStream(
|
| const AudioInputHostMsg_CreateStream_Config& config);
|
|
|
| + void MaybeEnableDebugRecordingForId(int stream_id);
|
| +
|
| + base::FilePath GetDebugRecordingFilePathWithExtensions(
|
| + const base::FilePath& file);
|
| +
|
| + void EnabledDebugRecordingForId(const base::FilePath& file, int stream_id);
|
| +
|
| + void DoEnableDebugRecording(int stream_id, base::File file);
|
| + void DoDisableDebugRecording(int stream_id);
|
| +
|
| + // Delete the debug writer used for debug recordings for |stream_id|.
|
| + void DeleteDebugWriter(int stream_id);
|
| +
|
| // ID of the RenderProcessHost that owns this instance.
|
| const int render_process_id_;
|
|
|
| + RenderProcessHost* render_process_host_;
|
| +
|
| // Used to create an AudioInputController.
|
| media::AudioManager* audio_manager_;
|
|
|
| @@ -229,6 +251,8 @@ class CONTENT_EXPORT AudioInputRendererHost
|
|
|
| scoped_ptr<media::AudioLog> audio_log_;
|
|
|
| + base::WeakPtrFactory<AudioInputRendererHost> weak_factory_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost);
|
| };
|
|
|
|
|