Chromium Code Reviews| 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..043da98b0aee82796799046f7062c33932cc1a92 |
| --- /dev/null |
| +++ b/content/public/renderer/media_stream_sink.h |
| @@ -0,0 +1,29 @@ |
| +// 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 or such an |
| +// object underlying a blink::WebMediaStreamTrack. |
| +class CONTENT_EXPORT MediaStreamSink { |
|
jam
2013/12/03 00:48:20
nit: I dont' think CONTENT_EXPORT is needed
perkj_chrome
2013/12/03 16:14:17
Done.
|
| + public: |
| + virtual void OnReadyStateChanged( |
| + blink::WebMediaStreamSource::ReadyState state) {} |
| + |
| + protected: |
| + virtual ~MediaStreamSink() {} |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_SINK_H_ |