summaryrefslogtreecommitdiffstats
path: root/media/base/data_buffer.h
diff options
context:
space:
mode:
authorvrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-04 21:19:08 +0000
committervrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-04 21:19:08 +0000
commit0ab4f055b3b70db9f93656f87341a1fdccf78676 (patch)
treed1d03b23839ff9c15604c07080d0131a9eb605f9 /media/base/data_buffer.h
parente43603d82df2837c1303f7c5677f2e6bfe330f54 (diff)
downloadchromium_src-0ab4f055b3b70db9f93656f87341a1fdccf78676.zip
chromium_src-0ab4f055b3b70db9f93656f87341a1fdccf78676.tar.gz
chromium_src-0ab4f055b3b70db9f93656f87341a1fdccf78676.tar.bz2
Add initial implementation of SourceBufferStream
This CL doesn't integrate SourceBufferStream into Chromium yet, but the functionality is tested in the unit test. BUG=125092 TEST=media_unittests Review URL: https://chromiumcodereview.appspot.com/10228017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135441 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/data_buffer.h')
-rw-r--r--media/base/data_buffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/media/base/data_buffer.h b/media/base/data_buffer.h
index 8ba6956..136bb85 100644
--- a/media/base/data_buffer.h
+++ b/media/base/data_buffer.h
@@ -50,6 +50,9 @@ class MEDIA_EXPORT DataBuffer : public Buffer {
virtual ~DataBuffer();
private:
+ // Helper method to allocate |data_| with at least |buffer_size| bytes.
+ void AllocateBuffer(int buffer_size);
+
scoped_array<uint8> data_;
int buffer_size_;
int data_size_;