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

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: Rebased on master 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
« no previous file with comments | « net/base/network_delegate.h ('k') | net/base/network_delegate_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_delegate.cc
diff --git a/net/base/network_delegate.cc b/net/base/network_delegate.cc
index 745336f14253305d435e55bcf9abc06f86f6c541..15380281237c1662820d3dee094a9528305d0b01 100644
--- a/net/base/network_delegate.cc
+++ b/net/base/network_delegate.cc
@@ -96,6 +96,13 @@ void NetworkDelegate::NotifyNetworkBytesReceived(const URLRequest& request,
OnNetworkBytesReceived(request, bytes_received);
}
+void NetworkDelegate::NotifyNetworkBytesSent(const URLRequest& request,
+ int64_t bytes_sent) {
+ DCHECK(CalledOnValidThread());
+ DCHECK_GT(bytes_sent, 0);
+ OnNetworkBytesSent(request, bytes_sent);
+}
+
void NetworkDelegate::NotifyBeforeRedirect(URLRequest* request,
const GURL& new_location) {
DCHECK(CalledOnValidThread());
« no previous file with comments | « net/base/network_delegate.h ('k') | net/base/network_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698