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

Unified Diff: media/audio/audio_manager_base.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/audio_manager.h ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager_base.h
diff --git a/media/audio/audio_manager_base.h b/media/audio/audio_manager_base.h
index 09b021a0d2b2605faf1619b42de330246634b5a9..e1ec49ba02c78deae8432ebb68b8a31462c46775 100644
--- a/media/audio/audio_manager_base.h
+++ b/media/audio/audio_manager_base.h
@@ -48,8 +48,9 @@ class MEDIA_EXPORT AudioManagerBase : public AudioManager {
virtual ~AudioManagerBase();
- virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() OVERRIDE;
- virtual scoped_refptr<base::MessageLoopProxy> GetWorkerLoop() OVERRIDE;
+ virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() OVERRIDE;
+ virtual scoped_refptr<base::SingleThreadTaskRunner> GetWorkerTaskRunner()
+ OVERRIDE;
virtual base::string16 GetAudioInputDeviceModel() OVERRIDE;
@@ -99,7 +100,7 @@ class MEDIA_EXPORT AudioManagerBase : public AudioManager {
virtual AudioInputStream* MakeLowLatencyInputStream(
const AudioParameters& params, const std::string& device_id) = 0;
- // Listeners will be notified on the AudioManager::GetMessageLoop() loop.
+ // Listeners will be notified on the GetTaskRunner() task runner.
virtual void AddOutputDeviceChangeListener(
AudioDeviceListener* listener) OVERRIDE;
virtual void RemoveOutputDeviceChangeListener(
@@ -187,10 +188,10 @@ class MEDIA_EXPORT AudioManagerBase : public AudioManager {
// Thread used to interact with audio streams created by this audio manager.
base::Thread audio_thread_;
- // The message loop of the audio thread this object runs on. Used for internal
+ // The task runner of the audio thread this object runs on. Used for internal
// tasks which run on the audio thread even after Shutdown() has been started
- // and GetMessageLoop() starts returning NULL.
- scoped_refptr<base::MessageLoopProxy> message_loop_;
+ // and GetTaskRunner() starts returning NULL.
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
// Map of cached AudioOutputDispatcher instances. Must only be touched
// from the audio thread (no locking).
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698