Chromium Code Reviews| 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/url_request/url_request_http_job.h" | 5 #include "net/url_request/url_request_http_job.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1571 DCHECK(transaction_->GetResponseInfo()); | 1571 DCHECK(transaction_->GetResponseInfo()); |
| 1572 return override_response_headers_.get() ? | 1572 return override_response_headers_.get() ? |
| 1573 override_response_headers_ : | 1573 override_response_headers_ : |
| 1574 transaction_->GetResponseInfo()->headers; | 1574 transaction_->GetResponseInfo()->headers; |
| 1575 } | 1575 } |
| 1576 | 1576 |
| 1577 void URLRequestHttpJob::NotifyURLRequestDestroyed() { | 1577 void URLRequestHttpJob::NotifyURLRequestDestroyed() { |
| 1578 awaiting_callback_ = false; | 1578 awaiting_callback_ = false; |
| 1579 } | 1579 } |
| 1580 | 1580 |
| 1581 void URLRequestHttpJob::SetPriority(RequestPriority priority) { | |
|
mmenke
2013/03/12 18:40:22
request_info_.priority = priority;?
We may want t
akalin
2013/03/12 22:08:28
Done, added TODO to separate out priority.
| |
| 1582 if (transaction_.get()) | |
|
mmenke
2013/03/12 18:40:22
nit: "transaction_" is now preferred. This file
akalin
2013/03/12 22:08:28
Done.
| |
| 1583 transaction_->SetPriority(priority); | |
| 1584 } | |
| 1585 | |
| 1581 void URLRequestHttpJob::OnDetachRequest() { | 1586 void URLRequestHttpJob::OnDetachRequest() { |
| 1582 http_transaction_delegate_->OnDetachRequest(); | 1587 http_transaction_delegate_->OnDetachRequest(); |
| 1583 } | 1588 } |
| 1584 | 1589 |
| 1585 } // namespace net | 1590 } // namespace net |
| OLD | NEW |