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

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

Issue 10823300: Make ChunkDemuxer::SetTimestampOffset take a TimeDelta instead of double (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment 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/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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 Ranges<base::TimeDelta> GetBufferedRanges(const std::string& id) const; 67 Ranges<base::TimeDelta> GetBufferedRanges(const std::string& id) const;
68 68
69 // Appends media data to the source buffer associated with |id|. Returns 69 // Appends media data to the source buffer associated with |id|. Returns
70 // false if this method is called in an invalid state. 70 // false if this method is called in an invalid state.
71 bool AppendData(const std::string& id, const uint8* data, size_t length); 71 bool AppendData(const std::string& id, const uint8* data, size_t length);
72 72
73 // Aborts parsing the current segment and reset the parser to a state where 73 // Aborts parsing the current segment and reset the parser to a state where
74 // it can accept a new segment. 74 // it can accept a new segment.
75 void Abort(const std::string& id); 75 void Abort(const std::string& id);
76 76
77 // Sets a time |offset| in seconds to be applied to subsequent buffers 77 // Sets a time |offset| to be applied to subsequent buffers appended to the
78 // appended to the source buffer assicated with |id|. Returns true if the 78 // source buffer assicated with |id|. Returns true if the offset is set
79 // offset is set properly, false if the offset cannot be applied because we're 79 // properly, false if the offset cannot be applied because we're in the
80 // in the middle of parsing a media segment. 80 // middle of parsing a media segment.
81 bool SetTimestampOffset(const std::string& id, double offset); 81 bool SetTimestampOffset(const std::string& id, base::TimeDelta offset);
82 82
83 // Signals an EndOfStream request. 83 // Signals an EndOfStream request.
84 // Returns false if called in an unexpected state or if there is a gap between 84 // Returns false if called in an unexpected state or if there is a gap between
85 // the current position and the end of the buffered data. 85 // the current position and the end of the buffered data.
86 bool EndOfStream(PipelineStatus status); 86 bool EndOfStream(PipelineStatus status);
87 void Shutdown(); 87 void Shutdown();
88 88
89 protected: 89 protected:
90 virtual ~ChunkDemuxer(); 90 virtual ~ChunkDemuxer();
91 91
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 std::string source_id_video_; 184 std::string source_id_video_;
185 185
186 base::TimeDelta start_time_; 186 base::TimeDelta start_time_;
187 187
188 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 188 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
189 }; 189 };
190 190
191 } // namespace media 191 } // namespace media
192 192
193 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 193 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW
« no previous file with comments | « no previous file | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698