Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1276)

Unified Diff: media/base/buffers.h

Issue 13682: Checking in media::DataBuffer, a simple implementation of WritableBufferInterface. (Closed)
Patch Set: it try Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/data_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/buffers.h
diff --git a/media/base/buffers.h b/media/base/buffers.h
index bf06a9af7c7921304e633baf1a66ee85963d9858..13d35f52b4f2120d44a3060ee5c05aa201672455 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;
};
« no previous file with comments | « no previous file | media/base/data_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698