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

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

Issue 178153004: Enable round-tripping and updating of WebSourceBufferImpl timestamp offset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow NULL for WSBI::append()'s |new_timestamp_offset| parameter Created 6 years, 10 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 std::vector<std::string>& codecs); 92 std::vector<std::string>& codecs);
93 93
94 // Removed an ID & associated resources that were previously added with 94 // Removed an ID & associated resources that were previously added with
95 // AddId(). 95 // AddId().
96 void RemoveId(const std::string& id); 96 void RemoveId(const std::string& id);
97 97
98 // Gets the currently buffered ranges for the specified ID. 98 // Gets the currently buffered ranges for the specified ID.
99 Ranges<base::TimeDelta> GetBufferedRanges(const std::string& id) const; 99 Ranges<base::TimeDelta> GetBufferedRanges(const std::string& id) const;
100 100
101 // Appends media data to the source buffer associated with |id|. 101 // Appends media data to the source buffer associated with |id|.
102 void AppendData(const std::string& id, const uint8* data, size_t length); 102 // If the append does not update the source buffer's timestamp offset,
103 // sets |*new_timestamp_offset| to kNoTimestamp(). Otherwise, sets it to the
104 // updated timestamp offset.
105 void AppendData(const std::string& id, const uint8* data, size_t length,
106 base::TimeDelta* new_timestamp_offset);
103 107
104 // Aborts parsing the current segment and reset the parser to a state where 108 // Aborts parsing the current segment and reset the parser to a state where
105 // it can accept a new segment. 109 // it can accept a new segment.
106 void Abort(const std::string& id); 110 void Abort(const std::string& id);
107 111
108 // Remove buffers between |start| and |end| for the source buffer 112 // Remove buffers between |start| and |end| for the source buffer
109 // associated with |id|. 113 // associated with |id|.
110 void Remove(const std::string& id, base::TimeDelta start, 114 void Remove(const std::string& id, base::TimeDelta start,
111 base::TimeDelta end); 115 base::TimeDelta end);
112 116
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // removed with RemoveID() but can not be re-added (yet). 277 // removed with RemoveID() but can not be re-added (yet).
274 std::string source_id_audio_; 278 std::string source_id_audio_;
275 std::string source_id_video_; 279 std::string source_id_video_;
276 280
277 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 281 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
278 }; 282 };
279 283
280 } // namespace media 284 } // namespace media
281 285
282 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 286 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698