#include "net/socket/read_buffering_stream_socket.h"
#include <algorithm>
#include "base/check_op.h"
#include "base/notreached.h"
#include "net/base/io_buffer.h"
namespace net {
ReadBufferingStreamSocket::ReadBufferingStreamSocket(
std::unique_ptr<StreamSocket> transport)
: … { … }
ReadBufferingStreamSocket::~ReadBufferingStreamSocket() = default;
void ReadBufferingStreamSocket::BufferNextRead(int size) { … }
int ReadBufferingStreamSocket::Read(IOBuffer* buf,
int buf_len,
CompletionOnceCallback callback) { … }
int ReadBufferingStreamSocket::ReadIfReady(IOBuffer* buf,
int buf_len,
CompletionOnceCallback callback) { … }
int ReadBufferingStreamSocket::DoLoop(int result) { … }
int ReadBufferingStreamSocket::DoRead() { … }
int ReadBufferingStreamSocket::DoReadComplete(int result) { … }
void ReadBufferingStreamSocket::OnReadCompleted(int result) { … }
int ReadBufferingStreamSocket::CopyToCaller(IOBuffer* buf, int buf_len) { … }
}