OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_MEDIA_SOURCE_STATE_H_ | 5 #ifndef MEDIA_FILTERS_MEDIA_SOURCE_STATE_H_ |
6 #define MEDIA_FILTERS_MEDIA_SOURCE_STATE_H_ | 6 #define MEDIA_FILTERS_MEDIA_SOURCE_STATE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "media/base/demuxer_stream.h" | 12 #include "media/base/demuxer_stream.h" |
13 #include "media/base/media_export.h" | 13 #include "media/base/media_export.h" |
14 #include "media/base/stream_parser.h" | 14 #include "media/base/stream_parser.h" |
15 #include "media/base/stream_parser_buffer.h" | 15 #include "media/base/stream_parser_buffer.h" |
16 | 16 |
17 namespace media { | 17 namespace media { |
18 | 18 |
19 using base::TimeDelta; | 19 using base::TimeDelta; |
20 | 20 |
21 class ChunkDemuxerStream; | 21 class ChunkDemuxerStream; |
22 class FrameProcessor; | 22 class FrameProcessor; |
| 23 class MediaTrack; |
23 | 24 |
24 // Contains state belonging to a source id. | 25 // Contains state belonging to a source id. |
25 class MEDIA_EXPORT MediaSourceState { | 26 class MEDIA_EXPORT MediaSourceState { |
26 public: | 27 public: |
27 // Callback signature used to create ChunkDemuxerStreams. | 28 // Callback signature used to create ChunkDemuxerStreams. |
28 typedef base::Callback<ChunkDemuxerStream*(DemuxerStream::Type)> | 29 typedef base::Callback<ChunkDemuxerStream*(const MediaTrack&)> |
29 CreateDemuxerStreamCB; | 30 CreateDemuxerStreamCB; |
30 | 31 |
31 typedef base::Callback<void(ChunkDemuxerStream*, const TextTrackConfig&)> | 32 typedef base::Callback<void(ChunkDemuxerStream*, const TextTrackConfig&)> |
32 NewTextTrackCB; | 33 NewTextTrackCB; |
33 | 34 |
34 MediaSourceState(scoped_ptr<StreamParser> stream_parser, | 35 MediaSourceState(scoped_ptr<StreamParser> stream_parser, |
35 scoped_ptr<FrameProcessor> frame_processor, | 36 scoped_ptr<FrameProcessor> frame_processor, |
36 const CreateDemuxerStreamCB& create_demuxer_stream_cb, | 37 const CreateDemuxerStreamCB& create_demuxer_stream_cb, |
37 const scoped_refptr<MediaLog>& media_log); | 38 const scoped_refptr<MediaLog>& media_log); |
38 | 39 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 // TODO(wolenetz): Refactor this function while integrating April 29, 2014 | 207 // TODO(wolenetz): Refactor this function while integrating April 29, 2014 |
207 // changes to MSE spec. See http://crbug.com/371499. | 208 // changes to MSE spec. See http://crbug.com/371499. |
208 bool auto_update_timestamp_offset_; | 209 bool auto_update_timestamp_offset_; |
209 | 210 |
210 DISALLOW_COPY_AND_ASSIGN(MediaSourceState); | 211 DISALLOW_COPY_AND_ASSIGN(MediaSourceState); |
211 }; | 212 }; |
212 | 213 |
213 } // namespace media | 214 } // namespace media |
214 | 215 |
215 #endif // MEDIA_FILTERS_MEDIA_SOURCE_STATE_H_ | 216 #endif // MEDIA_FILTERS_MEDIA_SOURCE_STATE_H_ |
OLD | NEW |