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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 // Demuxer implementation. | 38 // Demuxer implementation. |
39 virtual void Initialize(DemuxerHost* host, | 39 virtual void Initialize(DemuxerHost* host, |
40 const PipelineStatusCB& cb) OVERRIDE; | 40 const PipelineStatusCB& cb) OVERRIDE; |
41 virtual void Stop(const base::Closure& callback) OVERRIDE; | 41 virtual void Stop(const base::Closure& callback) OVERRIDE; |
42 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE; | 42 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE; |
43 virtual void OnAudioRendererDisabled() OVERRIDE; | 43 virtual void OnAudioRendererDisabled() OVERRIDE; |
44 virtual scoped_refptr<DemuxerStream> GetStream( | 44 virtual scoped_refptr<DemuxerStream> GetStream( |
45 DemuxerStream::Type type) OVERRIDE; | 45 DemuxerStream::Type type) OVERRIDE; |
46 virtual base::TimeDelta GetStartTime() const OVERRIDE; | 46 virtual base::TimeDelta GetStartTime() const OVERRIDE; |
47 virtual int GetBitrate() OVERRIDE; | |
48 | 47 |
49 // Methods used by an external object to control this demuxer. | 48 // Methods used by an external object to control this demuxer. |
50 void StartWaitingForSeek(); | 49 void StartWaitingForSeek(); |
51 | 50 |
52 // Registers a new |id| to use for AppendData() calls. |type| indicates | 51 // Registers a new |id| to use for AppendData() calls. |type| indicates |
53 // the MIME type for the data that we intend to append for this ID. | 52 // the MIME type for the data that we intend to append for this ID. |
54 // kOk is returned if the demuxer has enough resources to support another ID | 53 // kOk is returned if the demuxer has enough resources to support another ID |
55 // and supports the format indicated by |type|. | 54 // and supports the format indicated by |type|. |
56 // kNotSupported is returned if |type| is not a supported format. | 55 // kNotSupported is returned if |type| is not a supported format. |
57 // kReachedIdLimit is returned if the demuxer cannot handle another ID right | 56 // kReachedIdLimit is returned if the demuxer cannot handle another ID right |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 std::string source_id_video_; | 183 std::string source_id_video_; |
185 | 184 |
186 base::TimeDelta start_time_; | 185 base::TimeDelta start_time_; |
187 | 186 |
188 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 187 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
189 }; | 188 }; |
190 | 189 |
191 } // namespace media | 190 } // namespace media |
192 | 191 |
193 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 192 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
OLD | NEW |