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

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

Issue 1409123005: Add methods for telling V8 how much memory audio/video is using. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix html viewer. Created 5 years, 1 month 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
« no previous file with comments | « media/filters/audio_renderer_algorithm_unittest.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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // |enable_text| Process inband text tracks in the normal way when true, 176 // |enable_text| Process inband text tracks in the normal way when true,
177 // otherwise ignore them. 177 // otherwise ignore them.
178 void Initialize(DemuxerHost* host, 178 void Initialize(DemuxerHost* host,
179 const PipelineStatusCB& cb, 179 const PipelineStatusCB& cb,
180 bool enable_text_tracks) override; 180 bool enable_text_tracks) override;
181 void Stop() override; 181 void Stop() override;
182 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; 182 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override;
183 base::Time GetTimelineOffset() const override; 183 base::Time GetTimelineOffset() const override;
184 DemuxerStream* GetStream(DemuxerStream::Type type) override; 184 DemuxerStream* GetStream(DemuxerStream::Type type) override;
185 base::TimeDelta GetStartTime() const override; 185 base::TimeDelta GetStartTime() const override;
186 int64_t GetMemoryUsage() const override;
186 187
187 // Methods used by an external object to control this demuxer. 188 // Methods used by an external object to control this demuxer.
188 // 189 //
189 // Indicates that a new Seek() call is on its way. Any pending Reads on the 190 // Indicates that a new Seek() call is on its way. Any pending Reads on the
190 // DemuxerStream objects should be aborted immediately inside this call and 191 // DemuxerStream objects should be aborted immediately inside this call and
191 // future Read calls should return kAborted until the Seek() call occurs. 192 // future Read calls should return kAborted until the Seek() call occurs.
192 // This method MUST ALWAYS be called before Seek() is called to signal that 193 // This method MUST ALWAYS be called before Seek() is called to signal that
193 // the next Seek() call represents the seek point we actually want to return 194 // the next Seek() call represents the seek point we actually want to return
194 // data for. 195 // data for.
195 // |seek_time| - The presentation timestamp for the seek that triggered this 196 // |seek_time| - The presentation timestamp for the seek that triggered this
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 417
417 // Indicates that splice frame generation is enabled. 418 // Indicates that splice frame generation is enabled.
418 const bool splice_frames_enabled_; 419 const bool splice_frames_enabled_;
419 420
420 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 421 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
421 }; 422 };
422 423
423 } // namespace media 424 } // namespace media
424 425
425 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 426 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW
« no previous file with comments | « media/filters/audio_renderer_algorithm_unittest.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698