| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 } | 213 } |
| 214 | 214 |
| 215 int64_t URLRequestJob::GetTotalSentBytes() const { | 215 int64_t URLRequestJob::GetTotalSentBytes() const { |
| 216 return 0; | 216 return 0; |
| 217 } | 217 } |
| 218 | 218 |
| 219 LoadState URLRequestJob::GetLoadState() const { | 219 LoadState URLRequestJob::GetLoadState() const { |
| 220 return LOAD_STATE_IDLE; | 220 return LOAD_STATE_IDLE; |
| 221 } | 221 } |
| 222 | 222 |
| 223 UploadProgress URLRequestJob::GetUploadProgress() const { | |
| 224 return UploadProgress(); | |
| 225 } | |
| 226 | |
| 227 bool URLRequestJob::GetCharset(std::string* charset) { | 223 bool URLRequestJob::GetCharset(std::string* charset) { |
| 228 return false; | 224 return false; |
| 229 } | 225 } |
| 230 | 226 |
| 231 void URLRequestJob::GetResponseInfo(HttpResponseInfo* info) { | 227 void URLRequestJob::GetResponseInfo(HttpResponseInfo* info) { |
| 232 } | 228 } |
| 233 | 229 |
| 234 void URLRequestJob::GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const { | 230 void URLRequestJob::GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const { |
| 235 // Only certain request types return more than just request start times. | 231 // Only certain request types return more than just request start times. |
| 236 } | 232 } |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 int64_t total_sent_bytes = GetTotalSentBytes(); | 999 int64_t total_sent_bytes = GetTotalSentBytes(); |
| 1004 DCHECK_GE(total_sent_bytes, last_notified_total_sent_bytes_); | 1000 DCHECK_GE(total_sent_bytes, last_notified_total_sent_bytes_); |
| 1005 if (total_sent_bytes > last_notified_total_sent_bytes_) { | 1001 if (total_sent_bytes > last_notified_total_sent_bytes_) { |
| 1006 network_delegate_->NotifyNetworkBytesSent( | 1002 network_delegate_->NotifyNetworkBytesSent( |
| 1007 request_, total_sent_bytes - last_notified_total_sent_bytes_); | 1003 request_, total_sent_bytes - last_notified_total_sent_bytes_); |
| 1008 } | 1004 } |
| 1009 last_notified_total_sent_bytes_ = total_sent_bytes; | 1005 last_notified_total_sent_bytes_ = total_sent_bytes; |
| 1010 } | 1006 } |
| 1011 | 1007 |
| 1012 } // namespace net | 1008 } // namespace net |
| OLD | NEW |