Chromium Code Reviews| 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" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 187 std::map<StreamParser::TrackId, bool> media_segment_has_data_for_track_; | 187 std::map<StreamParser::TrackId, bool> media_segment_has_data_for_track_; |
| 188 | 188 |
| 189 // The object used to parse appended data. | 189 // The object used to parse appended data. |
| 190 std::unique_ptr<StreamParser> stream_parser_; | 190 std::unique_ptr<StreamParser> stream_parser_; |
| 191 | 191 |
| 192 // Note that ChunkDemuxerStreams are created and owned by the parent | 192 // Note that ChunkDemuxerStreams are created and owned by the parent |
| 193 // ChunkDemuxer. They are not owned by |this|. | 193 // ChunkDemuxer. They are not owned by |this|. |
| 194 using DemuxerStreamMap = std::map<StreamParser::TrackId, ChunkDemuxerStream*>; | 194 using DemuxerStreamMap = std::map<StreamParser::TrackId, ChunkDemuxerStream*>; |
| 195 DemuxerStreamMap audio_streams_; | 195 DemuxerStreamMap audio_streams_; |
| 196 DemuxerStreamMap video_streams_; | 196 DemuxerStreamMap video_streams_; |
| 197 | 197 DemuxerStreamMap text_streams_; |
|
Avi (use Gerrit)
2016/09/26 21:07:26
The old ownership here, where the audio and video
wolenetz
2016/09/27 22:01:11
Acknowledged.
| |
| 198 typedef std::map<StreamParser::TrackId, ChunkDemuxerStream*> TextStreamMap; | |
| 199 TextStreamMap text_stream_map_; // |this| owns the map's stream pointers. | |
| 200 | 198 |
| 201 std::unique_ptr<FrameProcessor> frame_processor_; | 199 std::unique_ptr<FrameProcessor> frame_processor_; |
| 202 scoped_refptr<MediaLog> media_log_; | 200 scoped_refptr<MediaLog> media_log_; |
| 203 StreamParser::InitCB init_cb_; | 201 StreamParser::InitCB init_cb_; |
| 204 | 202 |
| 205 State state_; | 203 State state_; |
| 206 | 204 |
| 207 // During Append(), OnNewConfigs() will trigger the initialization segment | 205 // During Append(), OnNewConfigs() will trigger the initialization segment |
| 208 // received algorithm. Note, the MSE spec explicitly disallows this algorithm | 206 // received algorithm. Note, the MSE spec explicitly disallows this algorithm |
| 209 // during an Abort(), since Abort() is allowed only to emit coded frames, and | 207 // during an Abort(), since Abort() is allowed only to emit coded frames, and |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 222 // TODO(wolenetz): Refactor this function while integrating April 29, 2014 | 220 // TODO(wolenetz): Refactor this function while integrating April 29, 2014 |
| 223 // changes to MSE spec. See http://crbug.com/371499. | 221 // changes to MSE spec. See http://crbug.com/371499. |
| 224 bool auto_update_timestamp_offset_; | 222 bool auto_update_timestamp_offset_; |
| 225 | 223 |
| 226 DISALLOW_COPY_AND_ASSIGN(MediaSourceState); | 224 DISALLOW_COPY_AND_ASSIGN(MediaSourceState); |
| 227 }; | 225 }; |
| 228 | 226 |
| 229 } // namespace media | 227 } // namespace media |
| 230 | 228 |
| 231 #endif // MEDIA_FILTERS_MEDIA_SOURCE_STATE_H_ | 229 #endif // MEDIA_FILTERS_MEDIA_SOURCE_STATE_H_ |
| OLD | NEW |