#include "net/http/http_stream_pool_job_controller.h"
#include <memory>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "net/base/load_states.h"
#include "net/base/net_error_details.h"
#include "net/base/request_priority.h"
#include "net/dns/public/resolve_error_info.h"
#include "net/http/http_stream_key.h"
#include "net/http/http_stream_pool.h"
#include "net/http/http_stream_pool_group.h"
#include "net/http/http_stream_pool_job.h"
#include "net/http/http_stream_request.h"
#include "net/socket/next_proto.h"
#include "net/ssl/ssl_cert_request_info.h"
#include "net/ssl/ssl_config.h"
namespace net {
HttpStreamPool::JobController::JobController(HttpStreamPool* pool)
: … { … }
HttpStreamPool::JobController::~JobController() = default;
std::unique_ptr<HttpStreamRequest> HttpStreamPool::JobController::RequestStream(
HttpStreamRequest::Delegate* delegate,
const HttpStreamKey& stream_key,
RequestPriority priority,
const std::vector<SSLConfig::CertAndStatus>& allowed_bad_certs,
bool enable_ip_based_pooling,
bool enable_alternative_services,
quic::ParsedQuicVersion quic_version,
const NetLogWithSource& net_log) { … }
void HttpStreamPool::JobController::OnStreamReady(
Job* job,
std::unique_ptr<HttpStream> stream,
NextProto negotiated_protocol) { … }
void HttpStreamPool::JobController::OnStreamFailed(
Job* job,
int status,
const NetErrorDetails& net_error_details,
ResolveErrorInfo resolve_error_info) { … }
void HttpStreamPool::JobController::OnCertificateError(
Job* job,
int status,
const SSLInfo& ssl_info) { … }
void HttpStreamPool::JobController::OnNeedsClientAuth(
Job* job,
SSLCertRequestInfo* cert_info) { … }
LoadState HttpStreamPool::JobController::GetLoadState() const { … }
void HttpStreamPool::JobController::OnRequestComplete() { … }
int HttpStreamPool::JobController::RestartTunnelWithProxyAuth() { … }
void HttpStreamPool::JobController::SetPriority(RequestPriority priority) { … }
}