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

Unified Diff: media/audio/audio_device_thread.h

Issue 2076423004: Remove calls to MessageLoop::current() in media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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();

Powered by Google App Engine
This is Rietveld 408576698