OLD | NEW |
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 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 if (!spdy_session->HasAcceptableTransportSecurity()) { | 1341 if (!spdy_session->HasAcceptableTransportSecurity()) { |
1342 spdy_session->CloseSessionOnError( | 1342 spdy_session->CloseSessionOnError( |
1343 ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY, ""); | 1343 ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY, ""); |
1344 return ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY; | 1344 return ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY; |
1345 } | 1345 } |
1346 | 1346 |
1347 SSLInfo ssl_info; | 1347 SSLInfo ssl_info; |
1348 bool was_npn_negotiated; | 1348 bool was_npn_negotiated; |
1349 NextProto protocol_negotiated; | 1349 NextProto protocol_negotiated; |
1350 if (spdy_session->GetSSLInfo(&ssl_info, &was_npn_negotiated, | 1350 if (spdy_session->GetSSLInfo(&ssl_info, &was_npn_negotiated, |
1351 &protocol_negotiated) && | 1351 &protocol_negotiated)) { |
1352 spdy_session->GetProtocolVersion() >= HTTP2) { | |
1353 UMA_HISTOGRAM_SPARSE_SLOWLY( | 1352 UMA_HISTOGRAM_SPARSE_SLOWLY( |
1354 "Net.Http2SSLCipherSuite", | 1353 "Net.Http2SSLCipherSuite", |
1355 SSLConnectionStatusToCipherSuite(ssl_info.connection_status)); | 1354 SSLConnectionStatusToCipherSuite(ssl_info.connection_status)); |
1356 } | 1355 } |
1357 | 1356 |
1358 new_spdy_session_ = spdy_session; | 1357 new_spdy_session_ = spdy_session; |
1359 spdy_session_direct_ = direct; | 1358 spdy_session_direct_ = direct; |
1360 const HostPortPair host_port_pair = spdy_session_key.host_port_pair(); | 1359 const HostPortPair host_port_pair = spdy_session_key.host_port_pair(); |
1361 bool is_https = ssl_info.is_valid(); | 1360 bool is_https = ssl_info.is_valid(); |
1362 url::SchemeHostPort scheme_host_port(is_https ? "https" : "http", | 1361 url::SchemeHostPort scheme_host_port(is_https ? "https" : "http", |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1727 | 1726 |
1728 ConnectionAttempts socket_attempts = connection_->connection_attempts(); | 1727 ConnectionAttempts socket_attempts = connection_->connection_attempts(); |
1729 if (connection_->socket()) { | 1728 if (connection_->socket()) { |
1730 connection_->socket()->GetConnectionAttempts(&socket_attempts); | 1729 connection_->socket()->GetConnectionAttempts(&socket_attempts); |
1731 } | 1730 } |
1732 | 1731 |
1733 delegate_->AddConnectionAttemptsToRequest(this, socket_attempts); | 1732 delegate_->AddConnectionAttemptsToRequest(this, socket_attempts); |
1734 } | 1733 } |
1735 | 1734 |
1736 } // namespace net | 1735 } // namespace net |
OLD | NEW |