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

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

Issue 83023005: Add VideoTrackSink interface to content/public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added AddToVideoTrack 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
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_SINK_H_
6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_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/public/renderer/media_stream_sink.h"
12
13 namespace media {
14 class VideoFrame;
15 }
16
17 namespace blink {
18 class WebMediaStreamTrack;
19 }
20
21 namespace content {
22
23 class CONTENT_EXPORT MediaStreamVideoSink : public MediaStreamSink {
Alpha Left Google 2013/11/27 22:13:15 I think we should document the threading requireme
perkj_chrome 2013/11/28 13:32:45 Done.
24 public:
25 virtual void OnVideoFrame(const scoped_refptr<media::VideoFrame>& frame) = 0;
26
27 protected:
28 virtual ~MediaStreamVideoSink() {}
29 };
30
31 // An implementation of MediaStreamVideoSink should call AddToVideoTrack when it
32 // is ready to receive data from a video track. Before the implementation is
33 // destroyed, RemoveFromVideoTrack must be called.
34 CONTENT_EXPORT void AddToVideoTrack(MediaStreamVideoSink* sink,
Alpha Left Google 2013/11/27 22:13:15 We should document the threading requirement of th
perkj_chrome 2013/11/28 13:32:45 Done.
35 const blink::WebMediaStreamTrack& track);
no longer working on chromium 2013/11/28 15:12:34 nit, add and empty line.
36 CONTENT_EXPORT void RemoveFromVideoTrack(
37 MediaStreamVideoSink* sink,
38 const blink::WebMediaStreamTrack& track);
39
40 } // namespace content
41
42 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698