diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-02-04 17:20:24 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-02-12 08:15:25 +0000 |
commit | 8fa0776f1f79e91fc9c0b9c1ba11a0a29c05196b (patch) | |
tree | 788d8d7549712682703a0310ca4a0f0860d4802b /chromium/net/http/http_stream_factory_job_controller.cc | |
parent | 606d85f2a5386472314d39923da28c70c60dc8e7 (diff) | |
download | qtwebengine-chromium-8fa0776f1f79e91fc9c0b9c1ba11a0a29c05196b.tar.gz |
BASELINE: Update Chromium to 98.0.4758.90
Change-Id: Ib7c41539bf8a8e0376bd639f27d68294de90f3c8
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/net/http/http_stream_factory_job_controller.cc')
-rw-r--r-- | chromium/net/http/http_stream_factory_job_controller.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chromium/net/http/http_stream_factory_job_controller.cc b/chromium/net/http/http_stream_factory_job_controller.cc index 38a8b9ebe05..dbd06029d26 100644 --- a/chromium/net/http/http_stream_factory_job_controller.cc +++ b/chromium/net/http/http_stream_factory_job_controller.cc @@ -83,6 +83,20 @@ void ConvertWsToHttp(url::SchemeHostPort& input) { input = url::SchemeHostPort(url::kHttpsScheme, input.host(), input.port()); } +void HistogramProxyUsed(const ProxyInfo& proxy_info, bool success) { + const ProxyServer::Scheme max_scheme = ProxyServer::Scheme::SCHEME_QUIC; + ProxyServer::Scheme proxy_scheme = ProxyServer::Scheme::SCHEME_DIRECT; + if (!proxy_info.is_empty()) + proxy_scheme = proxy_info.proxy_server().scheme(); + if (success) { + UMA_HISTOGRAM_ENUMERATION("Net.HttpJob.ProxyTypeSuccess", proxy_scheme, + max_scheme); + } else { + UMA_HISTOGRAM_ENUMERATION("Net.HttpJob.ProxyTypeFailed", proxy_scheme, + max_scheme); + } +} + } // namespace // The maximum time to wait for the alternate job to complete before resuming @@ -286,6 +300,8 @@ void HttpStreamFactory::JobController::OnStreamReady( CHECK(request_); DCHECK(request_->completed()); + + HistogramProxyUsed(job->proxy_info(), /*success=*/true); delegate_->OnStreamReady(used_ssl_config, job->proxy_info(), std::move(stream)); } @@ -391,6 +407,8 @@ void HttpStreamFactory::JobController::OnStreamFailed( RunLoop(status); return; } + + HistogramProxyUsed(job->proxy_info(), /*success=*/false); delegate_->OnStreamFailed(status, *job->net_error_details(), used_ssl_config, job->proxy_info(), job->resolve_error_info()); } |