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_BASE_DEMUXER_STREAM_H_ | 5 #ifndef MEDIA_BASE_DEMUXER_STREAM_H_ |
6 #define MEDIA_BASE_DEMUXER_STREAM_H_ | 6 #define MEDIA_BASE_DEMUXER_STREAM_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 virtual void Read(const ReadCB& read_cb) = 0; | 57 virtual void Read(const ReadCB& read_cb) = 0; |
58 | 58 |
59 // Returns the audio decoder configuration. It is an error to call this method | 59 // Returns the audio decoder configuration. It is an error to call this method |
60 // if type() != AUDIO. | 60 // if type() != AUDIO. |
61 virtual const AudioDecoderConfig& audio_decoder_config() = 0; | 61 virtual const AudioDecoderConfig& audio_decoder_config() = 0; |
62 | 62 |
63 // Returns the video decoder configuration. It is an error to call this method | 63 // Returns the video decoder configuration. It is an error to call this method |
64 // if type() != VIDEO. | 64 // if type() != VIDEO. |
65 virtual const VideoDecoderConfig& video_decoder_config() = 0; | 65 virtual const VideoDecoderConfig& video_decoder_config() = 0; |
66 | 66 |
67 // Returns time ranges known to have been seen by this stream. | |
68 virtual Ranges<base::TimeDelta> GetBufferedRanges() = 0; | |
69 | |
70 // Returns the type of stream. | 67 // Returns the type of stream. |
71 virtual Type type() = 0; | 68 virtual Type type() = 0; |
72 | 69 |
73 virtual void EnableBitstreamConverter() = 0; | 70 virtual void EnableBitstreamConverter() = 0; |
74 | 71 |
75 protected: | 72 protected: |
76 friend class base::RefCountedThreadSafe<DemuxerStream>; | 73 friend class base::RefCountedThreadSafe<DemuxerStream>; |
77 virtual ~DemuxerStream(); | 74 virtual ~DemuxerStream(); |
78 }; | 75 }; |
79 | 76 |
80 } // namespace media | 77 } // namespace media |
81 | 78 |
82 #endif // MEDIA_BASE_DEMUXER_STREAM_H_ | 79 #endif // MEDIA_BASE_DEMUXER_STREAM_H_ |
OLD | NEW |