diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-17 20:04:29 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-17 20:04:29 +0000 |
commit | 40e5ac1f115a7905372d3414debaac63a5244886 (patch) | |
tree | 1613d237a6e69e0d1f95b1953b8b2572a9f5b52a /media/base/data_buffer.h | |
parent | b0c2bda2081e3627baac5814d6c66ef121b88515 (diff) | |
download | chromium_src-40e5ac1f115a7905372d3414debaac63a5244886.zip chromium_src-40e5ac1f115a7905372d3414debaac63a5244886.tar.gz chromium_src-40e5ac1f115a7905372d3414debaac63a5244886.tar.bz2 |
andrew's patch
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/data_buffer.h')
-rw-r--r--[-rwxr-xr-x] | media/base/data_buffer.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/media/base/data_buffer.h b/media/base/data_buffer.h index 8099d14..ab0bfc0 100755..100644 --- 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 |