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

Unified Diff: content/public/renderer/media_stream_video_source.cc

Issue 99113003: Define the interface for MediaStreamVideoSource. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: content/public/renderer/media_stream_video_source.cc
===================================================================
--- content/public/renderer/media_stream_video_source.cc (revision 0)
+++ content/public/renderer/media_stream_video_source.cc (revision 0)
@@ -0,0 +1,34 @@
+// 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.
+
+#include "content/public/renderer/media_stream_video_source.h"
+
+#include "base/logging.h"
+#include "content/public/renderer/media_stream_video_sink.h"
+
+namespace content {
+
+bool MediaStreamVideoSource::Register(
+ MediaStreamVideoSink* track,
+ const blink::WebMediaConstraints& constrains) {
perkj_chrome 2013/12/18 08:15:10 indentation
Ronghua Wu (Left Chromium) 2013/12/18 21:22:23 Done.
+ // TODO(ronghuawu): Put |track| in the registered tracks list. Will later
+ // deliver frames to it according to |constrains|.
+ return true;
+}
+
+bool MediaStreamVideoSource::Unregister(MediaStreamVideoSink* track) {
+ // TODO(ronghuawu): Remove |track| from the list, i.e. will stop delivering
+ // frame to |track|.
+ return true;
+}
+
+void MediaStreamVideoSource::OnVideoFrame(
+ const scoped_refptr<media::VideoFrame>& frame) {
+ // TODO(ronghuawu): Deliver |frame| to all the registered tracks.
+}
+
+MediaStreamVideoSource::~MediaStreamVideoSource() {
+}
+
+} // namespace content
Property changes on: content/public/renderer/media_stream_video_source.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698