Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |