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 } | 115 } |
116 | 116 |
117 HttpNetworkTransaction::~HttpNetworkTransaction() { | 117 HttpNetworkTransaction::~HttpNetworkTransaction() { |
118 if (stream_.get()) { | 118 if (stream_.get()) { |
119 HttpResponseHeaders* headers = GetResponseHeaders(); | 119 HttpResponseHeaders* headers = GetResponseHeaders(); |
120 // TODO(mbelshe): The stream_ should be able to compute whether or not the | 120 // TODO(mbelshe): The stream_ should be able to compute whether or not the |
121 // stream should be kept alive. No reason to compute here | 121 // stream should be kept alive. No reason to compute here |
122 // and pass it in. | 122 // and pass it in. |
123 bool try_to_keep_alive = | 123 bool try_to_keep_alive = |
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1334 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, | 1334 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, |
1335 state); | 1335 state); |
1336 break; | 1336 break; |
1337 } | 1337 } |
1338 return description; | 1338 return description; |
1339 } | 1339 } |
1340 | 1340 |
1341 #undef STATE_CASE | 1341 #undef STATE_CASE |
1342 | 1342 |
1343 } // namespace net | 1343 } // namespace net |
OLD | NEW |