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

Unified Diff: media/audio/audio_manager.h

Issue 9255017: Add thread safety to AudioManagerBase to protect access to the audio thread member variable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix style issue Created 8 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_low_latency_input_output_unittest.cc ('k') | media/audio/audio_manager_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager.h
diff --git a/media/audio/audio_manager.h b/media/audio/audio_manager.h
index fd59486a3727691b16e2b474a113d0071f642242..b1ca2174afad61deca5fbaef0c5c6d395bf27b6b 100644
--- a/media/audio/audio_manager.h
+++ b/media/audio/audio_manager.h
@@ -16,6 +16,9 @@
class AudioInputStream;
class AudioOutputStream;
class MessageLoop;
+namespace base {
+class MessageLoopProxy;
+}
// Manages all audio resources. In particular it owns the AudioOutputStream
// objects. Provides some convenience functions that avoid the need to provide
@@ -121,7 +124,7 @@ class MEDIA_EXPORT AudioManager
virtual bool IsRecordingInProcess() = 0;
// Returns message loop used for audio IO.
- virtual MessageLoop* GetMessageLoop() = 0;
+ virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() = 0;
protected:
// Called from Create() to initialize the instance.
« no previous file with comments | « media/audio/audio_low_latency_input_output_unittest.cc ('k') | media/audio/audio_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698