chromium/net/socket/read_buffering_stream_socket.h

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

#ifndef NET_SOCKET_READ_BUFFERING_STREAM_SOCKET_H_
#define NET_SOCKET_READ_BUFFERING_STREAM_SOCKET_H_

#include <memory>

#include "net/base/completion_once_callback.h"
#include "net/socket/socket_test_util.h"

namespace net {

class GrowableIOBuffer;

// Wraps an existing StreamSocket that will ensure a certain amount of data is
// internally buffered before satisfying a Read() request, regardless of how
// quickly the OS receives them from the peer.
class ReadBufferingStreamSocket : public WrappedStreamSocket {};

}  // namespace net

#endif  // NET_SOCKET_READ_BUFFERING_STREAM_SOCKET_H_