Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: net/http/http_stream_factory_impl_job.cc

Issue 869393005: Perform ClientHello padding if the field trial is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@net_connection_error_uma
Patch Set: Re-implementation Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_stream_factory_impl_job.h" 5 #include "net/http/http_stream_factory_impl_job.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 UMA_HISTOGRAM_ENUMERATION("Net.GoogleConnectionUsedSSLVersionFallback", 1266 UMA_HISTOGRAM_ENUMERATION("Net.GoogleConnectionUsedSSLVersionFallback",
1267 fallback, FALLBACK_MAX); 1267 fallback, FALLBACK_MAX);
1268 } 1268 }
1269 1269
1270 if (request_info_.load_flags & LOAD_VERIFY_EV_CERT) 1270 if (request_info_.load_flags & LOAD_VERIFY_EV_CERT)
1271 ssl_config->verify_ev_cert = true; 1271 ssl_config->verify_ev_cert = true;
1272 1272
1273 // Disable Channel ID if privacy mode is enabled. 1273 // Disable Channel ID if privacy mode is enabled.
1274 if (request_info_.privacy_mode == PRIVACY_MODE_ENABLED) 1274 if (request_info_.privacy_mode == PRIVACY_MODE_ENABLED)
1275 ssl_config->channel_id_enabled = false; 1275 ssl_config->channel_id_enabled = false;
1276
1277 if (session_->ssl_config_service()->SupportsFastradioPadding(origin_server))
1278 ssl_config->fastradio_padding_eligible = true;
Ryan Sleevi 2015/02/03 00:33:47 Why isn't this passed in to the construction of th
1276 } 1279 }
1277 1280
1278 1281
1279 int HttpStreamFactoryImpl::Job::ReconsiderProxyAfterError(int error) { 1282 int HttpStreamFactoryImpl::Job::ReconsiderProxyAfterError(int error) {
1280 DCHECK(!pac_request_); 1283 DCHECK(!pac_request_);
1281 DCHECK(session_); 1284 DCHECK(session_);
1282 1285
1283 // A failure to resolve the hostname or any error related to establishing a 1286 // A failure to resolve the hostname or any error related to establishing a
1284 // TCP connection could be grounds for trying a new proxy configuration. 1287 // TCP connection could be grounds for trying a new proxy configuration.
1285 // 1288 //
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 1476
1474 if (job_status_ == STATUS_SUCCEEDED && other_job_status_ == STATUS_BROKEN) { 1477 if (job_status_ == STATUS_SUCCEEDED && other_job_status_ == STATUS_BROKEN) {
1475 HistogramBrokenAlternateProtocolLocation( 1478 HistogramBrokenAlternateProtocolLocation(
1476 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN); 1479 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN);
1477 session_->http_server_properties()->SetBrokenAlternateProtocol( 1480 session_->http_server_properties()->SetBrokenAlternateProtocol(
1478 HostPortPair::FromURL(request_info_.url)); 1481 HostPortPair::FromURL(request_info_.url));
1479 } 1482 }
1480 } 1483 }
1481 1484
1482 } // namespace net 1485 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698