From 40e5ac1f115a7905372d3414debaac63a5244886 Mon Sep 17 00:00:00 2001 From: "hclam@chromium.org" Date: Tue, 17 Mar 2009 20:04:29 +0000 Subject: andrew's patch git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11904 0039d316-1c4b-4281-b951-d872f2087c98 --- media/base/data_buffer.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) mode change 100755 => 100644 media/base/data_buffer.h (limited to 'media/base/data_buffer.h') diff --git a/media/base/data_buffer.h b/media/base/data_buffer.h old mode 100755 new mode 100644 index 8099d14..ab0bfc0 --- a/media/base/data_buffer.h +++ b/media/base/data_buffer.h @@ -16,23 +16,29 @@ namespace media { class DataBuffer : public WritableBuffer { public: - DataBuffer(); + typedef void (*DeleteBuffer)(void*); + + DataBuffer(char* data, size_t buffer_size, size_t data_size, + const base::TimeDelta& timestamp, const base::TimeDelta& duration, + DeleteBuffer delete_buffer = NULL); // Buffer implementation. - virtual const uint8* GetData() const; + virtual const char* GetData() const; virtual size_t GetDataSize() const; // WritableBuffer implementation. - virtual uint8* GetWritableData(size_t buffer_size); + virtual char* GetWritableData(); + virtual size_t GetBufferSize() const; virtual void SetDataSize(size_t data_size); protected: virtual ~DataBuffer(); private: - uint8* data_; + char* data_; size_t buffer_size_; size_t data_size_; + DeleteBuffer delete_buffer_; }; } // namespace media -- cgit v1.1