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

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

Issue 195973006: Allow StreamParsers to request automatic timestampOffset updates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 void ReportError_Locked(PipelineStatus error); 267 void ReportError_Locked(PipelineStatus error);
268 268
269 // Returns true if any stream has seeked to a time without buffered data. 269 // Returns true if any stream has seeked to a time without buffered data.
270 bool IsSeekWaitingForData_Locked() const; 270 bool IsSeekWaitingForData_Locked() const;
271 271
272 // Returns true if all streams can successfully call EndOfStream, 272 // Returns true if all streams can successfully call EndOfStream,
273 // false if any can not. 273 // false if any can not.
274 bool CanEndOfStream_Locked() const; 274 bool CanEndOfStream_Locked() const;
275 275
276 // SourceState callbacks. 276 // SourceState callbacks.
277 void OnSourceInitDone(bool success, base::TimeDelta duration); 277 void OnSourceInitDone(bool success,
278 base::TimeDelta duration,
279 bool auto_update_timestamp_offset);
278 280
279 // Creates a DemuxerStream for the specified |type|. 281 // Creates a DemuxerStream for the specified |type|.
280 // Returns a new ChunkDemuxerStream instance if a stream of this type 282 // Returns a new ChunkDemuxerStream instance if a stream of this type
281 // has not been created before. Returns NULL otherwise. 283 // has not been created before. Returns NULL otherwise.
282 ChunkDemuxerStream* CreateDemuxerStream(DemuxerStream::Type type); 284 ChunkDemuxerStream* CreateDemuxerStream(DemuxerStream::Type type);
283 285
284 void OnNewTextTrack(ChunkDemuxerStream* text_stream, 286 void OnNewTextTrack(ChunkDemuxerStream* text_stream,
285 const TextTrackConfig& config); 287 const TextTrackConfig& config);
286 void OnNewMediaSegment(const std::string& source_id, 288 void OnNewMediaSegment(const std::string& source_id,
287 base::TimeDelta start_timestamp); 289 base::TimeDelta start_timestamp);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // removed with RemoveID() but can not be re-added (yet). 367 // removed with RemoveID() but can not be re-added (yet).
366 std::string source_id_audio_; 368 std::string source_id_audio_;
367 std::string source_id_video_; 369 std::string source_id_video_;
368 370
369 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 371 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
370 }; 372 };
371 373
372 } // namespace media 374 } // namespace media
373 375
374 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 376 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698