chrome.bluetoothSocket: clean-up Listen functions
[chromium-blink-merge.git] / content / renderer / media / webmediasource_impl.h
blobe9dae1b4d858f4421232d40bc5d403300ef3efe6
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIASOURCE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIASOURCE_IMPL_H_
8 #include <string>
9 #include <vector>
11 #include "media/base/media_log.h"
12 #include "third_party/WebKit/public/platform/WebMediaSource.h"
14 namespace media {
15 class ChunkDemuxer;
18 namespace content {
20 class WebMediaSourceImpl : public blink::WebMediaSource {
21 public:
22 WebMediaSourceImpl(media::ChunkDemuxer* demuxer, media::LogCB log_cb);
23 virtual ~WebMediaSourceImpl();
25 // blink::WebMediaSource implementation.
26 virtual AddStatus addSourceBuffer(
27 const blink::WebString& type,
28 const blink::WebVector<blink::WebString>& codecs,
29 const FrameProcessorChoice frame_processor_choice,
30 blink::WebSourceBuffer** source_buffer);
31 virtual double duration();
32 virtual void setDuration(double duration);
33 virtual void markEndOfStream(EndOfStreamStatus status);
34 virtual void unmarkEndOfStream();
36 private:
37 media::ChunkDemuxer* demuxer_; // Owned by WebMediaPlayerImpl.
38 media::LogCB log_cb_;
40 DISALLOW_COPY_AND_ASSIGN(WebMediaSourceImpl);
43 } // namespace content
45 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIASOURCE_IMPL_H_