| Index: media/filters/chunk_demuxer.h
|
| diff --git a/media/filters/chunk_demuxer.h b/media/filters/chunk_demuxer.h
|
| index 773f1d52a6b5b18fef7237f561d7f6603334ab08..fb53bca5596dc83392bb362a440151f4376f21be 100644
|
| --- a/media/filters/chunk_demuxer.h
|
| +++ b/media/filters/chunk_demuxer.h
|
| @@ -136,6 +136,16 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
|
| // Returns true if |source_id| is valid, false otherwise.
|
| bool IsValidId(const std::string& source_id) const;
|
|
|
| + // Increases |duration_| if the newly appended |buffers| exceed the current
|
| + // |duration_|. The |duration_| is set to the end buffered timestamp of
|
| + // |stream|.
|
| + void IncreaseDurationIfNecessary(
|
| + const StreamParser::BufferQueue& buffers,
|
| + const scoped_refptr<ChunkDemuxerStream>& stream);
|
| +
|
| + // Sets |duration_| to |new_duration| and notifies |host_|.
|
| + void UpdateDuration(base::TimeDelta new_duration);
|
| +
|
| mutable base::Lock lock_;
|
| State state_;
|
|
|
|
|