Lines Matching defs:DataBuffer
23 class MEDIA_EXPORT DataBuffer : public base::RefCountedThreadSafe<DataBuffer> {
26 explicit DataBuffer(int buffer_size);
29 DataBuffer(scoped_ptr<uint8[]> buffer, int buffer_size);
31 // Create a DataBuffer whose |data_| is copied from |data|.
34 static scoped_refptr<DataBuffer> CopyFrom(const uint8* data, int size);
36 // Create a DataBuffer indicating we've reached end of stream.
40 static scoped_refptr<DataBuffer> CreateEOSBuffer();
90 friend class base::RefCountedThreadSafe<DataBuffer>;
96 DataBuffer(const uint8* data, int data_size);
98 virtual ~DataBuffer();
108 DISALLOW_COPY_AND_ASSIGN(DataBuffer);