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

Unified Diff: net/base/layered_network_delegate.h

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 | « no previous file | net/base/layered_network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/layered_network_delegate.h
diff --git a/net/base/layered_network_delegate.h b/net/base/layered_network_delegate.h
index f5899e9b8733cd692bd666910992d58917af92c4..dabe681af47e3a3237ed3d8714a1f0b94f66a219 100644
--- a/net/base/layered_network_delegate.h
+++ b/net/base/layered_network_delegate.h
@@ -66,6 +66,7 @@ class NET_EXPORT LayeredNetworkDelegate : public NetworkDelegate {
void OnResponseStarted(URLRequest* request) final;
void OnNetworkBytesReceived(const URLRequest& request,
int64_t bytes_received) final;
+ void OnNetworkBytesSent(const URLRequest& request, int64_t bytes_sent) final;
void OnCompleted(URLRequest* request, bool started) final;
void OnURLRequestDestroyed(URLRequest* request) final;
void OnURLRequestJobOrphaned(URLRequest* request) final;
@@ -128,6 +129,9 @@ class NET_EXPORT LayeredNetworkDelegate : public NetworkDelegate {
virtual void OnNetworkBytesReceivedInternal(const URLRequest& request,
int64_t bytes_received);
+ virtual void OnNetworkBytesSentInternal(const URLRequest& request,
+ int64_t bytes_sent);
+
virtual void OnCompletedInternal(URLRequest* request, bool started);
virtual void OnURLRequestDestroyedInternal(URLRequest* request);
« no previous file with comments | « no previous file | net/base/layered_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698