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

Unified Diff: content/public/renderer/media/media_track_sink.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/public/renderer/media/media_track_sink.h
diff --git a/content/public/renderer/media/media_track_sink.h b/content/public/renderer/media/media_track_sink.h
new file mode 100644
index 0000000000000000000000000000000000000000..e37b2fbf239a7ba8a144e7a4876d04728d255ab6
--- /dev/null
+++ b/content/public/renderer/media/media_track_sink.h
@@ -0,0 +1,38 @@
+// 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_MEDIA_TRACK_SINK_H_
+#define CONTENT_PUBLIC_RENDERER_MEDIA_MEDIA_TRACK_SINK_H_
+
+#include "base/compiler_specific.h"
+#include "content/common/content_export.h"
+
+namespace blink {
+class WebMediaStreamTrack;
+}
+
+namespace content {
+
+class CONTENT_EXPORT MediaTrackSink {
Jói 2013/11/25 14:06:55 We might want to name this just MediaSink (and Vid
perkj_chrome 2013/11/26 09:16:38 Do we need anything to say that this is related to
+ public:
+
+ // TODO(perkj): Can we use blink::WebMediaStreamSource::ReadyState somehow
Jói 2013/11/25 14:06:55 We can include blink types in content/public/ (see
perkj_chrome 2013/11/26 09:16:38 Done.
+ // and skip ReadyState here and below?
+ enum ReadyState {
+ kLive = 0,
+ kMuted = 1,
+ kEnded = 2
+ };
+ //virtual void OnEnabledChanged(bool enabled) {};
+ virtual void OnSourceChangedState(ReadyState state) {};
no longer working on chromium 2013/11/25 13:55:07 Do the sink need to know the source? or only track
perkj_chrome 2013/11/26 09:16:38 It will problably (as in this cl) need to know the
+
+ ReadyState GetSourceState(const blink::WebMediaStreamTrack& track) const;
Jói 2013/11/25 14:06:55 Once you create the sink, it presumably could stor
perkj_chrome 2013/11/26 09:16:38 We don't need this if we can use the blink readySt
+
+ protected:
+ virtual ~MediaTrackSink() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_MEDIA_MEDIA_TRACK_SINK_H_

Powered by Google App Engine
This is Rietveld 408576698