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

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

Issue 2090343004: Add GetUrl to DemuxerStreamProvider interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added UTs Created 4 years, 6 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
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // otherwise ignore them. 185 // otherwise ignore them.
186 void Initialize(DemuxerHost* host, 186 void Initialize(DemuxerHost* host,
187 const PipelineStatusCB& cb, 187 const PipelineStatusCB& cb,
188 bool enable_text_tracks) override; 188 bool enable_text_tracks) override;
189 void Stop() override; 189 void Stop() override;
190 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; 190 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override;
191 base::Time GetTimelineOffset() const override; 191 base::Time GetTimelineOffset() const override;
192 DemuxerStream* GetStream(DemuxerStream::Type type) override; 192 DemuxerStream* GetStream(DemuxerStream::Type type) override;
193 base::TimeDelta GetStartTime() const override; 193 base::TimeDelta GetStartTime() const override;
194 int64_t GetMemoryUsage() const override; 194 int64_t GetMemoryUsage() const override;
195 GURL* GetUrl() override;
195 196
196 // ChunkDemuxer reads are abortable. StartWaitingForSeek() and 197 // ChunkDemuxer reads are abortable. StartWaitingForSeek() and
197 // CancelPendingSeek() always abort pending and future reads until the 198 // CancelPendingSeek() always abort pending and future reads until the
198 // expected seek occurs, so that ChunkDemuxer can stay synchronized with the 199 // expected seek occurs, so that ChunkDemuxer can stay synchronized with the
199 // associated JS method calls. 200 // associated JS method calls.
200 void StartWaitingForSeek(base::TimeDelta seek_time) override; 201 void StartWaitingForSeek(base::TimeDelta seek_time) override;
201 void CancelPendingSeek(base::TimeDelta seek_time) override; 202 void CancelPendingSeek(base::TimeDelta seek_time) override;
202 203
203 // Registers a new |id| to use for AppendData() calls. |type| indicates 204 // Registers a new |id| to use for AppendData() calls. |type| indicates
204 // the MIME type for the data that we intend to append for this ID. 205 // the MIME type for the data that we intend to append for this ID.
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 int detected_audio_track_count_; 424 int detected_audio_track_count_;
424 int detected_video_track_count_; 425 int detected_video_track_count_;
425 int detected_text_track_count_; 426 int detected_text_track_count_;
426 427
427 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 428 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
428 }; 429 };
429 430
430 } // namespace media 431 } // namespace media
431 432
432 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 433 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698