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

Unified Diff: media/base/data_buffer.h

Issue 7203002: Adding ChunkDemuxer implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address CR comments Created 9 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/data_buffer.h
diff --git a/media/base/data_buffer.h b/media/base/data_buffer.h
index 2e9551a03419ec184281c5d721440f822c86262e..7f11b158bd498e6ed4d0d7d220653929d77ead6a 100644
--- a/media/base/data_buffer.h
+++ b/media/base/data_buffer.h
@@ -21,6 +21,11 @@ class DataBuffer : public Buffer {
// |buffer_size|.
DataBuffer(uint8* buffer, size_t buffer_size);
+ // Takes ownership of |buffer| if |copy| is false. If |copy| is true,
+ // a copy is made of |buffer|. Assumes |buffer_size| is the actual size
+ // of |buffer|.
+ DataBuffer(uint8* buffer, size_t buffer_size, bool copy);
scherkus (not reviewing) 2011/06/23 18:50:18 I don't think we should have this ctor: a) boole
acolwell GONE FROM CHROMIUM 2011/06/23 22:42:17 Done.
+
// Allocates buffer of size |buffer_size|. If |buffer_size| is 0, |data_| is
// set to a NULL ptr.
explicit DataBuffer(size_t buffer_size);
« no previous file with comments | « media/base/buffers.cc ('k') | media/base/data_buffer.cc » ('j') | media/ffmpeg/ffmpeg_common.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698