Chromium Code Reviews| Index: webkit/media/buffered_data_source.h |
| diff --git a/webkit/media/buffered_data_source.h b/webkit/media/buffered_data_source.h |
| index e01fef7bbc9281f6602e0b9bcc2fb44b1c257768..e7cf05d6898ab1f26eb871b446eb3b6ffafb5b68 100644 |
| --- a/webkit/media/buffered_data_source.h |
| +++ b/webkit/media/buffered_data_source.h |
| @@ -16,7 +16,9 @@ |
| #include "webkit/media/buffered_resource_loader.h" |
| #include "webkit/media/preload.h" |
| -class MessageLoop; |
| +namespace base { |
| +class MessageLoopProxy; |
| +} |
| namespace media { |
| class MediaLog; |
| @@ -35,7 +37,7 @@ class BufferedDataSource : public media::DataSource { |
| // |downloading_cb| will be called whenever the downloading/paused state of |
| // the source changes. |
| - BufferedDataSource(MessageLoop* render_loop, |
| + BufferedDataSource(const scoped_refptr<base::MessageLoopProxy>& render_loop, |
| WebKit::WebFrame* frame, |
| media::MediaLog* media_log, |
| const DownloadingCB& downloading_cb); |
| @@ -179,7 +181,7 @@ class BufferedDataSource : public media::DataSource { |
| int intermediate_read_buffer_size_; |
| // The message loop of the render thread. |
| - MessageLoop* render_loop_; |
| + scoped_refptr<base::MessageLoopProxy> render_loop_; |
|
DaleCurtis
2013/03/01 01:36:08
const since it can't change.
scherkus (not reviewing)
2013/03/01 01:53:15
Done.
|
| // Protects |stop_signal_received_| and |read_op_|. |
| base::Lock lock_; |