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

Unified Diff: content/public/renderer/media_stream_sink.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, 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/public/renderer/media_stream_sink.h
diff --git a/content/public/renderer/media_stream_sink.h b/content/public/renderer/media_stream_sink.h
new file mode 100644
index 0000000000000000000000000000000000000000..d910e9c7e69a51b24a4607aa3944add9896f6187
--- /dev/null
+++ b/content/public/renderer/media_stream_sink.h
@@ -0,0 +1,25 @@
+// 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_PUBLIC_RENDERER_MEDIA_STREAM_SINK_H_
+#define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_SINK_H_
+
+#include "base/compiler_specific.h"
+#include "content/common/content_export.h"
+#include "third_party/WebKit/public/platform/WebMediaStreamSource.h"
+
+namespace content {
+
+class CONTENT_EXPORT MediaStreamSink {
tommi (sloooow) - chröme 2013/11/27 16:53:07 t'would be nice to have some comments
perkj_chrome 2013/11/28 13:32:45 Done.
+ public:
+ virtual void OnReadyStateChanged(
+ blink::WebMediaStreamSource::ReadyState state) {}
tommi (sloooow) - chröme 2013/11/27 16:53:07 = 0? since there's only one method in the interfac
Jói 2013/11/27 18:35:51 The interfaces MediaStreamVideoSink and MediaStrea
perkj_chrome 2013/11/28 13:32:45 I agree with Joi. This is not needed by all implem
tommi (sloooow) - chröme 2013/11/28 14:32:21 OK, sounds good.
+
+ protected:
+ virtual ~MediaStreamSink() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_SINK_H_

Powered by Google App Engine
This is Rietveld 408576698