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

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

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 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SOURCE_H_
6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SOURCE_H_
perkj_chrome 2013/12/18 08:15:10 Why does the source have to be in content public?
Ronghua Wu (Left Chromium) 2013/12/18 21:22:23 I don't really know what is the content public abo
7
8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h"
11 #include "content/public/renderer/media_stream_sink.h"
12 #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
13
14 namespace media {
15 class VideoFrame;
16 }
17
18 namespace blink {
19 class WebMediaStreamTrack;
20 }
21
22 namespace content {
23
24 class MediaStreamVideoSink;
25
26 // MediaStreamVideoSink is an interface used for sending video frames to a
perkj_chrome 2013/12/18 08:15:10 update the comment.
Ronghua Wu (Left Chromium) 2013/12/18 21:22:23 Done.
27 // Media Stream Video Track.
28 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html
29 // All methods calls will be done from the main render thread.
30 class CONTENT_EXPORT MediaStreamVideoSource : public MediaStreamSink {
perkj_chrome 2013/12/18 08:15:10 Should this inherit from MediaStreamSourceExtraDat
Jói 2013/12/18 13:47:07 I agree we might want to hold off on inheriting fr
Ronghua Wu (Left Chromium) 2013/12/18 21:22:23 Ok. Inheriting from MediaStreamSourceExtraData ins
31 public:
32 bool Register(MediaStreamVideoSink* track,
perkj_chrome 2013/12/18 08:15:10 One thing that came up yesterday was applyConstrai
perkj_chrome 2013/12/18 08:15:10 Comment on thread requirements please. Here and th
Jói 2013/12/18 13:47:07 If MediaStreamVideoTrack has some methods that a s
Ronghua Wu (Left Chromium) 2013/12/18 21:22:23 It's at the beginning of the class.
Ronghua Wu (Left Chromium) 2013/12/18 21:22:23 Ok. I thought we are not suppose to reopen the cam
33 const blink::WebMediaConstraints& constrains);
34 bool Unregister(MediaStreamVideoSink* track);
35
36 protected:
37 // An implementation of MediaStreamVideoSource should call OnVideoFrame when
38 // it is ready to send a frame to video tracks.
39 virtual void OnVideoFrame(const scoped_refptr<media::VideoFrame>& frame);
40 virtual ~MediaStreamVideoSource();
41 };
42
43
44 } // namespace content
45
46 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698