| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 } | 409 } |
| 410 } | 410 } |
| 411 | 411 |
| 412 uint64 HttpNetworkTransaction::GetUploadProgress() const { | 412 uint64 HttpNetworkTransaction::GetUploadProgress() const { |
| 413 if (!stream_.get()) | 413 if (!stream_.get()) |
| 414 return 0; | 414 return 0; |
| 415 | 415 |
| 416 return stream_->GetUploadProgress(); | 416 return stream_->GetUploadProgress(); |
| 417 } | 417 } |
| 418 | 418 |
| 419 void HttpNetworkTransaction::SetSSLHostInfo(SSLHostInfo* host_info) { | |
| 420 ssl_config_.ssl_host_info = host_info; | |
| 421 } | |
| 422 | |
| 423 void HttpNetworkTransaction::OnStreamReady(HttpStream* stream) { | 419 void HttpNetworkTransaction::OnStreamReady(HttpStream* stream) { |
| 424 DCHECK_EQ(STATE_CREATE_STREAM_COMPLETE, next_state_); | 420 DCHECK_EQ(STATE_CREATE_STREAM_COMPLETE, next_state_); |
| 425 DCHECK(stream_request_.get()); | 421 DCHECK(stream_request_.get()); |
| 426 | 422 |
| 427 stream_.reset(stream); | 423 stream_.reset(stream); |
| 428 response_.was_alternate_protocol_available = | 424 response_.was_alternate_protocol_available = |
| 429 stream_request_->was_alternate_protocol_available(); | 425 stream_request_->was_alternate_protocol_available(); |
| 430 response_.was_npn_negotiated = stream_request_->was_npn_negotiated(); | 426 response_.was_npn_negotiated = stream_request_->was_npn_negotiated(); |
| 431 response_.was_fetched_via_spdy = stream_request_->using_spdy(); | 427 response_.was_fetched_via_spdy = stream_request_->using_spdy(); |
| 432 response_.was_fetched_via_proxy = !proxy_info_.is_direct(); | 428 response_.was_fetched_via_proxy = !proxy_info_.is_direct(); |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1262 default: | 1258 default: |
| 1263 return priority; | 1259 return priority; |
| 1264 } | 1260 } |
| 1265 } | 1261 } |
| 1266 | 1262 |
| 1267 | 1263 |
| 1268 | 1264 |
| 1269 #undef STATE_CASE | 1265 #undef STATE_CASE |
| 1270 | 1266 |
| 1271 } // namespace net | 1267 } // namespace net |
| OLD | NEW |