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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // case the derived class should implement this! | 230 // case the derived class should implement this! |
231 NOTREACHED(); | 231 NOTREACHED(); |
232 } | 232 } |
233 | 233 |
234 void URLRequestJob::CancelAuth() { | 234 void URLRequestJob::CancelAuth() { |
235 // This will only be called if NeedsAuth() returns true, in which | 235 // This will only be called if NeedsAuth() returns true, in which |
236 // case the derived class should implement this! | 236 // case the derived class should implement this! |
237 NOTREACHED(); | 237 NOTREACHED(); |
238 } | 238 } |
239 | 239 |
240 void URLRequestJob::ContinueWithCertificate( | 240 void URLRequestJob::ContinueWithCertificate(X509Certificate* client_cert, |
241 X509Certificate* client_cert) { | 241 SSLPrivateKey* client_private_key) { |
242 // The derived class should implement this! | 242 // The derived class should implement this! |
243 NOTREACHED(); | 243 NOTREACHED(); |
244 } | 244 } |
245 | 245 |
246 void URLRequestJob::ContinueDespiteLastError() { | 246 void URLRequestJob::ContinueDespiteLastError() { |
247 // Implementations should know how to recover from errors they generate. | 247 // Implementations should know how to recover from errors they generate. |
248 // If this code was reached, we are trying to recover from an error that | 248 // If this code was reached, we are trying to recover from an error that |
249 // we don't know how to recover from. | 249 // we don't know how to recover from. |
250 NOTREACHED(); | 250 NOTREACHED(); |
251 } | 251 } |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 int64_t total_sent_bytes = GetTotalSentBytes(); | 970 int64_t total_sent_bytes = GetTotalSentBytes(); |
971 DCHECK_GE(total_sent_bytes, last_notified_total_sent_bytes_); | 971 DCHECK_GE(total_sent_bytes, last_notified_total_sent_bytes_); |
972 if (total_sent_bytes > last_notified_total_sent_bytes_) { | 972 if (total_sent_bytes > last_notified_total_sent_bytes_) { |
973 network_delegate_->NotifyNetworkBytesSent( | 973 network_delegate_->NotifyNetworkBytesSent( |
974 request_, total_sent_bytes - last_notified_total_sent_bytes_); | 974 request_, total_sent_bytes - last_notified_total_sent_bytes_); |
975 } | 975 } |
976 last_notified_total_sent_bytes_ = total_sent_bytes; | 976 last_notified_total_sent_bytes_ = total_sent_bytes; |
977 } | 977 } |
978 | 978 |
979 } // namespace net | 979 } // namespace net |
OLD | NEW |