| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef WEBKIT_RENDERER_MEDIA_WEBMEDIASOURCECLIENT_IMPL_H_ | |
| 6 #define WEBKIT_RENDERER_MEDIA_WEBMEDIASOURCECLIENT_IMPL_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "media/base/media_log.h" | |
| 12 #include "third_party/WebKit/public/web/WebMediaSourceClient.h" | |
| 13 | |
| 14 namespace media { | |
| 15 class ChunkDemuxer; | |
| 16 } | |
| 17 | |
| 18 namespace webkit_media { | |
| 19 | |
| 20 class WebMediaSourceClientImpl : public WebKit::WebMediaSourceClient { | |
| 21 public: | |
| 22 WebMediaSourceClientImpl(media::ChunkDemuxer* demuxer, media::LogCB log_cb); | |
| 23 virtual ~WebMediaSourceClientImpl(); | |
| 24 | |
| 25 // WebKit::WebMediaSourceClient implementation. | |
| 26 virtual AddStatus addSourceBuffer( | |
| 27 const WebKit::WebString& type, | |
| 28 const WebKit::WebVector<WebKit::WebString>& codecs, | |
| 29 WebKit::WebSourceBuffer** source_buffer) OVERRIDE; | |
| 30 virtual double duration() OVERRIDE; | |
| 31 virtual void setDuration(double duration) OVERRIDE; | |
| 32 virtual void endOfStream(EndOfStreamStatus status) OVERRIDE; | |
| 33 | |
| 34 private: | |
| 35 media::ChunkDemuxer* demuxer_; // Owned by WebMediaPlayerImpl. | |
| 36 media::LogCB log_cb_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(WebMediaSourceClientImpl); | |
| 39 }; | |
| 40 | |
| 41 } // namespace webkit_media | |
| 42 | |
| 43 #endif // WEBKIT_RENDERER_MEDIA_WEBMEDIASOURCECLIENT_IMPL_H_ | |
| OLD | NEW |