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

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

Issue 254473006: Add media::StreamParser::StreamParameter struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « media/base/stream_parser.cc ('k') | 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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 void ReportError_Locked(PipelineStatus error); 280 void ReportError_Locked(PipelineStatus error);
281 281
282 // Returns true if any stream has seeked to a time without buffered data. 282 // Returns true if any stream has seeked to a time without buffered data.
283 bool IsSeekWaitingForData_Locked() const; 283 bool IsSeekWaitingForData_Locked() const;
284 284
285 // Returns true if all streams can successfully call EndOfStream, 285 // Returns true if all streams can successfully call EndOfStream,
286 // false if any can not. 286 // false if any can not.
287 bool CanEndOfStream_Locked() const; 287 bool CanEndOfStream_Locked() const;
288 288
289 // SourceState callbacks. 289 // SourceState callbacks.
290 void OnSourceInitDone(bool success, base::TimeDelta duration, 290 void OnSourceInitDone(bool success,
291 base::Time timeline_offset); 291 const StreamParser::InitParameters& params);
292 292
293 // Creates a DemuxerStream for the specified |type|. 293 // Creates a DemuxerStream for the specified |type|.
294 // Returns a new ChunkDemuxerStream instance if a stream of this type 294 // Returns a new ChunkDemuxerStream instance if a stream of this type
295 // has not been created before. Returns NULL otherwise. 295 // has not been created before. Returns NULL otherwise.
296 ChunkDemuxerStream* CreateDemuxerStream(DemuxerStream::Type type); 296 ChunkDemuxerStream* CreateDemuxerStream(DemuxerStream::Type type);
297 297
298 void OnNewTextTrack(ChunkDemuxerStream* text_stream, 298 void OnNewTextTrack(ChunkDemuxerStream* text_stream,
299 const TextTrackConfig& config); 299 const TextTrackConfig& config);
300 300
301 // Returns true if |source_id| is valid, false otherwise. 301 // Returns true if |source_id| is valid, false otherwise.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 378
379 // Indicates that splice frame generation is enabled. 379 // Indicates that splice frame generation is enabled.
380 const bool splice_frames_enabled_; 380 const bool splice_frames_enabled_;
381 381
382 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 382 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
383 }; 383 };
384 384
385 } // namespace media 385 } // namespace media
386 386
387 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 387 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW
« no previous file with comments | « media/base/stream_parser.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698