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

Unified Diff: net/base/network_delegate.cc

Issue 1362793003: Notify NetworkDelegate when bytes have been sent over the network. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial patch set Created 5 years, 3 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: net/base/network_delegate.cc
diff --git a/net/base/network_delegate.cc b/net/base/network_delegate.cc
index 745336f14253305d435e55bcf9abc06f86f6c541..b33eb1ab7a16cec86cc68a510d45a75eba8b6698 100644
--- a/net/base/network_delegate.cc
+++ b/net/base/network_delegate.cc
@@ -67,6 +67,13 @@ void NetworkDelegate::NotifySendHeaders(URLRequest* request,
OnSendHeaders(request, headers);
}
+void NetworkDelegate::NotifyNetworkBytesSent(const URLRequest& request,
+ int64_t bytes_sent) {
+ DCHECK(CalledOnValidThread());
+ DCHECK_GT(bytes_sent, 0);
+ OnNetworkBytesSent(request, bytes_sent);
+}
+
int NetworkDelegate::NotifyHeadersReceived(
URLRequest* request,
const CompletionCallback& callback,

Powered by Google App Engine
This is Rietveld 408576698