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

Unified Diff: content/renderer/media/video_track.h

Issue 83023005: Add VideoTrackSink interface to content/public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/video_track.h
diff --git a/content/renderer/media/video_track.h b/content/renderer/media/video_track.h
new file mode 100644
index 0000000000000000000000000000000000000000..6c38e0816d8667ce6027d43ba104db3d53a9cc8d
--- /dev/null
+++ b/content/renderer/media/video_track.h
@@ -0,0 +1,44 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_MEDIA_VIDEO_TRACK_H_
+#define CONTENT_RENDERER_MEDIA_VIDEO_TRACK_H_
+
+#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_vector.h"
+#include "content/common/content_export.h"
+#include "content/public/renderer/media/video_track_sink.h"
+#include "content/renderer/media/media_stream_track_extra_data.h"
+
+namespace blink {
+class WebMediaStreamTrack;
+}
+
+namespace webrtc {
+class VideoTrackInterface;
+}
+
+namespace content {
+
+class WebRtcVideoSinkAdapter;
+
+class CONTENT_EXPORT VideoTrack : public MediaStreamTrackExtraData {
+ public:
+ 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.
+ virtual ~VideoTrack();
+ void RegisterSink(VideoTrackSink* sink);
+ void UnRegisterSink(VideoTrackSink* sink);
+
+ private:
+ // The webrtc video track.
+ webrtc::VideoTrackInterface* video_track_;
+ 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
+
+ DISALLOW_COPY_AND_ASSIGN(VideoTrack);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_MEDIA_VIDEO_TRACK_H_

Powered by Google App Engine
This is Rietveld 408576698