| 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_stream_factory_impl_job.h" | 5 #include "net/http/http_stream_factory_impl_job.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 // the Request class and isn't accessible from this job. | 347 // the Request class and isn't accessible from this job. |
| 348 if (connection_ && connection_->socket()) { | 348 if (connection_ && connection_->socket()) { |
| 349 connection_->socket()->Disconnect(); | 349 connection_->socket()->Disconnect(); |
| 350 } | 350 } |
| 351 stream_factory_->OnOrphanedJobComplete(this); | 351 stream_factory_->OnOrphanedJobComplete(this); |
| 352 } | 352 } |
| 353 } | 353 } |
| 354 | 354 |
| 355 void HttpStreamFactoryImpl::Job::SetPriority(RequestPriority priority) { | 355 void HttpStreamFactoryImpl::Job::SetPriority(RequestPriority priority) { |
| 356 priority_ = priority; | 356 priority_ = priority; |
| 357 // TODO(akalin): Propagate this to |connection_| and maybe the | 357 connection_->SetPriority(priority); |
| 358 // preconnect state. | 358 // TODO(akalin): Maybe Propagate this to the preconnect state. |
| 359 } | 359 } |
| 360 | 360 |
| 361 bool HttpStreamFactoryImpl::Job::was_npn_negotiated() const { | 361 bool HttpStreamFactoryImpl::Job::was_npn_negotiated() const { |
| 362 return was_npn_negotiated_; | 362 return was_npn_negotiated_; |
| 363 } | 363 } |
| 364 | 364 |
| 365 NextProto HttpStreamFactoryImpl::Job::protocol_negotiated() const { | 365 NextProto HttpStreamFactoryImpl::Job::protocol_negotiated() const { |
| 366 return protocol_negotiated_; | 366 return protocol_negotiated_; |
| 367 } | 367 } |
| 368 | 368 |
| (...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1801 if (connection_->socket()) { | 1801 if (connection_->socket()) { |
| 1802 ConnectionAttempts socket_attempts; | 1802 ConnectionAttempts socket_attempts; |
| 1803 connection_->socket()->GetConnectionAttempts(&socket_attempts); | 1803 connection_->socket()->GetConnectionAttempts(&socket_attempts); |
| 1804 request_->AddConnectionAttempts(socket_attempts); | 1804 request_->AddConnectionAttempts(socket_attempts); |
| 1805 } else { | 1805 } else { |
| 1806 request_->AddConnectionAttempts(connection_->connection_attempts()); | 1806 request_->AddConnectionAttempts(connection_->connection_attempts()); |
| 1807 } | 1807 } |
| 1808 } | 1808 } |
| 1809 | 1809 |
| 1810 } // namespace net | 1810 } // namespace net |
| OLD | NEW |