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

Unified Diff: net/base/layered_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/layered_network_delegate.cc
diff --git a/net/base/layered_network_delegate.cc b/net/base/layered_network_delegate.cc
index f84b468732ded7a6aef5360181e821ba3fdb9ce3..a931814ce07ff23fd65d51fccc1f5df670267e98 100644
--- a/net/base/layered_network_delegate.cc
+++ b/net/base/layered_network_delegate.cc
@@ -97,6 +97,16 @@ void LayeredNetworkDelegate::OnSendHeadersInternal(
const HttpRequestHeaders& headers) {
}
+void LayeredNetworkDelegate::OnNetworkBytesSent(const URLRequest& request,
+ int64_t bytes_sent) {
+ OnNetworkBytesSentInternal(request, bytes_sent);
+ nested_network_delegate_->NotifyNetworkBytesSent(request, bytes_sent);
+}
+
+void LayeredNetworkDelegate::OnNetworkBytesSentInternal(
+ const URLRequest& request,
+ int64_t bytes_sent) {}
mmenke 2015/09/24 21:30:24 Order here should match header order
sclittle 2015/09/24 22:20:42 Done.
+
int LayeredNetworkDelegate::OnHeadersReceived(
URLRequest* request,
const CompletionCallback& callback,

Powered by Google App Engine
This is Rietveld 408576698