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

Unified Diff: media/audio/audio_debug_recording_helper.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_file_writer_unittest.cc ('k') | media/audio/audio_debug_recording_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_debug_recording_helper.h
diff --git a/media/audio/audio_debug_recording_helper.h b/media/audio/audio_debug_recording_helper.h
index c5611a4842a4706e7d05087abd08a798add1dc37..b0f4c127d232c220ee16b68b28a9205b00b606a5 100644
--- a/media/audio/audio_debug_recording_helper.h
+++ b/media/audio/audio_debug_recording_helper.h
@@ -53,7 +53,6 @@ class MEDIA_EXPORT AudioDebugRecordingHelper
AudioDebugRecordingHelper(
const AudioParameters& params,
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
base::OnceClosure on_destruction_closure);
~AudioDebugRecordingHelper() override;
@@ -76,8 +75,7 @@ class MEDIA_EXPORT AudioDebugRecordingHelper
// Creates an AudioDebugFileWriter. Overridden by test.
virtual std::unique_ptr<AudioDebugFileWriter> CreateAudioDebugFileWriter(
- const AudioParameters& params,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
+ const AudioParameters& params);
const AudioParameters params_;
std::unique_ptr<AudioDebugFileWriter> debug_writer_;
@@ -89,9 +87,6 @@ class MEDIA_EXPORT AudioDebugRecordingHelper
// The task runner for accessing |debug_writer_|.
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
- // Task runner passed to |debug_writer_| to do file output operations on.
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
-
// Runs in destructor if set.
base::OnceClosure on_destruction_closure_;
« no previous file with comments | « media/audio/audio_debug_file_writer_unittest.cc ('k') | media/audio/audio_debug_recording_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698