#include "net/socket/stream_attempt.h"
#include <memory>
#include "net/base/completion_once_callback.h"
#include "net/base/ip_endpoint.h"
#include "net/base/net_errors.h"
#include "net/http/http_network_session.h"
#include "net/log/net_log.h"
#include "net/log/net_log_with_source.h"
#include "net/socket/stream_socket.h"
#include "net/ssl/ssl_cert_request_info.h"
namespace net {
StreamAttemptParams StreamAttemptParams::FromHttpNetworkSession(
HttpNetworkSession* session) { … }
StreamAttemptParams::StreamAttemptParams(
ClientSocketFactory* client_socket_factory,
SSLClientContext* ssl_client_context,
SocketPerformanceWatcherFactory* socket_performance_watcher_factory,
NetworkQualityEstimator* network_quality_estimator,
NetLog* net_log)
: … { … }
StreamAttempt::StreamAttempt(const StreamAttemptParams* params,
IPEndPoint ip_endpoint,
NetLogSourceType net_log_source_type,
NetLogEventType net_log_attempt_event_type,
const NetLogWithSource* net_log)
: … { … }
StreamAttempt::~StreamAttempt() { … }
int StreamAttempt::Start(CompletionOnceCallback callback) { … }
std::unique_ptr<StreamSocket> StreamAttempt::ReleaseStreamSocket() { … }
scoped_refptr<SSLCertRequestInfo> StreamAttempt::GetCertRequestInfo() { … }
void StreamAttempt::SetStreamSocket(std::unique_ptr<StreamSocket> socket) { … }
void StreamAttempt::NotifyOfCompletion(int rv) { … }
void StreamAttempt::LogCompletion(int rv) { … }
}