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..b2254a0bfbc248dbbf77633bb06007bb00937ac7 |
--- /dev/null |
+++ b/content/public/renderer/media_stream_sink.h |
@@ -0,0 +1,28 @@ |
+// 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 { |
+ |
+// MediaStreamSink is the base interface for MediaStreamAudioSink and |
+// MediaStreamVideoSink. It allows an implementation to receive notifications |
+// about state changes on a blink::WebMediaStreamSource object. |
Jói
2013/11/28 14:37:17
"on a blink::WebMediaStreamSource object." -> "on
perkj_chrome
2013/11/29 13:29:48
Done.
|
+class CONTENT_EXPORT MediaStreamSink { |
+ public: |
+ virtual void OnReadyStateChanged( |
+ blink::WebMediaStreamSource::ReadyState state) {} |
+ |
+ protected: |
+ virtual ~MediaStreamSink() {} |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_SINK_H_ |