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

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

Issue 2273273002: Directly call ChunkDemuxer::Initialize completion callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removes comment 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 | « no previous file | media/filters/chunk_demuxer.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) 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 const scoped_refptr<MediaLog>& media_log, 187 const scoped_refptr<MediaLog>& media_log,
188 bool splice_frames_enabled); 188 bool splice_frames_enabled);
189 ~ChunkDemuxer() override; 189 ~ChunkDemuxer() override;
190 190
191 // Demuxer implementation. 191 // Demuxer implementation.
192 std::string GetDisplayName() const override; 192 std::string GetDisplayName() const override;
193 193
194 // |enable_text| Process inband text tracks in the normal way when true, 194 // |enable_text| Process inband text tracks in the normal way when true,
195 // otherwise ignore them. 195 // otherwise ignore them.
196 void Initialize(DemuxerHost* host, 196 void Initialize(DemuxerHost* host,
197 const PipelineStatusCB& cb, 197 const PipelineStatusCB& init_cb,
198 bool enable_text_tracks) override; 198 bool enable_text_tracks) override;
199 void Stop() override; 199 void Stop() override;
200 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; 200 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override;
201 base::Time GetTimelineOffset() const override; 201 base::Time GetTimelineOffset() const override;
202 DemuxerStream* GetStream(DemuxerStream::Type type) override; 202 DemuxerStream* GetStream(DemuxerStream::Type type) override;
203 base::TimeDelta GetStartTime() const override; 203 base::TimeDelta GetStartTime() const override;
204 int64_t GetMemoryUsage() const override; 204 int64_t GetMemoryUsage() const override;
205 void AbortPendingReads() override; 205 void AbortPendingReads() override;
206 206
207 // ChunkDemuxer reads are abortable. StartWaitingForSeek() and 207 // ChunkDemuxer reads are abortable. StartWaitingForSeek() and
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 int detected_text_track_count_; 453 int detected_text_track_count_;
454 454
455 std::map<MediaTrack::Id, DemuxerStream*> track_id_to_demux_stream_map_; 455 std::map<MediaTrack::Id, DemuxerStream*> track_id_to_demux_stream_map_;
456 456
457 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 457 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
458 }; 458 };
459 459
460 } // namespace media 460 } // namespace media
461 461
462 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 462 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW
« no previous file with comments | « no previous file | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698