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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 PARSE_ERROR, | 328 PARSE_ERROR, |
329 SHUTDOWN, | 329 SHUTDOWN, |
330 }; | 330 }; |
331 | 331 |
332 void ChangeState_Locked(State new_state); | 332 void ChangeState_Locked(State new_state); |
333 | 333 |
334 // Reports an error and puts the demuxer in a state where it won't accept more | 334 // Reports an error and puts the demuxer in a state where it won't accept more |
335 // data. | 335 // data. |
336 void ReportError_Locked(PipelineStatus error); | 336 void ReportError_Locked(PipelineStatus error); |
337 | 337 |
| 338 // Reports metadata to the host. |
| 339 void ReportMetadata_Locked() const; |
| 340 |
338 // Returns true if any stream has seeked to a time without buffered data. | 341 // Returns true if any stream has seeked to a time without buffered data. |
339 bool IsSeekWaitingForData_Locked() const; | 342 bool IsSeekWaitingForData_Locked() const; |
340 | 343 |
341 // Returns true if all streams can successfully call EndOfStream, | 344 // Returns true if all streams can successfully call EndOfStream, |
342 // false if any can not. | 345 // false if any can not. |
343 bool CanEndOfStream_Locked() const; | 346 bool CanEndOfStream_Locked() const; |
344 | 347 |
345 // MediaSourceState callbacks. | 348 // MediaSourceState callbacks. |
346 void OnSourceInitDone(const StreamParser::InitParameters& params); | 349 void OnSourceInitDone(const StreamParser::InitParameters& params); |
347 | 350 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 int detected_text_track_count_; | 448 int detected_text_track_count_; |
446 | 449 |
447 std::map<MediaTrack::Id, const DemuxerStream*> track_id_to_demux_stream_map_; | 450 std::map<MediaTrack::Id, const DemuxerStream*> track_id_to_demux_stream_map_; |
448 | 451 |
449 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 452 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
450 }; | 453 }; |
451 | 454 |
452 } // namespace media | 455 } // namespace media |
453 | 456 |
454 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 457 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
OLD | NEW |