| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 5 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| 6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| 11 #include "media/base/filters.h" | 11 #include "media/base/filters.h" |
| 12 #include "media/webm/webm_cluster_parser.h" | 12 #include "media/webm/webm_cluster_parser.h" |
| 13 | 13 |
| 14 struct AVFormatContext; | 14 struct AVFormatContext; |
| 15 | 15 |
| 16 namespace media { | 16 namespace media { |
| 17 | 17 |
| 18 class ChunkDemuxerClient; | 18 class ChunkDemuxerClient; |
| 19 class ChunkDemuxerStream; | 19 class ChunkDemuxerStream; |
| 20 | 20 |
| 21 // Demuxer implementation that allows chunks of WebM media data to be passed | 21 // Demuxer implementation that allows chunks of WebM media data to be passed |
| 22 // from JavaScript to the media stack. | 22 // from JavaScript to the media stack. |
| 23 class ChunkDemuxer : public Demuxer { | 23 class MEDIA_API ChunkDemuxer : public Demuxer { |
| 24 public: | 24 public: |
| 25 explicit ChunkDemuxer(ChunkDemuxerClient* client); | 25 explicit ChunkDemuxer(ChunkDemuxerClient* client); |
| 26 virtual ~ChunkDemuxer(); | 26 virtual ~ChunkDemuxer(); |
| 27 | 27 |
| 28 void Init(PipelineStatusCB cb); | 28 void Init(PipelineStatusCB cb); |
| 29 | 29 |
| 30 // Filter implementation. | 30 // Filter implementation. |
| 31 virtual void set_host(FilterHost* filter_host); | 31 virtual void set_host(FilterHost* filter_host); |
| 32 virtual void Stop(FilterCallback* callback); | 32 virtual void Stop(FilterCallback* callback); |
| 33 virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb); | 33 virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // Should a Seek() call wait for more data before calling the | 99 // Should a Seek() call wait for more data before calling the |
| 100 // callback. | 100 // callback. |
| 101 bool seek_waits_for_data_; | 101 bool seek_waits_for_data_; |
| 102 | 102 |
| 103 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 103 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace media | 106 } // namespace media |
| 107 | 107 |
| 108 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 108 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| OLD | NEW |