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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 proxy_info_ = used_proxy_info; | 418 proxy_info_ = used_proxy_info; |
419 response_.was_npn_negotiated = stream_request_->was_npn_negotiated(); | 419 response_.was_npn_negotiated = stream_request_->was_npn_negotiated(); |
420 response_.npn_negotiated_protocol = SSLClientSocket::NextProtoToString( | 420 response_.npn_negotiated_protocol = SSLClientSocket::NextProtoToString( |
421 stream_request_->protocol_negotiated()); | 421 stream_request_->protocol_negotiated()); |
422 response_.was_fetched_via_spdy = stream_request_->using_spdy(); | 422 response_.was_fetched_via_spdy = stream_request_->using_spdy(); |
423 response_.was_fetched_via_proxy = !proxy_info_.is_direct(); | 423 response_.was_fetched_via_proxy = !proxy_info_.is_direct(); |
424 | 424 |
425 OnIOComplete(OK); | 425 OnIOComplete(OK); |
426 } | 426 } |
427 | 427 |
| 428 void HttpNetworkTransaction::OnSocketReady(const SSLConfig& used_ssl_config, |
| 429 const ProxyInfo& used_proxy_info, |
| 430 ClientSocketHandle* connection) { |
| 431 NOTREACHED() << "This function should never be called."; |
| 432 } |
| 433 |
| 434 void HttpNetworkTransaction::OnSpdySessionReady( |
| 435 const SSLConfig& used_ssl_config, |
| 436 const ProxyInfo& used_proxy_info, |
| 437 SpdySession* session) { |
| 438 NOTREACHED() << "This function should never be called."; |
| 439 } |
| 440 |
428 void HttpNetworkTransaction::OnStreamFailed(int result, | 441 void HttpNetworkTransaction::OnStreamFailed(int result, |
429 const SSLConfig& used_ssl_config) { | 442 const SSLConfig& used_ssl_config) { |
430 DCHECK_EQ(STATE_CREATE_STREAM_COMPLETE, next_state_); | 443 DCHECK_EQ(STATE_CREATE_STREAM_COMPLETE, next_state_); |
431 DCHECK_NE(OK, result); | 444 DCHECK_NE(OK, result); |
432 DCHECK(stream_request_.get()); | 445 DCHECK(stream_request_.get()); |
433 DCHECK(!stream_.get()); | 446 DCHECK(!stream_.get()); |
434 server_ssl_config_ = used_ssl_config; | 447 server_ssl_config_ = used_ssl_config; |
435 | 448 |
436 OnIOComplete(result); | 449 OnIOComplete(result); |
437 } | 450 } |
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1427 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, | 1440 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, |
1428 state); | 1441 state); |
1429 break; | 1442 break; |
1430 } | 1443 } |
1431 return description; | 1444 return description; |
1432 } | 1445 } |
1433 | 1446 |
1434 #undef STATE_CASE | 1447 #undef STATE_CASE |
1435 | 1448 |
1436 } // namespace net | 1449 } // namespace net |
OLD | NEW |