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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 void MarkEndOfStream(); | 79 void MarkEndOfStream(); |
80 void UnmarkEndOfStream(); | 80 void UnmarkEndOfStream(); |
81 | 81 |
82 // DemuxerStream methods. | 82 // DemuxerStream methods. |
83 virtual void Read(const ReadCB& read_cb) OVERRIDE; | 83 virtual void Read(const ReadCB& read_cb) OVERRIDE; |
84 virtual Type type() OVERRIDE; | 84 virtual Type type() OVERRIDE; |
85 virtual void EnableBitstreamConverter() OVERRIDE; | 85 virtual void EnableBitstreamConverter() OVERRIDE; |
86 virtual AudioDecoderConfig audio_decoder_config() OVERRIDE; | 86 virtual AudioDecoderConfig audio_decoder_config() OVERRIDE; |
87 virtual VideoDecoderConfig video_decoder_config() OVERRIDE; | 87 virtual VideoDecoderConfig video_decoder_config() OVERRIDE; |
| 88 virtual bool SupportsConfigChanges() OVERRIDE; |
88 | 89 |
89 // Returns the text track configuration. It is an error to call this method | 90 // Returns the text track configuration. It is an error to call this method |
90 // if type() != TEXT. | 91 // if type() != TEXT. |
91 TextTrackConfig text_track_config(); | 92 TextTrackConfig text_track_config(); |
92 | 93 |
93 // Sets the memory limit, in bytes, on the SourceBufferStream. | 94 // Sets the memory limit, in bytes, on the SourceBufferStream. |
94 void set_memory_limit_for_testing(int memory_limit) { | 95 void set_memory_limit_for_testing(int memory_limit) { |
95 stream_->set_memory_limit_for_testing(memory_limit); | 96 stream_->set_memory_limit_for_testing(memory_limit); |
96 } | 97 } |
97 | 98 |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 // removed with RemoveID() but can not be re-added (yet). | 366 // removed with RemoveID() but can not be re-added (yet). |
366 std::string source_id_audio_; | 367 std::string source_id_audio_; |
367 std::string source_id_video_; | 368 std::string source_id_video_; |
368 | 369 |
369 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 370 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
370 }; | 371 }; |
371 | 372 |
372 } // namespace media | 373 } // namespace media |
373 | 374 |
374 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 375 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
OLD | NEW |