| 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 <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 void ReportError_Locked(PipelineStatus error); | 280 void ReportError_Locked(PipelineStatus error); |
| 281 | 281 |
| 282 // Returns true if any stream has seeked to a time without buffered data. | 282 // Returns true if any stream has seeked to a time without buffered data. |
| 283 bool IsSeekWaitingForData_Locked() const; | 283 bool IsSeekWaitingForData_Locked() const; |
| 284 | 284 |
| 285 // Returns true if all streams can successfully call EndOfStream, | 285 // Returns true if all streams can successfully call EndOfStream, |
| 286 // false if any can not. | 286 // false if any can not. |
| 287 bool CanEndOfStream_Locked() const; | 287 bool CanEndOfStream_Locked() const; |
| 288 | 288 |
| 289 // SourceState callbacks. | 289 // SourceState callbacks. |
| 290 void OnSourceInitDone(bool success, base::TimeDelta duration, | 290 void OnSourceInitDone(bool success, |
| 291 base::Time timeline_offset); | 291 const StreamParser::StreamParameters& params); |
| 292 | 292 |
| 293 // Creates a DemuxerStream for the specified |type|. | 293 // Creates a DemuxerStream for the specified |type|. |
| 294 // Returns a new ChunkDemuxerStream instance if a stream of this type | 294 // Returns a new ChunkDemuxerStream instance if a stream of this type |
| 295 // has not been created before. Returns NULL otherwise. | 295 // has not been created before. Returns NULL otherwise. |
| 296 ChunkDemuxerStream* CreateDemuxerStream(DemuxerStream::Type type); | 296 ChunkDemuxerStream* CreateDemuxerStream(DemuxerStream::Type type); |
| 297 | 297 |
| 298 void OnNewTextTrack(ChunkDemuxerStream* text_stream, | 298 void OnNewTextTrack(ChunkDemuxerStream* text_stream, |
| 299 const TextTrackConfig& config); | 299 const TextTrackConfig& config); |
| 300 | 300 |
| 301 // Returns true if |source_id| is valid, false otherwise. | 301 // Returns true if |source_id| is valid, false otherwise. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 378 |
| 379 // Indicates that splice frame generation is enabled. | 379 // Indicates that splice frame generation is enabled. |
| 380 const bool splice_frames_enabled_; | 380 const bool splice_frames_enabled_; |
| 381 | 381 |
| 382 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 382 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
| 383 }; | 383 }; |
| 384 | 384 |
| 385 } // namespace media | 385 } // namespace media |
| 386 | 386 |
| 387 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 387 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| OLD | NEW |