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_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 Loading... |
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 Loading... |
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 |
OLD | NEW |