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

Side by Side Diff: media/base/demuxer_stream.h

Issue 10829108: Cap sourceBuffered() on duration and truncate duration on EoS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase ToT Created 8 years, 4 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 | « no previous file | media/base/ranges.h » ('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_BASE_DEMUXER_STREAM_H_ 5 #ifndef MEDIA_BASE_DEMUXER_STREAM_H_
6 #define MEDIA_BASE_DEMUXER_STREAM_H_ 6 #define MEDIA_BASE_DEMUXER_STREAM_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void Read(const ReadCB& read_cb) = 0; 57 virtual void Read(const ReadCB& read_cb) = 0;
58 58
59 // Returns the audio decoder configuration. It is an error to call this method 59 // Returns the audio decoder configuration. It is an error to call this method
60 // if type() != AUDIO. 60 // if type() != AUDIO.
61 virtual const AudioDecoderConfig& audio_decoder_config() = 0; 61 virtual const AudioDecoderConfig& audio_decoder_config() = 0;
62 62
63 // Returns the video decoder configuration. It is an error to call this method 63 // Returns the video decoder configuration. It is an error to call this method
64 // if type() != VIDEO. 64 // if type() != VIDEO.
65 virtual const VideoDecoderConfig& video_decoder_config() = 0; 65 virtual const VideoDecoderConfig& video_decoder_config() = 0;
66 66
67 // Returns time ranges known to have been seen by this stream.
68 virtual Ranges<base::TimeDelta> GetBufferedRanges() = 0;
69
70 // Returns the type of stream. 67 // Returns the type of stream.
71 virtual Type type() = 0; 68 virtual Type type() = 0;
72 69
73 virtual void EnableBitstreamConverter() = 0; 70 virtual void EnableBitstreamConverter() = 0;
74 71
75 protected: 72 protected:
76 friend class base::RefCountedThreadSafe<DemuxerStream>; 73 friend class base::RefCountedThreadSafe<DemuxerStream>;
77 virtual ~DemuxerStream(); 74 virtual ~DemuxerStream();
78 }; 75 };
79 76
80 } // namespace media 77 } // namespace media
81 78
82 #endif // MEDIA_BASE_DEMUXER_STREAM_H_ 79 #endif // MEDIA_BASE_DEMUXER_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/ranges.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698