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

Side by Side Diff: content/renderer/media/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_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h"
11 #include "content/renderer/media/media_stream_source_extra_data.h"
12 #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
13 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
14
15 namespace media {
16 class VideoFrame;
17 }
18
19 namespace content {
20
21 // MediaStreamVideoSource is an interface used for sending video frames to a
22 // MediaStreamVideoTrack.
23 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html
24 // All methods calls will be done from the main render thread.
25 class CONTENT_EXPORT MediaStreamVideoSource
26 : public MediaStreamSourceExtraData {
27 public:
28 void AddTrack(const blink::WebMediaStreamTrack& track,
29 const blink::WebMediaConstraints& constrains);
30
31 void RemoveTrack(const blink::WebMediaStreamTrack& track);
32
33 // Delivers |frame| to registered tracks according to their constraints.
34 virtual void PutVideoFrame(const scoped_refptr<media::VideoFrame>& frame);
35
36 virtual ~MediaStreamVideoSource();
37 };
38
39
Jói 2013/12/19 12:06:23 nit: Just one blank line.
Ronghua Wu (Left Chromium) 2013/12/19 20:04:16 Done.
40 } // namespace content
41
42 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698