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

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

Issue 2195273003: Deprecate SPDY/3.1 and draft HTTP/2 enum values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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_server_properties.cc ('k') | net/net.gypi » ('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 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 if (ssl_socket->WasNpnNegotiated()) { 1017 if (ssl_socket->WasNpnNegotiated()) {
1018 was_npn_negotiated_ = true; 1018 was_npn_negotiated_ = true;
1019 std::string proto; 1019 std::string proto;
1020 SSLClientSocket::NextProtoStatus status = 1020 SSLClientSocket::NextProtoStatus status =
1021 ssl_socket->GetNextProto(&proto); 1021 ssl_socket->GetNextProto(&proto);
1022 protocol_negotiated_ = SSLClientSocket::NextProtoFromString(proto); 1022 protocol_negotiated_ = SSLClientSocket::NextProtoFromString(proto);
1023 net_log_.AddEvent( 1023 net_log_.AddEvent(
1024 NetLog::TYPE_HTTP_STREAM_REQUEST_PROTO, 1024 NetLog::TYPE_HTTP_STREAM_REQUEST_PROTO,
1025 base::Bind(&NetLogHttpStreamProtoCallback, 1025 base::Bind(&NetLogHttpStreamProtoCallback,
1026 status, &proto)); 1026 status, &proto));
1027 if (NextProtoIsSPDY(protocol_negotiated_)) 1027 if (protocol_negotiated_ == kProtoHTTP2)
1028 SwitchToSpdyMode(); 1028 SwitchToSpdyMode();
1029 } 1029 }
1030 } 1030 }
1031 } else if (proxy_info_.is_https() && connection_->socket() && 1031 } else if (proxy_info_.is_https() && connection_->socket() &&
1032 result == OK) { 1032 result == OK) {
1033 ProxyClientSocket* proxy_socket = 1033 ProxyClientSocket* proxy_socket =
1034 static_cast<ProxyClientSocket*>(connection_->socket()); 1034 static_cast<ProxyClientSocket*>(connection_->socket());
1035 if (proxy_socket->IsUsingSpdy()) { 1035 if (proxy_socket->IsUsingSpdy()) {
1036 was_npn_negotiated_ = true; 1036 was_npn_negotiated_ = true;
1037 protocol_negotiated_ = proxy_socket->GetProtocolNegotiated(); 1037 protocol_negotiated_ = proxy_socket->GetProtocolNegotiated();
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1561 1561
1562 ConnectionAttempts socket_attempts = connection_->connection_attempts(); 1562 ConnectionAttempts socket_attempts = connection_->connection_attempts();
1563 if (connection_->socket()) { 1563 if (connection_->socket()) {
1564 connection_->socket()->GetConnectionAttempts(&socket_attempts); 1564 connection_->socket()->GetConnectionAttempts(&socket_attempts);
1565 } 1565 }
1566 1566
1567 delegate_->AddConnectionAttemptsToRequest(this, socket_attempts); 1567 delegate_->AddConnectionAttemptsToRequest(this, socket_attempts);
1568 } 1568 }
1569 1569
1570 } // namespace net 1570 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_server_properties.cc ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698