| 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/location.h" | 9 #include "base/location.h" |
| 10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // case the derived class should implement this! | 231 // case the derived class should implement this! |
| 232 NOTREACHED(); | 232 NOTREACHED(); |
| 233 } | 233 } |
| 234 | 234 |
| 235 void URLRequestJob::CancelAuth() { | 235 void URLRequestJob::CancelAuth() { |
| 236 // This will only be called if NeedsAuth() returns true, in which | 236 // This will only be called if NeedsAuth() returns true, in which |
| 237 // case the derived class should implement this! | 237 // case the derived class should implement this! |
| 238 NOTREACHED(); | 238 NOTREACHED(); |
| 239 } | 239 } |
| 240 | 240 |
| 241 void URLRequestJob::ContinueWithCertificate( | 241 void URLRequestJob::ContinueWithCertificate(X509Certificate* client_cert, |
| 242 X509Certificate* client_cert) { | 242 SSLPrivateKey* client_private_key) { |
| 243 // The derived class should implement this! | 243 // The derived class should implement this! |
| 244 NOTREACHED(); | 244 NOTREACHED(); |
| 245 } | 245 } |
| 246 | 246 |
| 247 void URLRequestJob::ContinueDespiteLastError() { | 247 void URLRequestJob::ContinueDespiteLastError() { |
| 248 // Implementations should know how to recover from errors they generate. | 248 // Implementations should know how to recover from errors they generate. |
| 249 // If this code was reached, we are trying to recover from an error that | 249 // If this code was reached, we are trying to recover from an error that |
| 250 // we don't know how to recover from. | 250 // we don't know how to recover from. |
| 251 NOTREACHED(); | 251 NOTREACHED(); |
| 252 } | 252 } |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 int64_t total_sent_bytes = GetTotalSentBytes(); | 1001 int64_t total_sent_bytes = GetTotalSentBytes(); |
| 1002 DCHECK_GE(total_sent_bytes, last_notified_total_sent_bytes_); | 1002 DCHECK_GE(total_sent_bytes, last_notified_total_sent_bytes_); |
| 1003 if (total_sent_bytes > last_notified_total_sent_bytes_) { | 1003 if (total_sent_bytes > last_notified_total_sent_bytes_) { |
| 1004 network_delegate_->NotifyNetworkBytesSent( | 1004 network_delegate_->NotifyNetworkBytesSent( |
| 1005 *request_, total_sent_bytes - last_notified_total_sent_bytes_); | 1005 *request_, total_sent_bytes - last_notified_total_sent_bytes_); |
| 1006 } | 1006 } |
| 1007 last_notified_total_sent_bytes_ = total_sent_bytes; | 1007 last_notified_total_sent_bytes_ = total_sent_bytes; |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 } // namespace net | 1010 } // namespace net |
| OLD | NEW |