chromium/components/cronet/native/io_buffer_with_cronet_buffer.cc

// Copyright 2018 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/io_buffer_with_cronet_buffer.h"

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

namespace {
// Implementation of Cronet_BufferCallback that doesn't free the data as it
// is not owned by the buffer.
class Cronet_BufferCallbackUnowned : public Cronet_BufferCallback {};

}  // namespace

namespace cronet {

IOBufferWithCronet_Buffer::IOBufferWithCronet_Buffer(
    Cronet_BufferPtr cronet_buffer)
    :{}

IOBufferWithCronet_Buffer::~IOBufferWithCronet_Buffer() {}

Cronet_BufferPtr IOBufferWithCronet_Buffer::Release() {}

Cronet_BufferWithIOBuffer::Cronet_BufferWithIOBuffer(
    scoped_refptr<net::IOBuffer> io_buffer,
    size_t io_buffer_len)
    :{}

Cronet_BufferWithIOBuffer::~Cronet_BufferWithIOBuffer() = default;

}  // namespace cronet