#include "net/socket/client_socket_handle.h"
#include <utility>
#include "base/check_op.h"
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/notreached.h"
#include "net/base/net_errors.h"
#include "net/base/trace_constants.h"
#include "net/base/tracing.h"
#include "net/log/net_log_event_type.h"
#include "net/socket/client_socket_pool.h"
#include "net/socket/connect_job.h"
namespace net {
ClientSocketHandle::ClientSocketHandle()
: … { … }
ClientSocketHandle::~ClientSocketHandle() { … }
int ClientSocketHandle::Init(
const ClientSocketPool::GroupId& group_id,
scoped_refptr<ClientSocketPool::SocketParams> socket_params,
const std::optional<NetworkTrafficAnnotationTag>& proxy_annotation_tag,
RequestPriority priority,
const SocketTag& socket_tag,
ClientSocketPool::RespectLimits respect_limits,
CompletionOnceCallback callback,
const ClientSocketPool::ProxyAuthCallback& proxy_auth_callback,
ClientSocketPool* pool,
const NetLogWithSource& net_log) { … }
void ClientSocketHandle::SetPriority(RequestPriority priority) { … }
void ClientSocketHandle::Reset() { … }
void ClientSocketHandle::ResetAndCloseSocket() { … }
LoadState ClientSocketHandle::GetLoadState() const { … }
bool ClientSocketHandle::IsPoolStalled() const { … }
void ClientSocketHandle::AddHigherLayeredPool(HigherLayeredPool* higher_pool) { … }
void ClientSocketHandle::RemoveHigherLayeredPool(
HigherLayeredPool* higher_pool) { … }
void ClientSocketHandle::CloseIdleSocketsInGroup(
const char* net_log_reason_utf8) { … }
void ClientSocketHandle::SetAdditionalErrorState(ConnectJob* connect_job) { … }
void ClientSocketHandle::OnIOComplete(int result) { … }
void ClientSocketHandle::HandleInitCompletion(int result) { … }
void ClientSocketHandle::ResetInternal(bool cancel, bool cancel_connect_job) { … }
void ClientSocketHandle::ResetErrorState() { … }
}