diff options
Diffstat (limited to 'media/base/data_buffer.h')
-rwxr-xr-x[-rw-r--r--] | media/base/data_buffer.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/media/base/data_buffer.h b/media/base/data_buffer.h index ab0bfc0..8099d14 100644..100755 --- a/media/base/data_buffer.h +++ b/media/base/data_buffer.h @@ -16,29 +16,23 @@ namespace media { class DataBuffer : public WritableBuffer { public: - 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); + DataBuffer(); // Buffer implementation. - virtual const char* GetData() const; + virtual const uint8* GetData() const; virtual size_t GetDataSize() const; // WritableBuffer implementation. - virtual char* GetWritableData(); - virtual size_t GetBufferSize() const; + virtual uint8* GetWritableData(size_t buffer_size); virtual void SetDataSize(size_t data_size); protected: virtual ~DataBuffer(); private: - char* data_; + uint8* data_; size_t buffer_size_; size_t data_size_; - DeleteBuffer delete_buffer_; }; } // namespace media |