// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_BASE_DATA_BUFFER_H_ #define MEDIA_BASE_DATA_BUFFER_H_ #include <stdint.h> #include "base/check_op.h" #include "base/containers/heap_array.h" #include "base/containers/span.h" #include "base/memory/ref_counted.h" #include "base/time/time.h" #include "media/base/media_export.h" namespace media { // A simple buffer that takes ownership of the given data pointer or allocates // as necessary. // // Unlike DecoderBuffer, allocations are assumed to be allocated with the // default memory allocator (i.e., new uint8_t[]). // // NOTE: It is illegal to call any method when end_of_stream() is true. class MEDIA_EXPORT DataBuffer : public base::RefCountedThreadSafe<DataBuffer> { … }; } // namespace media #endif // MEDIA_BASE_DATA_BUFFER_H_