| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 user_callback_(NULL), | 101 user_callback_(NULL), |
| 102 session_(session), | 102 session_(session), |
| 103 request_(NULL), | 103 request_(NULL), |
| 104 headers_valid_(false), | 104 headers_valid_(false), |
| 105 logged_response_time_(false), | 105 logged_response_time_(false), |
| 106 request_headers_(), | 106 request_headers_(), |
| 107 read_buf_len_(0), | 107 read_buf_len_(0), |
| 108 next_state_(STATE_NONE), | 108 next_state_(STATE_NONE), |
| 109 establishing_tunnel_(false) { | 109 establishing_tunnel_(false) { |
| 110 session->ssl_config_service()->GetSSLConfig(&server_ssl_config_); | 110 session->ssl_config_service()->GetSSLConfig(&server_ssl_config_); |
| 111 if (session->http_stream_factory()->next_protos()) { | 111 if (session->http_stream_factory()->has_next_protos()) { |
| 112 server_ssl_config_.next_protos = | 112 server_ssl_config_.next_protos = |
| 113 *session->http_stream_factory()->next_protos(); | 113 session->http_stream_factory()->next_protos(); |
| 114 } | 114 } |
| 115 proxy_ssl_config_ = server_ssl_config_; | 115 proxy_ssl_config_ = server_ssl_config_; |
| 116 } | 116 } |
| 117 | 117 |
| 118 HttpNetworkTransaction::~HttpNetworkTransaction() { | 118 HttpNetworkTransaction::~HttpNetworkTransaction() { |
| 119 if (stream_.get()) { | 119 if (stream_.get()) { |
| 120 HttpResponseHeaders* headers = GetResponseHeaders(); | 120 HttpResponseHeaders* headers = GetResponseHeaders(); |
| 121 // TODO(mbelshe): The stream_ should be able to compute whether or not the | 121 // TODO(mbelshe): The stream_ should be able to compute whether or not the |
| 122 // stream should be kept alive. No reason to compute here | 122 // stream should be kept alive. No reason to compute here |
| 123 // and pass it in. | 123 // and pass it in. |
| (...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1337 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, | 1337 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, |
| 1338 state); | 1338 state); |
| 1339 break; | 1339 break; |
| 1340 } | 1340 } |
| 1341 return description; | 1341 return description; |
| 1342 } | 1342 } |
| 1343 | 1343 |
| 1344 #undef STATE_CASE | 1344 #undef STATE_CASE |
| 1345 | 1345 |
| 1346 } // namespace net | 1346 } // namespace net |
| OLD | NEW |