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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // |enable_text| Process inband text tracks in the normal way when true, | 176 // |enable_text| Process inband text tracks in the normal way when true, |
177 // otherwise ignore them. | 177 // otherwise ignore them. |
178 void Initialize(DemuxerHost* host, | 178 void Initialize(DemuxerHost* host, |
179 const PipelineStatusCB& cb, | 179 const PipelineStatusCB& cb, |
180 bool enable_text_tracks) override; | 180 bool enable_text_tracks) override; |
181 void Stop() override; | 181 void Stop() override; |
182 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; | 182 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; |
183 base::Time GetTimelineOffset() const override; | 183 base::Time GetTimelineOffset() const override; |
184 DemuxerStream* GetStream(DemuxerStream::Type type) override; | 184 DemuxerStream* GetStream(DemuxerStream::Type type) override; |
185 base::TimeDelta GetStartTime() const override; | 185 base::TimeDelta GetStartTime() const override; |
| 186 int64_t GetMemoryUsage() const override; |
186 | 187 |
187 // Methods used by an external object to control this demuxer. | 188 // Methods used by an external object to control this demuxer. |
188 // | 189 // |
189 // Indicates that a new Seek() call is on its way. Any pending Reads on the | 190 // Indicates that a new Seek() call is on its way. Any pending Reads on the |
190 // DemuxerStream objects should be aborted immediately inside this call and | 191 // DemuxerStream objects should be aborted immediately inside this call and |
191 // future Read calls should return kAborted until the Seek() call occurs. | 192 // future Read calls should return kAborted until the Seek() call occurs. |
192 // This method MUST ALWAYS be called before Seek() is called to signal that | 193 // This method MUST ALWAYS be called before Seek() is called to signal that |
193 // the next Seek() call represents the seek point we actually want to return | 194 // the next Seek() call represents the seek point we actually want to return |
194 // data for. | 195 // data for. |
195 // |seek_time| - The presentation timestamp for the seek that triggered this | 196 // |seek_time| - The presentation timestamp for the seek that triggered this |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 | 417 |
417 // Indicates that splice frame generation is enabled. | 418 // Indicates that splice frame generation is enabled. |
418 const bool splice_frames_enabled_; | 419 const bool splice_frames_enabled_; |
419 | 420 |
420 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 421 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
421 }; | 422 }; |
422 | 423 |
423 } // namespace media | 424 } // namespace media |
424 | 425 |
425 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 426 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
OLD | NEW |