Commit 200db42d authored by Eric Roman's avatar Eric Roman Committed by Commit Bot

Fix typo in function name (Tranfer -> Transfer).

Change-Id: Ie254d89ee283713459dff7c611e2b160ecd62b9c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1707952
Commit-Queue: Eric Roman <eroman@chromium.org>
Commit-Queue: David Benjamin <davidben@chromium.org>
Auto-Submit: Eric Roman <eroman@chromium.org>
Reviewed-by: default avatarDavid Benjamin <davidben@chromium.org>
Cr-Commit-Position: refs/heads/master@{#678896}
parent a63bcb03
...@@ -15,10 +15,10 @@ namespace net { ...@@ -15,10 +15,10 @@ namespace net {
namespace { namespace {
base::Value NetLogUDPDataTranferParams(int byte_count, base::Value NetLogUDPDataTransferParams(int byte_count,
const char* bytes, const char* bytes,
const IPEndPoint* address, const IPEndPoint* address,
NetLogCaptureMode capture_mode) { NetLogCaptureMode capture_mode) {
base::DictionaryValue dict; base::DictionaryValue dict;
dict.SetInteger("byte_count", byte_count); dict.SetInteger("byte_count", byte_count);
if (NetLogCaptureIncludesSocketBytes(capture_mode)) if (NetLogCaptureIncludesSocketBytes(capture_mode))
...@@ -40,14 +40,15 @@ base::Value NetLogUDPConnectParams( ...@@ -40,14 +40,15 @@ base::Value NetLogUDPConnectParams(
} // namespace } // namespace
void NetLogUDPDataTranfer(const NetLogWithSource& net_log, void NetLogUDPDataTransfer(const NetLogWithSource& net_log,
NetLogEventType type, NetLogEventType type,
int byte_count, int byte_count,
const char* bytes, const char* bytes,
const IPEndPoint* address) { const IPEndPoint* address) {
DCHECK(bytes); DCHECK(bytes);
net_log.AddEvent(type, [&](NetLogCaptureMode capture_mode) { net_log.AddEvent(type, [&](NetLogCaptureMode capture_mode) {
return NetLogUDPDataTranferParams(byte_count, bytes, address, capture_mode); return NetLogUDPDataTransferParams(byte_count, bytes, address,
capture_mode);
}); });
} }
......
...@@ -20,11 +20,11 @@ class IPEndPoint; ...@@ -20,11 +20,11 @@ class IPEndPoint;
// Emits a NetLog event with parameters describing a UDP receive/send event. // Emits a NetLog event with parameters describing a UDP receive/send event.
// |bytes| are only logged when byte logging is enabled. |address| may be // |bytes| are only logged when byte logging is enabled. |address| may be
// nullptr. // nullptr.
void NetLogUDPDataTranfer(const NetLogWithSource& net_log, void NetLogUDPDataTransfer(const NetLogWithSource& net_log,
NetLogEventType type, NetLogEventType type,
int byte_count, int byte_count,
const char* bytes, const char* bytes,
const IPEndPoint* address); const IPEndPoint* address);
// Creates NetLog parameters describing a UDP connect event. // Creates NetLog parameters describing a UDP connect event.
base::Value CreateNetLogUDPConnectParams( base::Value CreateNetLogUDPConnectParams(
......
...@@ -764,8 +764,8 @@ void UDPSocketPosix::LogRead(int result, ...@@ -764,8 +764,8 @@ void UDPSocketPosix::LogRead(int result,
IPEndPoint address; IPEndPoint address;
bool is_address_valid = address.FromSockAddr(addr, addr_len); bool is_address_valid = address.FromSockAddr(addr, addr_len);
NetLogUDPDataTranfer(net_log_, NetLogEventType::UDP_BYTES_RECEIVED, result, NetLogUDPDataTransfer(net_log_, NetLogEventType::UDP_BYTES_RECEIVED, result,
bytes, is_address_valid ? &address : nullptr); bytes, is_address_valid ? &address : nullptr);
} }
received_activity_monitor_.Increment(result); received_activity_monitor_.Increment(result);
...@@ -793,8 +793,8 @@ void UDPSocketPosix::LogWrite(int result, ...@@ -793,8 +793,8 @@ void UDPSocketPosix::LogWrite(int result,
} }
if (net_log_.IsCapturing()) { if (net_log_.IsCapturing()) {
NetLogUDPDataTranfer(net_log_, NetLogEventType::UDP_BYTES_SENT, result, NetLogUDPDataTransfer(net_log_, NetLogEventType::UDP_BYTES_SENT, result,
bytes, address); bytes, address);
} }
sent_activity_monitor_.Increment(result); sent_activity_monitor_.Increment(result);
......
...@@ -742,8 +742,8 @@ void UDPSocketWin::LogRead(int result, ...@@ -742,8 +742,8 @@ void UDPSocketWin::LogRead(int result,
} }
if (net_log_.IsCapturing()) { if (net_log_.IsCapturing()) {
NetLogUDPDataTranfer(net_log_, NetLogEventType::UDP_BYTES_RECEIVED, result, NetLogUDPDataTransfer(net_log_, NetLogEventType::UDP_BYTES_RECEIVED, result,
bytes, address); bytes, address);
} }
NetworkActivityMonitor::GetInstance()->IncrementBytesReceived(result); NetworkActivityMonitor::GetInstance()->IncrementBytesReceived(result);
...@@ -758,8 +758,8 @@ void UDPSocketWin::LogWrite(int result, ...@@ -758,8 +758,8 @@ void UDPSocketWin::LogWrite(int result,
} }
if (net_log_.IsCapturing()) { if (net_log_.IsCapturing()) {
NetLogUDPDataTranfer(net_log_, NetLogEventType::UDP_BYTES_SENT, result, NetLogUDPDataTransfer(net_log_, NetLogEventType::UDP_BYTES_SENT, result,
bytes, address); bytes, address);
} }
NetworkActivityMonitor::GetInstance()->IncrementBytesSent(result); NetworkActivityMonitor::GetInstance()->IncrementBytesSent(result);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment