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_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 response_.was_npn_negotiated = stream_request_->was_npn_negotiated(); | 504 response_.was_npn_negotiated = stream_request_->was_npn_negotiated(); |
505 response_.npn_negotiated_protocol = SSLClientSocket::NextProtoToString( | 505 response_.npn_negotiated_protocol = SSLClientSocket::NextProtoToString( |
506 stream_request_->protocol_negotiated()); | 506 stream_request_->protocol_negotiated()); |
507 response_.was_fetched_via_spdy = stream_request_->using_spdy(); | 507 response_.was_fetched_via_spdy = stream_request_->using_spdy(); |
508 response_.was_fetched_via_proxy = !proxy_info_.is_direct(); | 508 response_.was_fetched_via_proxy = !proxy_info_.is_direct(); |
509 if (response_.was_fetched_via_proxy && !proxy_info_.is_empty()) | 509 if (response_.was_fetched_via_proxy && !proxy_info_.is_empty()) |
510 response_.proxy_server = proxy_info_.proxy_server().host_port_pair(); | 510 response_.proxy_server = proxy_info_.proxy_server().host_port_pair(); |
511 OnIOComplete(OK); | 511 OnIOComplete(OK); |
512 } | 512 } |
513 | 513 |
| 514 void HttpNetworkTransaction::OnBidirectionalStreamJobReady( |
| 515 const SSLConfig& used_ssl_config, |
| 516 const ProxyInfo& used_proxy_info, |
| 517 BidirectionalStreamJob* stream) { |
| 518 NOTREACHED(); |
| 519 } |
| 520 |
514 void HttpNetworkTransaction::OnWebSocketHandshakeStreamReady( | 521 void HttpNetworkTransaction::OnWebSocketHandshakeStreamReady( |
515 const SSLConfig& used_ssl_config, | 522 const SSLConfig& used_ssl_config, |
516 const ProxyInfo& used_proxy_info, | 523 const ProxyInfo& used_proxy_info, |
517 WebSocketHandshakeStreamBase* stream) { | 524 WebSocketHandshakeStreamBase* stream) { |
518 OnStreamReady(used_ssl_config, used_proxy_info, stream); | 525 OnStreamReady(used_ssl_config, used_proxy_info, stream); |
519 } | 526 } |
520 | 527 |
521 void HttpNetworkTransaction::OnStreamFailed(int result, | 528 void HttpNetworkTransaction::OnStreamFailed(int result, |
522 const SSLConfig& used_ssl_config, | 529 const SSLConfig& used_ssl_config, |
523 SSLFailureState ssl_failure_state) { | 530 SSLFailureState ssl_failure_state) { |
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1673 DCHECK(stream_request_); | 1680 DCHECK(stream_request_); |
1674 | 1681 |
1675 // Since the transaction can restart with auth credentials, it may create a | 1682 // Since the transaction can restart with auth credentials, it may create a |
1676 // stream more than once. Accumulate all of the connection attempts across | 1683 // stream more than once. Accumulate all of the connection attempts across |
1677 // those streams by appending them to the vector: | 1684 // those streams by appending them to the vector: |
1678 for (const auto& attempt : stream_request_->connection_attempts()) | 1685 for (const auto& attempt : stream_request_->connection_attempts()) |
1679 connection_attempts_.push_back(attempt); | 1686 connection_attempts_.push_back(attempt); |
1680 } | 1687 } |
1681 | 1688 |
1682 } // namespace net | 1689 } // namespace net |
OLD | NEW |