diff options
Diffstat (limited to 'media/base/text_renderer.h')
-rw-r--r-- | media/base/text_renderer.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/media/base/text_renderer.h b/media/base/text_renderer.h index 532a1fa..3916ef6 100644 --- a/media/base/text_renderer.h +++ b/media/base/text_renderer.h @@ -17,7 +17,7 @@ #include "media/base/text_track.h" namespace base { -class MessageLoopProxy; +class SingleThreadTaskRunner; } namespace media { @@ -30,12 +30,13 @@ class TextTrackConfig; // demuxer text stream. class MEDIA_EXPORT TextRenderer { public: - // |message_loop| is the thread on which TextRenderer will execute. + // |task_runner| is the thread on which TextRenderer will execute. // // |add_text_track_cb] is called when the demuxer requests (via its host) // that a new text track be created. - TextRenderer(const scoped_refptr<base::MessageLoopProxy>& message_loop, - const AddTextTrackCB& add_text_track_cb); + TextRenderer( + const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, + const AddTextTrackCB& add_text_track_cb); ~TextRenderer(); // |ended_cb| is executed when all of the text tracks have reached @@ -101,7 +102,7 @@ class MEDIA_EXPORT TextRenderer { // Utility function to post a read request on |text_stream|. void Read(TextTrackState* state, DemuxerStream* text_stream); - scoped_refptr<base::MessageLoopProxy> message_loop_; + scoped_refptr<base::SingleThreadTaskRunner> task_runner_; base::WeakPtrFactory<TextRenderer> weak_factory_; base::WeakPtr<TextRenderer> weak_this_; const AddTextTrackCB add_text_track_cb_; |