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