Index: media/audio/audio_manager.h |
diff --git a/media/audio/audio_manager.h b/media/audio/audio_manager.h |
index b513ec95db868302f44391c4c6865a0a2b44ca87..5bae02092578cafa6133740059ae611580d0ac6a 100644 |
--- a/media/audio/audio_manager.h |
+++ b/media/audio/audio_manager.h |
@@ -112,6 +112,11 @@ class MEDIA_EXPORT AudioManager { |
// Returns message loop used for audio IO. |
virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() = 0; |
+ // Heavyweight tasks should use GetWorkerLoop() instead of GetMessageLoop(). |
+ // On most platforms they are the same, but some share the UI loop with the |
+ // audio IO loop. |
+ virtual scoped_refptr<base::MessageLoopProxy> GetWorkerLoop() = 0; |
+ |
// Allows clients to listen for device state changes; e.g. preferred sample |
// rate or channel layout changes. The typical response to receiving this |
// callback is to recreate the stream. |