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

Side by Side Diff: net/url_request/url_request_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: Fix leaks 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
« no previous file with comments | « net/url_request/url_request_job.h ('k') | net/url_request/url_request_test_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_job.h" 5 #include "net/url_request/url_request_job.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 27 matching lines...) Expand all
38 if (system_monitor) 38 if (system_monitor)
39 base::SystemMonitor::Get()->AddPowerObserver(this); 39 base::SystemMonitor::Get()->AddPowerObserver(this);
40 } 40 }
41 41
42 void URLRequestJob::SetUpload(UploadDataStream* upload) { 42 void URLRequestJob::SetUpload(UploadDataStream* upload) {
43 } 43 }
44 44
45 void URLRequestJob::SetExtraRequestHeaders(const HttpRequestHeaders& headers) { 45 void URLRequestJob::SetExtraRequestHeaders(const HttpRequestHeaders& headers) {
46 } 46 }
47 47
48 void URLRequestJob::SetPriority(RequestPriority priority) {
49 }
50
48 void URLRequestJob::Kill() { 51 void URLRequestJob::Kill() {
49 weak_factory_.InvalidateWeakPtrs(); 52 weak_factory_.InvalidateWeakPtrs();
50 // Make sure the request is notified that we are done. We assume that the 53 // Make sure the request is notified that we are done. We assume that the
51 // request took care of setting its error status before calling Kill. 54 // request took care of setting its error status before calling Kill.
52 if (request_) 55 if (request_)
53 NotifyCanceled(); 56 NotifyCanceled();
54 } 57 }
55 58
56 void URLRequestJob::DetachRequest() { 59 void URLRequestJob::DetachRequest() {
57 request_ = NULL; 60 request_ = NULL;
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 } 712 }
710 713
711 bool URLRequestJob::FilterHasData() { 714 bool URLRequestJob::FilterHasData() {
712 return filter_.get() && filter_->stream_data_len(); 715 return filter_.get() && filter_->stream_data_len();
713 } 716 }
714 717
715 void URLRequestJob::UpdatePacketReadTimes() { 718 void URLRequestJob::UpdatePacketReadTimes() {
716 } 719 }
717 720
718 } // namespace net 721 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_job.h ('k') | net/url_request/url_request_test_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698