Index: net/url_request/url_request.cc |
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc |
index c12f9d1ea26d83a49569b8d8945c07efbbd585c2..c576b602ef80c4dff2cc3efd4b5f60c7f155f730 100644 |
--- a/net/url_request/url_request.cc |
+++ b/net/url_request/url_request.cc |
@@ -266,6 +266,13 @@ int64 URLRequest::GetTotalReceivedBytes() const { |
return job_->GetTotalReceivedBytes(); |
} |
+int64_t URLRequest::GetTotalSentBytes() const { |
+ if (!job_.get()) |
+ return 0; |
+ |
+ return job_->GetTotalSentBytes(); |
+} |
+ |
LoadStateWithParam URLRequest::GetLoadState() const { |
// The !blocked_by_.empty() check allows |this| to report it's blocked on a |
// delegate before it has been started. |