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

Side by Side Diff: media/base/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 mock filter. 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
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_H_ 5 #ifndef MEDIA_BASE_DEMUXER_H_
6 #define MEDIA_BASE_DEMUXER_H_ 6 #define MEDIA_BASE_DEMUXER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual void Stop() = 0; 80 virtual void Stop() = 0;
81 81
82 // Returns the starting time for the media file; it's always positive. 82 // Returns the starting time for the media file; it's always positive.
83 virtual base::TimeDelta GetStartTime() const = 0; 83 virtual base::TimeDelta GetStartTime() const = 0;
84 84
85 // Returns Time represented by presentation timestamp 0. 85 // Returns Time represented by presentation timestamp 0.
86 // If the timstamps are not associated with a Time, then 86 // If the timstamps are not associated with a Time, then
87 // a null Time is returned. 87 // a null Time is returned.
88 virtual base::Time GetTimelineOffset() const = 0; 88 virtual base::Time GetTimelineOffset() const = 0;
89 89
90 virtual int64_t GetMemoryUsage() const = 0;
xhwang 2015/10/25 17:01:56 Return value should be in bytes? How about add a
DaleCurtis 2015/10/27 23:14:20 Done.
91
90 private: 92 private:
91 DISALLOW_COPY_AND_ASSIGN(Demuxer); 93 DISALLOW_COPY_AND_ASSIGN(Demuxer);
92 }; 94 };
93 95
94 } // namespace media 96 } // namespace media
95 97
96 #endif // MEDIA_BASE_DEMUXER_H_ 98 #endif // MEDIA_BASE_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698