| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "media/base/demuxer.h" | 21 #include "media/base/demuxer.h" |
| 22 #include "media/base/demuxer_stream.h" | 22 #include "media/base/demuxer_stream.h" |
| 23 #include "media/base/media_tracks.h" | 23 #include "media/base/media_tracks.h" |
| 24 #include "media/base/ranges.h" | 24 #include "media/base/ranges.h" |
| 25 #include "media/base/stream_parser.h" | 25 #include "media/base/stream_parser.h" |
| 26 #include "media/filters/source_buffer_state.h" | 26 #include "media/filters/source_buffer_state.h" |
| 27 #include "media/filters/source_buffer_stream.h" | 27 #include "media/filters/source_buffer_stream.h" |
| 28 | 28 |
| 29 namespace media { | 29 namespace media { |
| 30 | 30 |
| 31 class FFmpegURLProtocol; | |
| 32 | |
| 33 class MEDIA_EXPORT ChunkDemuxerStream : public DemuxerStream { | 31 class MEDIA_EXPORT ChunkDemuxerStream : public DemuxerStream { |
| 34 public: | 32 public: |
| 35 typedef std::deque<scoped_refptr<StreamParserBuffer> > BufferQueue; | 33 typedef std::deque<scoped_refptr<StreamParserBuffer> > BufferQueue; |
| 36 | 34 |
| 37 ChunkDemuxerStream(Type type, MediaTrack::Id media_track_id); | 35 ChunkDemuxerStream(Type type, MediaTrack::Id media_track_id); |
| 38 ~ChunkDemuxerStream() override; | 36 ~ChunkDemuxerStream() override; |
| 39 | 37 |
| 40 // ChunkDemuxerStream control methods. | 38 // ChunkDemuxerStream control methods. |
| 41 void StartReturningData(); | 39 void StartReturningData(); |
| 42 void AbortReads(); | 40 void AbortReads(); |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 int detected_text_track_count_; | 441 int detected_text_track_count_; |
| 444 | 442 |
| 445 std::map<MediaTrack::Id, DemuxerStream*> track_id_to_demux_stream_map_; | 443 std::map<MediaTrack::Id, DemuxerStream*> track_id_to_demux_stream_map_; |
| 446 | 444 |
| 447 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 445 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
| 448 }; | 446 }; |
| 449 | 447 |
| 450 } // namespace media | 448 } // namespace media |
| 451 | 449 |
| 452 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 450 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| OLD | NEW |