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

Unified Diff: content/renderer/media/video_track_adapter.h

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 years, 7 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: content/renderer/media/video_track_adapter.h
diff --git a/content/renderer/media/video_track_adapter.h b/content/renderer/media/video_track_adapter.h
index 56aaa6a839711bea9032bf6f3bb5b00eb09de5c3..179deb8cebddcfb3bbde9abcd5a4b695bea55ee7 100644
--- a/content/renderer/media/video_track_adapter.h
+++ b/content/renderer/media/video_track_adapter.h
@@ -30,7 +30,7 @@ class VideoTrackAdapter
typedef base::Callback<void(bool mute_state)> OnMutedCallback;
explicit VideoTrackAdapter(
- const scoped_refptr<base::MessageLoopProxy>& io_message_loop);
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner);
// Register |track| to receive video frames in |frame_callback| with
// a resolution within the boundaries of the arguments.
@@ -52,9 +52,9 @@ class VideoTrackAdapter
const scoped_refptr<media::VideoFrame>& frame,
const base::TimeTicks& estimated_capture_time);
- const scoped_refptr<base::MessageLoopProxy>& io_message_loop() {
+ base::SingleThreadTaskRunner* io_task_runner() const {
DCHECK(thread_checker_.CalledOnValidThread());
- return io_message_loop_;
+ return io_task_runner_.get();
}
// Start monitor that frames are delivered to this object. I.E, that
@@ -90,7 +90,7 @@ class VideoTrackAdapter
// |thread_checker_| is bound to the main render thread.
base::ThreadChecker thread_checker_;
- const scoped_refptr<base::MessageLoopProxy> io_message_loop_;
+ const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
// |renderer_task_runner_| is used to ensure that
// VideoCaptureDeliverFrameCB is released on the main render thread.
« no previous file with comments | « content/renderer/media/video_capture_impl_manager_unittest.cc ('k') | content/renderer/media/video_track_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698