#ifndef MEDIA_BASE_BITSTREAM_BUFFER_H_
#define MEDIA_BASE_BITSTREAM_BUFFER_H_
#include "base/basictypes.h"
#include "base/memory/shared_memory.h"
namespace media {
class BitstreamBuffer {
public:
BitstreamBuffer(int32 id, base::SharedMemoryHandle handle, size_t size)
: id_(id),
handle_(handle),
size_(size) {
}
int32 id() const { return id_; }
base::SharedMemoryHandle handle() const { return handle_; }
size_t size() const { return size_; }
private:
int32 id_;
base::SharedMemoryHandle handle_;
size_t size_;
};
}
#endif