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

Unified Diff: media/base/demuxer_stream.h

Issue 1171263004: Allow setting memory limits on media::DemuxerStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 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_stream.h
diff --git a/media/base/demuxer_stream.h b/media/base/demuxer_stream.h
index 596ab67e83692aba287f11e6c1488a623ffee8e6..b900617bff9ddc8d7d5bdb1f5498c21e554f8c23 100644
--- a/media/base/demuxer_stream.h
+++ b/media/base/demuxer_stream.h
@@ -91,6 +91,12 @@ class MEDIA_EXPORT DemuxerStream {
virtual VideoRotation video_rotation() = 0;
+ // Get the maximum amount of data that this DemuxerStream is allowed to buffer
philipj_slow 2015/06/11 08:44:05 I suppose document the unit, bytes?
servolk 2015/06/12 00:50:48 Done.
+ virtual int GetMemoryLimit() const = 0;
+
+ // Set the maximum amount of data that this DemuxerStream is allowed to buffer
+ virtual void SetMemoryLimit(int memory_limit) = 0;
+
protected:
// Only allow concrete implementations to get deleted.
virtual ~DemuxerStream();

Powered by Google App Engine
This is Rietveld 408576698