| 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 <memory> | 7 #include <memory> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 header_creation_time, | 1067 header_creation_time, |
| 1068 base::TimeDelta::FromMilliseconds(1), | 1068 base::TimeDelta::FromMilliseconds(1), |
| 1069 base::TimeDelta::FromMinutes(1), 50); | 1069 base::TimeDelta::FromMinutes(1), 50); |
| 1070 return OK; | 1070 return OK; |
| 1071 } | 1071 } |
| 1072 | 1072 |
| 1073 int HttpNetworkTransaction::DoInitRequestBody() { | 1073 int HttpNetworkTransaction::DoInitRequestBody() { |
| 1074 next_state_ = STATE_INIT_REQUEST_BODY_COMPLETE; | 1074 next_state_ = STATE_INIT_REQUEST_BODY_COMPLETE; |
| 1075 int rv = OK; | 1075 int rv = OK; |
| 1076 if (request_->upload_data_stream) | 1076 if (request_->upload_data_stream) |
| 1077 rv = request_->upload_data_stream->Init(io_callback_); | 1077 rv = request_->upload_data_stream->Init(io_callback_, net_log_); |
| 1078 return rv; | 1078 return rv; |
| 1079 } | 1079 } |
| 1080 | 1080 |
| 1081 int HttpNetworkTransaction::DoInitRequestBodyComplete(int result) { | 1081 int HttpNetworkTransaction::DoInitRequestBodyComplete(int result) { |
| 1082 if (result == OK) | 1082 if (result == OK) |
| 1083 next_state_ = STATE_BUILD_REQUEST; | 1083 next_state_ = STATE_BUILD_REQUEST; |
| 1084 return result; | 1084 return result; |
| 1085 } | 1085 } |
| 1086 | 1086 |
| 1087 int HttpNetworkTransaction::DoBuildRequest() { | 1087 int HttpNetworkTransaction::DoBuildRequest() { |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1669 DCHECK(stream_request_); | 1669 DCHECK(stream_request_); |
| 1670 | 1670 |
| 1671 // Since the transaction can restart with auth credentials, it may create a | 1671 // Since the transaction can restart with auth credentials, it may create a |
| 1672 // stream more than once. Accumulate all of the connection attempts across | 1672 // stream more than once. Accumulate all of the connection attempts across |
| 1673 // those streams by appending them to the vector: | 1673 // those streams by appending them to the vector: |
| 1674 for (const auto& attempt : stream_request_->connection_attempts()) | 1674 for (const auto& attempt : stream_request_->connection_attempts()) |
| 1675 connection_attempts_.push_back(attempt); | 1675 connection_attempts_.push_back(attempt); |
| 1676 } | 1676 } |
| 1677 | 1677 |
| 1678 } // namespace net | 1678 } // namespace net |
| OLD | NEW |