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

Unified Diff: media/audio/fake_audio_consumer.h

Issue 66183002: Replace MessageLoopProxy with SingleThreadTaskRunner for the rest of media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win and audio tests Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/clockless_audio_sink.h ('k') | media/audio/fake_audio_consumer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/fake_audio_consumer.h
diff --git a/media/audio/fake_audio_consumer.h b/media/audio/fake_audio_consumer.h
index 50373565d00a0c228a0f86ec7006a2ee9f07a866..18c552ad97be9593dcdd370dd4bf20f50943df97 100644
--- a/media/audio/fake_audio_consumer.h
+++ b/media/audio/fake_audio_consumer.h
@@ -10,7 +10,7 @@
#include "media/base/media_export.h"
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
}
namespace media {
@@ -21,12 +21,13 @@ class AudioParameters;
// simulate a real time consumer of audio data.
class MEDIA_EXPORT FakeAudioConsumer {
public:
- // |worker_loop| is the loop on which the ReadCB provided to Start() will be
- // executed on. This may or may not be the be for the same thread that
- // invokes the Start/Stop methods.
+ // |worker_task_runner| is the task runner on which the ReadCB provided to
+ // Start() will be executed on. This may or may not be the be for the same
+ // thread that invokes the Start/Stop methods.
// |params| is used to determine the frequency of callbacks.
- FakeAudioConsumer(const scoped_refptr<base::MessageLoopProxy>& worker_loop,
- const AudioParameters& params);
+ FakeAudioConsumer(
+ const scoped_refptr<base::SingleThreadTaskRunner>& worker_task_runner,
+ const AudioParameters& params);
~FakeAudioConsumer();
// Start executing |read_cb| at a regular intervals. Stop() must be called by
« no previous file with comments | « media/audio/clockless_audio_sink.h ('k') | media/audio/fake_audio_consumer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698