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

Unified Diff: media/blink/buffered_data_source.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, 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
« no previous file with comments | « media/base/pipeline_status.h ('k') | media/blink/buffered_data_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/buffered_data_source.h
diff --git a/media/blink/buffered_data_source.h b/media/blink/buffered_data_source.h
index fd85b7cc524e3e79395313e3e59ed33015bcf250..9762050af4d4c0593d8dbaa369957d613cb520c2 100644
--- a/media/blink/buffered_data_source.h
+++ b/media/blink/buffered_data_source.h
@@ -113,6 +113,9 @@ class MEDIA_EXPORT BufferedDataSource : public DataSource {
// If already deferred, connections will be immediately closed.
void OnBufferingHaveEnough();
+ // Returns an estimate of the number of bytes held by the data source.
+ int64_t GetMemoryUsage() const;
+
// DataSource implementation.
// Called from demuxer thread.
void Stop() override;
« no previous file with comments | « media/base/pipeline_status.h ('k') | media/blink/buffered_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698