| 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 <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 | 473 |
| 474 *endpoint = remote_endpoint_; | 474 *endpoint = remote_endpoint_; |
| 475 return true; | 475 return true; |
| 476 } | 476 } |
| 477 | 477 |
| 478 void HttpNetworkTransaction::PopulateNetErrorDetails( | 478 void HttpNetworkTransaction::PopulateNetErrorDetails( |
| 479 NetErrorDetails* details) const { | 479 NetErrorDetails* details) const { |
| 480 *details = net_error_details_; | 480 *details = net_error_details_; |
| 481 if (stream_) | 481 if (stream_) |
| 482 stream_->PopulateNetErrorDetails(details); | 482 stream_->PopulateNetErrorDetails(details); |
| 483 session_->PopulateNetErrorDetails(details); |
| 483 } | 484 } |
| 484 | 485 |
| 485 void HttpNetworkTransaction::SetPriority(RequestPriority priority) { | 486 void HttpNetworkTransaction::SetPriority(RequestPriority priority) { |
| 486 priority_ = priority; | 487 priority_ = priority; |
| 487 if (stream_request_) | 488 if (stream_request_) |
| 488 stream_request_->SetPriority(priority); | 489 stream_request_->SetPriority(priority); |
| 489 if (stream_) | 490 if (stream_) |
| 490 stream_->SetPriority(priority); | 491 stream_->SetPriority(priority); |
| 491 } | 492 } |
| 492 | 493 |
| (...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1787 DCHECK(stream_request_); | 1788 DCHECK(stream_request_); |
| 1788 | 1789 |
| 1789 // Since the transaction can restart with auth credentials, it may create a | 1790 // Since the transaction can restart with auth credentials, it may create a |
| 1790 // stream more than once. Accumulate all of the connection attempts across | 1791 // stream more than once. Accumulate all of the connection attempts across |
| 1791 // those streams by appending them to the vector: | 1792 // those streams by appending them to the vector: |
| 1792 for (const auto& attempt : stream_request_->connection_attempts()) | 1793 for (const auto& attempt : stream_request_->connection_attempts()) |
| 1793 connection_attempts_.push_back(attempt); | 1794 connection_attempts_.push_back(attempt); |
| 1794 } | 1795 } |
| 1795 | 1796 |
| 1796 } // namespace net | 1797 } // namespace net |
| OLD | NEW |