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

Unified Diff: net/socket/tcp_client_socket_win.cc

Issue 7084007: Adds URLRequestJob bytes read to NetLog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 9 years, 7 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/socket/tcp_client_socket_win.cc
===================================================================
--- net/socket/tcp_client_socket_win.cc (revision 87467)
+++ net/socket/tcp_client_socket_win.cc (working copy)
@@ -693,8 +693,8 @@
read_bytes.Add(num);
if (num > 0)
use_history_.set_was_used_to_convey_data();
- LogByteTransfer(net_log_, NetLog::TYPE_SOCKET_BYTES_RECEIVED, num,
- core_->read_buffer_.buf);
+ net_log_.AddByteTransferEvent(NetLog::TYPE_SOCKET_BYTES_RECEIVED, num,
+ core_->read_buffer_.buf);
return static_cast<int>(num);
}
} else {
@@ -745,8 +745,8 @@
write_bytes.Add(rv);
if (rv > 0)
use_history_.set_was_used_to_convey_data();
- LogByteTransfer(net_log_, NetLog::TYPE_SOCKET_BYTES_SENT, rv,
- core_->write_buffer_.buf);
+ net_log_.AddByteTransferEvent(NetLog::TYPE_SOCKET_BYTES_SENT, rv,
+ core_->write_buffer_.buf);
return rv;
}
} else {
@@ -863,8 +863,8 @@
read_bytes.Add(num_bytes);
if (num_bytes > 0)
use_history_.set_was_used_to_convey_data();
- LogByteTransfer(net_log_, NetLog::TYPE_SOCKET_BYTES_RECEIVED, num_bytes,
- core_->read_buffer_.buf);
+ net_log_.AddByteTransferEvent(NetLog::TYPE_SOCKET_BYTES_RECEIVED,
+ num_bytes, core_->read_buffer_.buf);
}
DoReadCallback(ok ? num_bytes : MapSystemError(WSAGetLastError()));
}
@@ -894,8 +894,8 @@
write_bytes.Add(num_bytes);
if (num_bytes > 0)
use_history_.set_was_used_to_convey_data();
- LogByteTransfer(net_log_, NetLog::TYPE_SOCKET_BYTES_SENT, num_bytes,
- core_->write_buffer_.buf);
+ net_log_.AddByteTransferEvent(NetLog::TYPE_SOCKET_BYTES_SENT, num_bytes,
+ core_->write_buffer_.buf);
}
}
core_->write_iobuffer_ = NULL;

Powered by Google App Engine
This is Rietveld 408576698