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

Unified Diff: media/base/data_buffer.h

Issue 10269022: Add StreamParserBuffer to ChunkDemuxer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to CR Created 8 years, 8 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 | « no previous file | media/base/data_buffer.cc » ('j') | media/base/data_buffer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/data_buffer.h
diff --git a/media/base/data_buffer.h b/media/base/data_buffer.h
index 15ef32ddf35d7e5572d9a838c015d85073aad905..bcd556a1b6254b283d80f8af1644e517c81b7c7f 100644
--- a/media/base/data_buffer.h
+++ b/media/base/data_buffer.h
@@ -45,9 +45,13 @@ class MEDIA_EXPORT DataBuffer : public Buffer {
virtual void SetDecryptConfig(scoped_ptr<DecryptConfig> decrypt_config);
protected:
+ DataBuffer(const uint8* data, int size);
Ami GONE FROM CHROMIUM 2012/05/02 17:57:25 // Copies from [data,data+size) to owned array.
vrk (LEFT CHROMIUM) 2012/05/02 19:55:18 Done.
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_;
« no previous file with comments | « no previous file | media/base/data_buffer.cc » ('j') | media/base/data_buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698