chromium/components/cronet/native/buffer.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/cronet/native/generated/cronet.idl_impl_interface.h"

#include "base/no_destructor.h"
#include "base/numerics/safe_conversions.h"

namespace {

// Implementation of Cronet_BufferCallback that calls free() to malloc() buffer.
class Cronet_BufferCallbackFree : public Cronet_BufferCallback {};

// Concrete implementation of abstract Cronet_Buffer interface.
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() {}

}  // namespace

CRONET_EXPORT Cronet_BufferPtr Cronet_Buffer_Create() {}