Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(679)

Side by Side Diff: net/url_request/url_request_http_job.cc

Issue 12701011: [Net] Propagate priority changes from URLRequest to HttpTransaction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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) {
1582 request_info_.priority = priority;
1583 if (transaction_)
1584 transaction_->SetPriority(priority);
1585 }
1586
1581 void URLRequestHttpJob::OnDetachRequest() { 1587 void URLRequestHttpJob::OnDetachRequest() {
1582 http_transaction_delegate_->OnDetachRequest(); 1588 http_transaction_delegate_->OnDetachRequest();
1583 } 1589 }
1584 1590
1585 } // namespace net 1591 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698