diff options
author | dalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-27 09:26:46 +0000 |
---|---|---|
committer | dalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-27 09:26:46 +0000 |
commit | 484f6e7240eacbbe35e0d67c82e2ddf2275e4c9a (patch) | |
tree | ac8df1d0446837ab926ca99c5349de9a9c465230 /media/audio | |
parent | d519d39a623ff08da101e6f0fd7e633e10b7f0f6 (diff) | |
download | chromium_src-484f6e7240eacbbe35e0d67c82e2ddf2275e4c9a.zip chromium_src-484f6e7240eacbbe35e0d67c82e2ddf2275e4c9a.tar.gz chromium_src-484f6e7240eacbbe35e0d67c82e2ddf2275e4c9a.tar.bz2 |
Convert a couple raw MessageLoopProxy* to scoped_refptr&.
Per style guide and sanity. Found while refactoring the virtual
input stream to use FakeAudioConsumer.
BUG=none
TEST=compile.
Review URL: https://chromiumcodereview.appspot.com/13006017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio')
-rw-r--r-- | media/audio/virtual_audio_input_stream.cc | 3 | ||||
-rw-r--r-- | media/audio/virtual_audio_input_stream.h | 9 | ||||
-rw-r--r-- | media/audio/virtual_audio_output_stream_unittest.cc | 3 |
3 files changed, 9 insertions, 6 deletions
diff --git a/media/audio/virtual_audio_input_stream.cc b/media/audio/virtual_audio_input_stream.cc index 84bcd2a..31daef7 100644 --- a/media/audio/virtual_audio_input_stream.cc +++ b/media/audio/virtual_audio_input_stream.cc @@ -49,7 +49,8 @@ class LoopbackAudioConverter : public AudioConverter::InputCallback { }; VirtualAudioInputStream::VirtualAudioInputStream( - const AudioParameters& params, base::MessageLoopProxy* message_loop, + const AudioParameters& params, + const scoped_refptr<base::MessageLoopProxy>& message_loop, const AfterCloseCallback& after_close_cb) : message_loop_(message_loop), after_close_cb_(after_close_cb), diff --git a/media/audio/virtual_audio_input_stream.h b/media/audio/virtual_audio_input_stream.h index 8846566..339e633 100644 --- a/media/audio/virtual_audio_input_stream.h +++ b/media/audio/virtual_audio_input_stream.h @@ -35,9 +35,10 @@ class MEDIA_EXPORT VirtualAudioInputStream : public AudioInputStream { // Construct a target for audio loopback which mixes multiple data streams // into a single stream having the given |params|. - VirtualAudioInputStream(const AudioParameters& params, - base::MessageLoopProxy* message_loop, - const AfterCloseCallback& after_close_cb); + VirtualAudioInputStream( + const AudioParameters& params, + const scoped_refptr<base::MessageLoopProxy>& message_loop, + const AfterCloseCallback& after_close_cb); virtual ~VirtualAudioInputStream(); @@ -73,7 +74,7 @@ class MEDIA_EXPORT VirtualAudioInputStream : public AudioInputStream { // Stop() is called. void ReadAudio(); - base::MessageLoopProxy* const message_loop_; + const scoped_refptr<base::MessageLoopProxy> message_loop_; AfterCloseCallback after_close_cb_; diff --git a/media/audio/virtual_audio_output_stream_unittest.cc b/media/audio/virtual_audio_output_stream_unittest.cc index 6fd68f1..3eee9f1 100644 --- a/media/audio/virtual_audio_output_stream_unittest.cc +++ b/media/audio/virtual_audio_output_stream_unittest.cc @@ -26,7 +26,8 @@ const AudioParameters kParams( class MockVirtualAudioInputStream : public VirtualAudioInputStream { public: - explicit MockVirtualAudioInputStream(base::MessageLoopProxy* message_loop) + explicit MockVirtualAudioInputStream( + const scoped_refptr<base::MessageLoopProxy>& message_loop) : VirtualAudioInputStream( kParams, message_loop, |