Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4339)

Unified Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 2905403002: plumb network upload into the task manager (Closed)
Patch Set: added refresh timer tests Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/chrome_network_delegate.cc
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc
index 84a4eb8a15a787786144526472125245c235c91f..67c68f5e1ac10679ace08a09cd47bef9c72b85a9 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -357,6 +357,12 @@ void ChromeNetworkDelegate::OnNetworkBytesReceived(net::URLRequest* request,
void ChromeNetworkDelegate::OnNetworkBytesSent(net::URLRequest* request,
int64_t bytes_sent) {
+#if !defined(OS_ANDROID)
+ // Note: Currently, OnNetworkBytesSent is only implemented for HTTP jobs,
+ // not FTP or other types, so those kinds of bytes will not be reported here.
+ task_manager::TaskManagerInterface::OnRawBytesSent(*request, bytes_sent);
+#endif // !defined(OS_ANDROID)
+
ReportDataUsageStats(request, bytes_sent, 0 /* rx_bytes */);
}

Powered by Google App Engine
This is Rietveld 408576698