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_RENDERER_MEDIA_VIDEO_TRACK_H_ | |
| 6 #define CONTENT_RENDERER_MEDIA_VIDEO_TRACK_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "base/memory/ref_counted.h" | |
| 10 #include "base/memory/scoped_vector.h" | |
| 11 #include "content/common/content_export.h" | |
| 12 #include "content/public/renderer/media/video_track_sink.h" | |
| 13 #include "content/renderer/media/media_stream_track_extra_data.h" | |
| 14 | |
| 15 namespace blink { | |
| 16 class WebMediaStreamTrack; | |
| 17 } | |
| 18 | |
| 19 namespace webrtc { | |
| 20 class VideoTrackInterface; | |
| 21 } | |
| 22 | |
| 23 namespace content { | |
| 24 | |
| 25 class WebRtcVideoSinkAdapter; | |
| 26 | |
| 27 class CONTENT_EXPORT VideoTrack : public MediaStreamTrackExtraData { | |
| 28 public: | |
| 29 VideoTrack(webrtc::VideoTrackInterface* track); | |
|
no longer working on chromium
2013/11/25 13:55:07
nit, explicit
perkj_chrome
2013/11/26 09:16:38
Done.
| |
| 30 virtual ~VideoTrack(); | |
| 31 void RegisterSink(VideoTrackSink* sink); | |
| 32 void UnRegisterSink(VideoTrackSink* sink); | |
| 33 | |
| 34 private: | |
| 35 // The webrtc video track. | |
| 36 webrtc::VideoTrackInterface* video_track_; | |
| 37 ScopedVector<WebRtcVideoSinkAdapter> sinks_; | |
|
no longer working on chromium
2013/11/25 13:55:07
so we are creating one WebRtcVideoSinkAdapter for
perkj_chrome
2013/11/26 09:16:38
Yes- that is the end goal. But that requires huge
| |
| 38 | |
| 39 DISALLOW_COPY_AND_ASSIGN(VideoTrack); | |
| 40 }; | |
| 41 | |
| 42 } // namespace content | |
| 43 | |
| 44 #endif // CONTENT_RENDERER_MEDIA_VIDEO_TRACK_H_ | |
| OLD | NEW |