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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 // Returns the ranges representing the buffered data in the demuxer. | 168 // Returns the ranges representing the buffered data in the demuxer. |
169 Ranges<base::TimeDelta> GetBufferedRanges() const; | 169 Ranges<base::TimeDelta> GetBufferedRanges() const; |
170 | 170 |
171 mutable base::Lock lock_; | 171 mutable base::Lock lock_; |
172 State state_; | 172 State state_; |
173 | 173 |
174 DemuxerHost* host_; | 174 DemuxerHost* host_; |
175 base::Closure open_cb_; | 175 base::Closure open_cb_; |
176 NeedKeyCB need_key_cb_; | 176 NeedKeyCB need_key_cb_; |
| 177 // Callback used to report error strings that can help the web developer |
| 178 // figure out what is wrong with the content. |
177 LogCB log_cb_; | 179 LogCB log_cb_; |
178 | 180 |
179 PipelineStatusCB init_cb_; | 181 PipelineStatusCB init_cb_; |
180 PipelineStatusCB seek_cb_; | 182 PipelineStatusCB seek_cb_; |
181 | 183 |
182 scoped_refptr<ChunkDemuxerStream> audio_; | 184 scoped_refptr<ChunkDemuxerStream> audio_; |
183 scoped_refptr<ChunkDemuxerStream> video_; | 185 scoped_refptr<ChunkDemuxerStream> video_; |
184 | 186 |
185 base::TimeDelta duration_; | 187 base::TimeDelta duration_; |
186 | 188 |
(...skipping 13 matching lines...) Expand all Loading... |
200 // removed with RemoveID() but can not be re-added (yet). | 202 // removed with RemoveID() but can not be re-added (yet). |
201 std::string source_id_audio_; | 203 std::string source_id_audio_; |
202 std::string source_id_video_; | 204 std::string source_id_video_; |
203 | 205 |
204 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 206 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
205 }; | 207 }; |
206 | 208 |
207 } // namespace media | 209 } // namespace media |
208 | 210 |
209 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 211 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
OLD | NEW |