| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 std::string GetDisplayName() const override; | 183 std::string GetDisplayName() const override; |
| 184 | 184 |
| 185 // |enable_text| Process inband text tracks in the normal way when true, | 185 // |enable_text| Process inband text tracks in the normal way when true, |
| 186 // otherwise ignore them. | 186 // otherwise ignore them. |
| 187 void Initialize(DemuxerHost* host, | 187 void Initialize(DemuxerHost* host, |
| 188 const PipelineStatusCB& init_cb, | 188 const PipelineStatusCB& init_cb, |
| 189 bool enable_text_tracks) override; | 189 bool enable_text_tracks) override; |
| 190 void Stop() override; | 190 void Stop() override; |
| 191 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; | 191 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; |
| 192 base::Time GetTimelineOffset() const override; | 192 base::Time GetTimelineOffset() const override; |
| 193 DemuxerStream* GetStream(DemuxerStream::Type type) override; | 193 std::vector<DemuxerStream*> GetStreams() override; |
| 194 base::TimeDelta GetStartTime() const override; | 194 base::TimeDelta GetStartTime() const override; |
| 195 int64_t GetMemoryUsage() const override; | 195 int64_t GetMemoryUsage() const override; |
| 196 void AbortPendingReads() override; | 196 void AbortPendingReads() override; |
| 197 | 197 |
| 198 // ChunkDemuxer reads are abortable. StartWaitingForSeek() and | 198 // ChunkDemuxer reads are abortable. StartWaitingForSeek() and |
| 199 // CancelPendingSeek() always abort pending and future reads until the | 199 // CancelPendingSeek() always abort pending and future reads until the |
| 200 // expected seek occurs, so that ChunkDemuxer can stay synchronized with the | 200 // expected seek occurs, so that ChunkDemuxer can stay synchronized with the |
| 201 // associated JS method calls. | 201 // associated JS method calls. |
| 202 void StartWaitingForSeek(base::TimeDelta seek_time) override; | 202 void StartWaitingForSeek(base::TimeDelta seek_time) override; |
| 203 void CancelPendingSeek(base::TimeDelta seek_time) override; | 203 void CancelPendingSeek(base::TimeDelta seek_time) override; |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 int detected_text_track_count_; | 441 int detected_text_track_count_; |
| 442 | 442 |
| 443 std::map<MediaTrack::Id, DemuxerStream*> track_id_to_demux_stream_map_; | 443 std::map<MediaTrack::Id, DemuxerStream*> track_id_to_demux_stream_map_; |
| 444 | 444 |
| 445 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 445 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
| 446 }; | 446 }; |
| 447 | 447 |
| 448 } // namespace media | 448 } // namespace media |
| 449 | 449 |
| 450 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 450 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| OLD | NEW |