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

Side by Side Diff: content/renderer/media/media_stream_video_track.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_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_vector.h"
10 #include "base/threading/thread_checker.h"
11 #include "content/common/content_export.h"
12 #include "content/public/renderer/media_stream_video_sink.h"
13 #include "content/renderer/media/media_stream_track_extra_data.h"
14
15 namespace webrtc {
16 class VideoTrackInterface;
17 }
18
19 namespace content {
20
21 class WebRtcVideoSinkAdapter;
22
23 class CONTENT_EXPORT MediaStreamVideoTrack : public MediaStreamTrackExtraData {
tommi (sloooow) - chröme 2013/11/27 16:53:07 comments about how this class is used and what it
perkj_chrome 2013/11/28 13:32:45 Done.
24 public:
25 explicit MediaStreamVideoTrack(webrtc::VideoTrackInterface* track);
26 virtual ~MediaStreamVideoTrack();
27 void AddSink(MediaStreamVideoSink* sink);
28 void RemoveSink(MediaStreamVideoSink* sink);
29
30 private:
31 // Used to DCHECK that we are called on the correct thread.
32 base::ThreadChecker thread_checker_;
33 // The webrtc video track.
34 webrtc::VideoTrackInterface* video_track_;
35 ScopedVector<WebRtcVideoSinkAdapter> sinks_;
36
37 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack);
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698