Index: media/audio/audio_device_thread.h |
diff --git a/media/audio/audio_device_thread.h b/media/audio/audio_device_thread.h |
index 1ffefc5a29146738e7a3274a2e9b1ef70e0a583a..c3be00e85014970bb4f4b5a14fa10c48d61152fb 100644 |
--- a/media/audio/audio_device_thread.h |
+++ b/media/audio/audio_device_thread.h |
@@ -17,7 +17,7 @@ |
#include "media/base/media_export.h" |
namespace base { |
-class MessageLoop; |
+class SingleThreadTaskRunner; |
} |
namespace media { |
@@ -94,11 +94,11 @@ class MEDIA_EXPORT AudioDeviceThread { |
// In the latter case, the thread will still be running after Stop() |
// returns, but the callback pointer is cleared so no further callbacks will |
// be made (IOW after Stop() returns, it is safe to delete the callback). |
- // The |loop_for_join| parameter is required for asynchronous operation |
+ // The |task_runner_for_join| parameter is required for asynchronous operation |
// in order to join the worker thread and close the thread handle later via a |
// posted task. |
// If set to NULL, function will wait for the thread to exit before returning. |
- void Stop(base::MessageLoop* loop_for_join); |
+ void Stop(scoped_refptr<base::SingleThreadTaskRunner> task_runner_for_join); |
// Returns true if the thread is stopped or stopping. |
bool IsStopped(); |