summaryrefslogtreecommitdiff
path: root/chromium/net/http/http_stream_factory_job_controller.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-03-11 11:32:04 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-03-18 13:40:17 +0000
commit31ccca0778db85c159634478b4ec7997f6704860 (patch)
tree3d33fc3afd9d5ec95541e1bbe074a9cf8da12a0e /chromium/net/http/http_stream_factory_job_controller.cc
parent248b70b82a40964d5594eb04feca0fa36716185d (diff)
downloadqtwebengine-chromium-31ccca0778db85c159634478b4ec7997f6704860.tar.gz
BASELINE: Update Chromium to 80.0.3987.136
Change-Id: I98e1649aafae85ba3a83e67af00bb27ef301db7b Reviewed-by: Jüri Valdmann <juri.valdmann@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.cc19
1 files changed, 13 insertions, 6 deletions
diff --git a/chromium/net/http/http_stream_factory_job_controller.cc b/chromium/net/http/http_stream_factory_job_controller.cc
index f5aef341c70..932e74e4160 100644
--- a/chromium/net/http/http_stream_factory_job_controller.cc
+++ b/chromium/net/http/http_stream_factory_job_controller.cc
@@ -621,8 +621,8 @@ int HttpStreamFactory::JobController::DoResolveProxy() {
CompletionOnceCallback io_callback =
base::BindOnce(&JobController::OnIOComplete, base::Unretained(this));
return session_->proxy_resolution_service()->ResolveProxy(
- origin_url, request_info_.method, &proxy_info_, std::move(io_callback),
- &proxy_resolve_request_, net_log_);
+ origin_url, request_info_.method, request_info_.network_isolation_key,
+ &proxy_info_, std::move(io_callback), &proxy_resolve_request_, net_log_);
}
int HttpStreamFactory::JobController::DoResolveProxyComplete(int rv) {
@@ -998,6 +998,7 @@ HttpStreamFactory::JobController::GetAlternativeServiceInfoInternal(
// First alternative service that is not marked as broken.
AlternativeServiceInfo first_alternative_service_info;
+ bool is_any_broken = false;
for (const AlternativeServiceInfo& alternative_service_info :
alternative_service_info_vector) {
DCHECK(IsAlternateProtocolValid(alternative_service_info.protocol()));
@@ -1011,7 +1012,11 @@ HttpStreamFactory::JobController::GetAlternativeServiceInfoInternal(
return NetLogAltSvcParams(&alternative_service_info, is_broken);
});
if (is_broken) {
- HistogramAlternateProtocolUsage(ALTERNATE_PROTOCOL_USAGE_BROKEN, false);
+ if (!is_any_broken) {
+ // Only log the broken alternative service once per request.
+ is_any_broken = true;
+ HistogramAlternateProtocolUsage(ALTERNATE_PROTOCOL_USAGE_BROKEN, false);
+ }
continue;
}
@@ -1044,7 +1049,9 @@ HttpStreamFactory::JobController::GetAlternativeServiceInfoInternal(
continue;
if (stream_type == HttpStreamRequest::BIDIRECTIONAL_STREAM &&
- session_->params().quic_params.disable_bidirectional_streams) {
+ session_->context()
+ .quic_context->params()
+ ->disable_bidirectional_streams) {
continue;
}
@@ -1066,7 +1073,7 @@ HttpStreamFactory::JobController::GetAlternativeServiceInfoInternal(
HostPortPair destination(alternative_service_info.host_port_pair());
if (session_key.host() != destination.host() &&
- !session_->params().quic_params.allow_remote_alt_svc) {
+ !session_->context().quic_context->params()->allow_remote_alt_svc) {
continue;
}
ignore_result(ApplyHostMappingRules(original_url, &destination));
@@ -1093,7 +1100,7 @@ HttpStreamFactory::JobController::GetAlternativeServiceInfoInternal(
quic::ParsedQuicVersion HttpStreamFactory::JobController::SelectQuicVersion(
const quic::ParsedQuicVersionVector& advertised_versions) {
const quic::ParsedQuicVersionVector& supported_versions =
- session_->params().quic_params.supported_versions;
+ session_->context().quic_context->params()->supported_versions;
if (advertised_versions.empty())
return supported_versions[0];