#include "components/cronet/native/generated/cronet.idl_impl_interface.h"
#include "base/no_destructor.h"
#include "base/numerics/safe_conversions.h"
namespace {
class Cronet_BufferCallbackFree : public Cronet_BufferCallback { … };
class Cronet_BufferImpl : public Cronet_Buffer { … };
Cronet_BufferImpl::~Cronet_BufferImpl() { … }
void Cronet_BufferImpl::InitWithDataAndCallback(
Cronet_RawDataPtr data,
uint64_t size,
Cronet_BufferCallbackPtr callback) { … }
void Cronet_BufferImpl::InitWithAlloc(uint64_t size) { … }
uint64_t Cronet_BufferImpl::GetSize() { … }
Cronet_RawDataPtr Cronet_BufferImpl::GetData() { … }
}
CRONET_EXPORT Cronet_BufferPtr Cronet_Buffer_Create() { … }