diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-16 21:46:10 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-16 21:46:10 +0000 |
commit | d8a447c5f7eef2dfe00a2a80466288be0d7329f7 (patch) | |
tree | 81378251205188e2718b4fc73282e62beca1c624 /media/base/buffers.h | |
parent | f7842f9049b7c2a16e29f01d713685ab32cd4c47 (diff) | |
download | chromium_src-d8a447c5f7eef2dfe00a2a80466288be0d7329f7.zip chromium_src-d8a447c5f7eef2dfe00a2a80466288be0d7329f7.tar.gz chromium_src-d8a447c5f7eef2dfe00a2a80466288be0d7329f7.tar.bz2 |
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
Diffstat (limited to 'media/base/buffers.h')
-rw-r--r-- | media/base/buffers.h | 10 |
1 files changed, 5 insertions, 5 deletions
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<StreamSampleInterface> { 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; }; |