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; |