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

Unified Diff: content/browser/renderer_host/p2p/socket_host_udp.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Exclude certain files from jumbo because of a Windows problem Created 3 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: content/browser/renderer_host/p2p/socket_host_udp.cc
diff --git a/content/browser/renderer_host/p2p/socket_host_udp.cc b/content/browser/renderer_host/p2p/socket_host_udp.cc
index 375e5571dea14a9be82c132fc8953da029cce054..16dda869f2462b28caacdb4e76f5ce935b1cefb6 100644
--- a/content/browser/renderer_host/p2p/socket_host_udp.cc
+++ b/content/browser/renderer_host/p2p/socket_host_udp.cc
@@ -26,9 +26,9 @@
namespace {
// UDP packets cannot be bigger than 64k.
-const int kReadBufferSize = 65536;
+const int kUDPReadBufferSize = 65536;
// Socket receive buffer size.
-const int kRecvSocketBufferSize = 65536; // 64K
+const int kUDPRecvSocketBufferSize = 65536; // 64K
// Defines set of transient errors. These errors are ignored when we get them
// from sendto() or recvfrom() calls.
@@ -171,9 +171,9 @@ bool P2PSocketHostUdp::Init(const net::IPEndPoint& local_address,
}
// Setting recv socket buffer size.
- if (socket_->SetReceiveBufferSize(kRecvSocketBufferSize) != net::OK) {
+ if (socket_->SetReceiveBufferSize(kUDPRecvSocketBufferSize) != net::OK) {
LOG(WARNING) << "Failed to set socket receive buffer size to "
- << kRecvSocketBufferSize;
+ << kUDPRecvSocketBufferSize;
}
net::IPEndPoint address;
@@ -194,7 +194,7 @@ bool P2PSocketHostUdp::Init(const net::IPEndPoint& local_address,
message_sender_->Send(new P2PMsg_OnSocketCreated(
id_, address, remote_address.ip_address));
- recv_buffer_ = new net::IOBuffer(kReadBufferSize);
+ recv_buffer_ = new net::IOBuffer(kUDPReadBufferSize);
DoRead();
return true;
@@ -215,7 +215,7 @@ void P2PSocketHostUdp::DoRead() {
do {
result = socket_->RecvFrom(
recv_buffer_.get(),
- kReadBufferSize,
+ kUDPReadBufferSize,
&recv_address_,
base::Bind(&P2PSocketHostUdp::OnRecv, base::Unretained(this)));
if (result == net::ERR_IO_PENDING)

Powered by Google App Engine
This is Rietveld 408576698