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

Side by Side Diff: content/renderer/media/mock_media_stream_video_source.cc

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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/mock_media_stream_video_source.h" 5 #include "content/renderer/media/mock_media_stream_video_source.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 attempted_to_start_ = true; 70 attempted_to_start_ = true;
71 frame_callback_ = frame_callback; 71 frame_callback_ = frame_callback;
72 } 72 }
73 73
74 void MockMediaStreamVideoSource::StopSourceImpl() { 74 void MockMediaStreamVideoSource::StopSourceImpl() {
75 } 75 }
76 76
77 void MockMediaStreamVideoSource::DeliverVideoFrame( 77 void MockMediaStreamVideoSource::DeliverVideoFrame(
78 const scoped_refptr<media::VideoFrame>& frame) { 78 const scoped_refptr<media::VideoFrame>& frame) {
79 DCHECK(!frame_callback_.is_null()); 79 DCHECK(!frame_callback_.is_null());
80 io_message_loop()->PostTask( 80 io_task_runner()->PostTask(
81 FROM_HERE, 81 FROM_HERE, base::Bind(frame_callback_, frame, base::TimeTicks()));
82 base::Bind(frame_callback_, frame, base::TimeTicks()));
83 } 82 }
84 83
85 } // namespace content 84 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/midi_message_filter.cc ('k') | content/renderer/media/video_capture_impl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698