#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "net/server/http_connection.h"
#include <utility>
#include "base/logging.h"
#include "net/server/web_socket.h"
#include "net/socket/stream_socket.h"
namespace net {
HttpConnection::ReadIOBuffer::ReadIOBuffer()
: … { … }
HttpConnection::ReadIOBuffer::~ReadIOBuffer() { … }
int HttpConnection::ReadIOBuffer::GetCapacity() const { … }
void HttpConnection::ReadIOBuffer::SetCapacity(int capacity) { … }
bool HttpConnection::ReadIOBuffer::IncreaseCapacity() { … }
char* HttpConnection::ReadIOBuffer::StartOfBuffer() const { … }
int HttpConnection::ReadIOBuffer::GetSize() const { … }
void HttpConnection::ReadIOBuffer::DidRead(int bytes) { … }
int HttpConnection::ReadIOBuffer::RemainingCapacity() const { … }
void HttpConnection::ReadIOBuffer::DidConsume(int bytes) { … }
HttpConnection::QueuedWriteIOBuffer::QueuedWriteIOBuffer() = default;
HttpConnection::QueuedWriteIOBuffer::~QueuedWriteIOBuffer() { … }
bool HttpConnection::QueuedWriteIOBuffer::IsEmpty() const { … }
bool HttpConnection::QueuedWriteIOBuffer::Append(const std::string& data) { … }
void HttpConnection::QueuedWriteIOBuffer::DidConsume(int size) { … }
int HttpConnection::QueuedWriteIOBuffer::GetSizeToWrite() const { … }
HttpConnection::HttpConnection(int id, std::unique_ptr<StreamSocket> socket)
: … { … }
HttpConnection::~HttpConnection() = default;
void HttpConnection::SetWebSocket(std::unique_ptr<WebSocket> web_socket) { … }
}