From d8a447c5f7eef2dfe00a2a80466288be0d7329f7 Mon Sep 17 00:00:00 2001 From: "scherkus@chromium.org" Date: Tue, 16 Dec 2008 21:46:10 +0000 Subject: Checking in media::DataBuffer, a simple implementation of WritableBufferInterface. Removed media/base/media.cc, since it's no longer needed to generate media.lib. Also added media/using_media.scons and updated scons files for Linux build. Review URL: http://codereview.chromium.org/13682 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7099 0039d316-1c4b-4281-b951-d872f2087c98 --- media/base/buffers.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'media/base/buffers.h') diff --git a/media/base/buffers.h b/media/base/buffers.h index bf06a9a..13d35f5 100644 --- a/media/base/buffers.h +++ b/media/base/buffers.h @@ -35,10 +35,10 @@ class StreamSampleInterface : public base::RefCountedThreadSafe { public: // Returns the timestamp of this buffer in microseconds. - virtual int64 GetTimestamp() = 0; + virtual int64 GetTimestamp() const = 0; // Returns the duration of this buffer in microseconds. - virtual int64 GetDuration() = 0; + virtual int64 GetDuration() const = 0; // Sets the timestamp of this buffer in microseconds. virtual void SetTimestamp(int64 timestamp) = 0; @@ -55,10 +55,10 @@ class StreamSampleInterface : class BufferInterface : public StreamSampleInterface { public: // Returns a read only pointer to the buffer data. - virtual const char* GetData() = 0; + virtual const char* GetData() const = 0; // Returns the size of valid data in bytes. - virtual size_t GetDataSize() = 0; + virtual size_t GetDataSize() const = 0; }; @@ -72,7 +72,7 @@ class WritableBufferInterface : public BufferInterface { virtual void SetDataSize(size_t data_size) = 0; // Returns the maximum allocated size for this buffer. - virtual size_t GetBufferSize() = 0; + virtual size_t GetBufferSize() const = 0; }; -- cgit v1.1