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

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: addressed comments Created 4 years, 3 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') | media/filters/chunk_demuxer_unittest.cc » ('J')
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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 const scoped_refptr<MediaLog>& media_log, 186 const scoped_refptr<MediaLog>& media_log,
187 bool splice_frames_enabled); 187 bool splice_frames_enabled);
188 ~ChunkDemuxer() override; 188 ~ChunkDemuxer() override;
189 189
190 // Demuxer implementation. 190 // Demuxer implementation.
191 std::string GetDisplayName() const override; 191 std::string GetDisplayName() const override;
192 192
193 // |enable_text| Process inband text tracks in the normal way when true, 193 // |enable_text| Process inband text tracks in the normal way when true,
194 // otherwise ignore them. 194 // otherwise ignore them.
195 void Initialize(DemuxerHost* host, 195 void Initialize(DemuxerHost* host,
196 const PipelineStatusCB& cb, 196 const PipelineStatusCB& init_cb,
197 bool enable_text_tracks) override; 197 bool enable_text_tracks) override;
198 void Stop() override; 198 void Stop() override;
199 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; 199 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override;
200 base::Time GetTimelineOffset() const override; 200 base::Time GetTimelineOffset() const override;
201 DemuxerStream* GetStream(DemuxerStream::Type type) override; 201 DemuxerStream* GetStream(DemuxerStream::Type type) override;
202 base::TimeDelta GetStartTime() const override; 202 base::TimeDelta GetStartTime() const override;
203 int64_t GetMemoryUsage() const override; 203 int64_t GetMemoryUsage() const override;
204 void AbortPendingReads() override; 204 void AbortPendingReads() override;
205 205
206 // ChunkDemuxer reads are abortable. StartWaitingForSeek() and 206 // ChunkDemuxer reads are abortable. StartWaitingForSeek() and
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 int detected_text_track_count_; 445 int detected_text_track_count_;
446 446
447 std::map<MediaTrack::Id, const DemuxerStream*> track_id_to_demux_stream_map_; 447 std::map<MediaTrack::Id, const DemuxerStream*> track_id_to_demux_stream_map_;
448 448
449 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 449 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
450 }; 450 };
451 451
452 } // namespace media 452 } // namespace media
453 453
454 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 454 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW
« no previous file with comments | « no previous file | media/filters/chunk_demuxer.cc » ('j') | media/filters/chunk_demuxer_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698