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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 return HostPortPair(); | 218 return HostPortPair(); |
219 } | 219 } |
220 | 220 |
221 void URLRequestJob::OnSuspend() { | 221 void URLRequestJob::OnSuspend() { |
222 Kill(); | 222 Kill(); |
223 } | 223 } |
224 | 224 |
225 void URLRequestJob::NotifyURLRequestDestroyed() { | 225 void URLRequestJob::NotifyURLRequestDestroyed() { |
226 } | 226 } |
227 | 227 |
| 228 void URLRequestJob::SetPriority(RequestPriority priority) { |
| 229 } |
| 230 |
228 URLRequestJob::~URLRequestJob() { | 231 URLRequestJob::~URLRequestJob() { |
229 base::SystemMonitor* system_monitor = base::SystemMonitor::Get(); | 232 base::SystemMonitor* system_monitor = base::SystemMonitor::Get(); |
230 if (system_monitor) | 233 if (system_monitor) |
231 base::SystemMonitor::Get()->RemovePowerObserver(this); | 234 base::SystemMonitor::Get()->RemovePowerObserver(this); |
232 } | 235 } |
233 | 236 |
234 void URLRequestJob::NotifyCertificateRequested( | 237 void URLRequestJob::NotifyCertificateRequested( |
235 SSLCertRequestInfo* cert_request_info) { | 238 SSLCertRequestInfo* cert_request_info) { |
236 if (!request_) | 239 if (!request_) |
237 return; // The request was destroyed, so there is no more work to do. | 240 return; // The request was destroyed, so there is no more work to do. |
(...skipping 471 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 |