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

Side by Side Diff: content/public/renderer/media_stream_video_source.cc

Issue 99113003: Define the interface for MediaStreamVideoSource. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/public/renderer/media_stream_video_source.h"
6
7 #include "base/logging.h"
8 #include "content/public/renderer/media_stream_video_sink.h"
9
10 namespace content {
11
12 bool MediaStreamVideoSource::Register(
13 MediaStreamVideoSink* track,
14 const blink::WebMediaConstraints& constrains) {
perkj_chrome 2013/12/18 08:15:10 indentation
Ronghua Wu (Left Chromium) 2013/12/18 21:22:23 Done.
15 // TODO(ronghuawu): Put |track| in the registered tracks list. Will later
16 // deliver frames to it according to |constrains|.
17 return true;
18 }
19
20 bool MediaStreamVideoSource::Unregister(MediaStreamVideoSink* track) {
21 // TODO(ronghuawu): Remove |track| from the list, i.e. will stop delivering
22 // frame to |track|.
23 return true;
24 }
25
26 void MediaStreamVideoSource::OnVideoFrame(
27 const scoped_refptr<media::VideoFrame>& frame) {
28 // TODO(ronghuawu): Deliver |frame| to all the registered tracks.
29 }
30
31 MediaStreamVideoSource::~MediaStreamVideoSource() {
32 }
33
34 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698