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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 const LogCB& log_cb, | 154 const LogCB& log_cb, |
155 bool splice_frames_enabled); | 155 bool splice_frames_enabled); |
156 virtual ~ChunkDemuxer(); | 156 virtual ~ChunkDemuxer(); |
157 | 157 |
158 // Demuxer implementation. | 158 // Demuxer implementation. |
159 virtual void Initialize(DemuxerHost* host, | 159 virtual void Initialize(DemuxerHost* host, |
160 const PipelineStatusCB& cb, | 160 const PipelineStatusCB& cb, |
161 bool enable_text_tracks) OVERRIDE; | 161 bool enable_text_tracks) OVERRIDE; |
162 virtual void Stop() OVERRIDE; | 162 virtual void Stop() OVERRIDE; |
163 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE; | 163 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE; |
| 164 virtual base::Time GetTimelineOffset() const OVERRIDE; |
164 virtual DemuxerStream* GetStream(DemuxerStream::Type type) OVERRIDE; | 165 virtual DemuxerStream* GetStream(DemuxerStream::Type type) OVERRIDE; |
165 virtual base::Time GetTimelineOffset() const OVERRIDE; | |
166 virtual Liveness GetLiveness() const OVERRIDE; | 166 virtual Liveness GetLiveness() const OVERRIDE; |
167 | 167 |
168 // Methods used by an external object to control this demuxer. | 168 // Methods used by an external object to control this demuxer. |
169 // | 169 // |
170 // Indicates that a new Seek() call is on its way. Any pending Reads on the | 170 // Indicates that a new Seek() call is on its way. Any pending Reads on the |
171 // DemuxerStream objects should be aborted immediately inside this call and | 171 // DemuxerStream objects should be aborted immediately inside this call and |
172 // future Read calls should return kAborted until the Seek() call occurs. | 172 // future Read calls should return kAborted until the Seek() call occurs. |
173 // This method MUST ALWAYS be called before Seek() is called to signal that | 173 // This method MUST ALWAYS be called before Seek() is called to signal that |
174 // the next Seek() call represents the seek point we actually want to return | 174 // the next Seek() call represents the seek point we actually want to return |
175 // data for. | 175 // data for. |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 | 386 |
387 // Indicates that splice frame generation is enabled. | 387 // Indicates that splice frame generation is enabled. |
388 const bool splice_frames_enabled_; | 388 const bool splice_frames_enabled_; |
389 | 389 |
390 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 390 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
391 }; | 391 }; |
392 | 392 |
393 } // namespace media | 393 } // namespace media |
394 | 394 |
395 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 395 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
OLD | NEW |