diff options
author | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-01 21:15:19 +0000 |
---|---|---|
committer | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-01 21:15:19 +0000 |
commit | 267a0d66d9ff4da5043c4c2a1bf0db55d2221d50 (patch) | |
tree | 842402558664153742c3bb22d8158a2b948238ae /net/socket/ssl_client_socket_win.cc | |
parent | dc8bb584a5fa7595378f963e98164fb9f4e2c421 (diff) | |
download | chromium_src-267a0d66d9ff4da5043c4c2a1bf0db55d2221d50.zip chromium_src-267a0d66d9ff4da5043c4c2a1bf0db55d2221d50.tar.gz chromium_src-267a0d66d9ff4da5043c4c2a1bf0db55d2221d50.tar.bz2 |
Adds URLRequestJob bytes read to NetLog.
Also no longer include raw bytes for 0-length transfers.
BUG=81003
TEST=none
Review URL: http://codereview.chromium.org/7084007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87528 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/ssl_client_socket_win.cc')
-rw-r--r-- | net/socket/ssl_client_socket_win.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/socket/ssl_client_socket_win.cc b/net/socket/ssl_client_socket_win.cc index 9aea199..1392e1d 100644 --- a/net/socket/ssl_client_socket_win.cc +++ b/net/socket/ssl_client_socket_win.cc @@ -740,8 +740,8 @@ int SSLClientSocketWin::Read(IOBuffer* buf, int buf_len, // reading more ciphertext from the transport socket. if (bytes_decrypted_ != 0) { int len = std::min(buf_len, bytes_decrypted_); - LogByteTransfer(net_log_, NetLog::TYPE_SSL_SOCKET_BYTES_RECEIVED, len, - decrypted_ptr_); + net_log_.AddByteTransferEvent(NetLog::TYPE_SSL_SOCKET_BYTES_RECEIVED, len, + decrypted_ptr_); memcpy(buf->data(), decrypted_ptr_, len); decrypted_ptr_ += len; bytes_decrypted_ -= len; @@ -1361,8 +1361,8 @@ int SSLClientSocketWin::DoPayloadDecrypt() { // mistaken for EOF. Continue decrypting or read more. if (len == 0) return DoPayloadRead(); - LogByteTransfer(net_log_, NetLog::TYPE_SSL_SOCKET_BYTES_RECEIVED, len, - user_read_buf_->data()); + net_log_.AddByteTransferEvent(NetLog::TYPE_SSL_SOCKET_BYTES_RECEIVED, len, + user_read_buf_->data()); return len; } @@ -1380,8 +1380,8 @@ int SSLClientSocketWin::DoPayloadEncrypt() { payload_send_buffer_.reset(new char[alloc_len]); memcpy(&payload_send_buffer_[stream_sizes_.cbHeader], user_write_buf_->data(), message_len); - LogByteTransfer(net_log_, NetLog::TYPE_SSL_SOCKET_BYTES_SENT, message_len, - user_write_buf_->data()); + net_log_.AddByteTransferEvent(NetLog::TYPE_SSL_SOCKET_BYTES_SENT, message_len, + user_write_buf_->data()); SecBuffer buffers[4]; buffers[0].pvBuffer = payload_send_buffer_.get(); |