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

Unified Diff: media/base/buffers.h

Issue 7203002: Adding ChunkDemuxer implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More cleanup & commenting 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
« no previous file with comments | « no previous file | media/base/buffers.cc » ('j') | media/ffmpeg/ffmpeg_common.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/buffers.h
diff --git a/media/base/buffers.h b/media/base/buffers.h
index 8c5c219bc0cf131c6273738fbb09f670c55be792..05a613671ba711dd50059402e76d9a81394054f9 100644
--- a/media/base/buffers.h
+++ b/media/base/buffers.h
@@ -91,6 +91,25 @@ class Buffer : public StreamSample {
virtual ~Buffer() {}
};
+// Simple implementation of the Buffer interface.
+// NOTE: This class makes a copy of the data passed to the contructor.
+class BufferImpl : public Buffer {
scherkus (not reviewing) 2011/06/22 17:31:09 so DataBuffer didn't do the trick? also: this has
acolwell GONE FROM CHROMIUM 2011/06/23 16:51:28 oops. totally missed that class. I've updated the
+ public:
+ BufferImpl(const base::TimeDelta& timestamp,
+ const base::TimeDelta& duration,
+ const uint8* data, size_t size);
+ virtual ~BufferImpl();
+
+ // Buffer implementation.
+ virtual const uint8* GetData() const;
+ virtual size_t GetDataSize() const;
+
+ private:
+ uint8* data_;
scherkus (not reviewing) 2011/06/22 17:31:09 scoped_ptr ?
acolwell GONE FROM CHROMIUM 2011/06/23 16:51:28 No longer needed.
+ size_t size_;
+
+ DISALLOW_IMPLICIT_CONSTRUCTORS(BufferImpl);
+};
} // namespace media
#endif // MEDIA_BASE_BUFFERS_H_
« no previous file with comments | « no previous file | media/base/buffers.cc » ('j') | media/ffmpeg/ffmpeg_common.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698