summaryrefslogtreecommitdiffstats
path: root/media/base/seekable_buffer.h
diff options
context:
space:
mode:
authorslock@chromium.org <slock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-13 22:58:05 +0000
committerslock@chromium.org <slock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-13 22:58:05 +0000
commit15386748d0bd6f161841f5eb3c6506839a22e5e0 (patch)
tree49bcbffc3fd9ddde4dc089a7e52d2f96e29bb468 /media/base/seekable_buffer.h
parent35d90072e5c73f4091eeb12f26e6c5015e7597c0 (diff)
downloadchromium_src-15386748d0bd6f161841f5eb3c6506839a22e5e0.zip
chromium_src-15386748d0bd6f161841f5eb3c6506839a22e5e0.tar.gz
chromium_src-15386748d0bd6f161841f5eb3c6506839a22e5e0.tar.bz2
Added extending forward_capacity for large reads.
BUG=42956 TEST=test_shell_tests Review URL: http://codereview.chromium.org/7227016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92435 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/seekable_buffer.h')
-rw-r--r--media/base/seekable_buffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/media/base/seekable_buffer.h b/media/base/seekable_buffer.h
index 44e4c7a..cad9be5 100644
--- a/media/base/seekable_buffer.h
+++ b/media/base/seekable_buffer.h
@@ -98,6 +98,11 @@ class SeekableBuffer {
// position.
size_t backward_bytes() const { return backward_bytes_; }
+ // Sets the forward_capacity to |new_forward_capacity| bytes.
+ void set_forward_capacity(size_t new_forward_capacity) {
+ forward_capacity_ = new_forward_capacity;
+ }
+
// Returns the maximum number of bytes that should be kept in the forward
// direction.
size_t forward_capacity() const { return forward_capacity_; }