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

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

Issue 2141993002: Remove many-many SpdyMajorVersion and NextProto arguments and members. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove OnSynStream() and OnSynReply(). Created 4 years, 5 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
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/quic/bidirectional_stream_quic_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <utility> 9 #include <utility>
10 10
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/quic/bidirectional_stream_quic_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698