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

Unified 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, 2 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 side-by-side diff with in-line comments
Download patch
Index: media/base/demuxer.h
diff --git a/media/base/demuxer.h b/media/base/demuxer.h
index 91f389d0175810f21c70b0985ada386855adec20..54807ce8bccb249f7ed8e6ebecf87b634d057157 100644
--- a/media/base/demuxer.h
+++ b/media/base/demuxer.h
@@ -87,6 +87,8 @@ class MEDIA_EXPORT Demuxer : public DemuxerStreamProvider {
// a null Time is returned.
virtual base::Time GetTimelineOffset() const = 0;
+ 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.
+
private:
DISALLOW_COPY_AND_ASSIGN(Demuxer);
};

Powered by Google App Engine
This is Rietveld 408576698