#include "remoting/base/socket_reader.h"
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/socket/socket.h"
namespace remoting {
namespace {
int kReadBufferSize = …;
}
SocketReader::SocketReader() : … { … }
SocketReader::~SocketReader() = default;
void SocketReader::Init(net::Socket* socket,
ReadResultCallback read_result_callback) { … }
void SocketReader::DoRead() { … }
void SocketReader::OnRead(int result) { … }
void SocketReader::HandleReadResult(int result) { … }
void SocketReader::CallCallback(scoped_refptr<net::IOBuffer> data, int result) { … }
}