Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: media/filters/media_source_state.h

Issue 2371783002: Remove stl_util's deletion functions from media/. (Closed)
Patch Set: wolenetz Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/filters/h264_parser.cc ('k') | media/filters/media_source_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_;
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
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_
OLDNEW
« no previous file with comments | « media/filters/h264_parser.cc ('k') | media/filters/media_source_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698