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

Unified Diff: media/audio/audio_input_controller.h

Issue 2885173002: Make AudioDebugFileWriter create its own file worker thread. (Closed)
Patch Set: Remove useless include Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/audio_debug_recording_manager_unittest.cc ('k') | media/audio/audio_input_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_controller.h
diff --git a/media/audio/audio_input_controller.h b/media/audio/audio_input_controller.h
index 613037ad39407e91edcf2d66855cc1774a2a7f31..ff0022dbee32629e567ac114d657a84d00728bb3 100644
--- a/media/audio/audio_input_controller.h
+++ b/media/audio/audio_input_controller.h
@@ -163,7 +163,6 @@ class MEDIA_EXPORT AudioInputController
// The audio device will be created on the audio thread, and when that is
// done, the event handler will receive an OnCreated() call from that same
// thread. |user_input_monitor| is used for typing detection and can be NULL.
- // |file_task_runner| is used for debug recordings.
// TODO(grunell): Move handling of debug recording to AudioManager.
static scoped_refptr<AudioInputController> Create(
AudioManager* audio_manager,
@@ -173,14 +172,13 @@ class MEDIA_EXPORT AudioInputController
const AudioParameters& params,
const std::string& device_id,
// External synchronous writer for audio controller.
- bool agc_is_enabled,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
+ bool agc_is_enabled);
// Factory method for creating an AudioInputController with an existing
// |stream|. The stream will be opened on the audio thread, and when that is
// done, the event handler will receive an OnCreated() call from that same
// thread. |user_input_monitor| is used for typing detection and can be NULL.
- // |file_task_runner| and |params| are used for debug recordings.
+ // |params| is used for debug recordings.
static scoped_refptr<AudioInputController> CreateForStream(
const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
EventHandler* event_handler,
@@ -188,7 +186,6 @@ class MEDIA_EXPORT AudioInputController
// External synchronous writer for audio controller.
SyncWriter* sync_writer,
UserInputMonitor* user_input_monitor,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
const AudioParameters& params);
// Starts recording using the created audio input stream.
@@ -258,14 +255,12 @@ class MEDIA_EXPORT AudioInputController
};
#endif
- AudioInputController(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- EventHandler* handler,
- SyncWriter* sync_writer,
- UserInputMonitor* user_input_monitor,
- const AudioParameters& params,
- StreamType type,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
+ AudioInputController(scoped_refptr<base::SingleThreadTaskRunner> task_runner,
+ EventHandler* handler,
+ SyncWriter* sync_writer,
+ UserInputMonitor* user_input_monitor,
+ const AudioParameters& params,
+ StreamType type);
virtual ~AudioInputController();
const scoped_refptr<base::SingleThreadTaskRunner>& GetTaskRunnerForTesting()
« no previous file with comments | « media/audio/audio_debug_recording_manager_unittest.cc ('k') | media/audio/audio_input_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698