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

Unified Diff: media/cast/net/udp_transport.h

Issue 654843007: Cast: Increase UDP socket send buffer size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed compile Created 6 years, 2 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: media/cast/net/udp_transport.h
diff --git a/media/cast/net/udp_transport.h b/media/cast/net/udp_transport.h
index de4e33dddf1dc007bd2f2e8a578eb55d1840a7be..0db113f133c38219c1a0379b552ba482ffb0d9ce 100644
--- a/media/cast/net/udp_transport.h
+++ b/media/cast/net/udp_transport.h
@@ -35,11 +35,13 @@ class UdpTransport : public PacketSender {
// |remote_end_point| specifies the address and port to send packets
// to. If the value is 0.0.0.0:0 the the end point is set to the source
// address of the first packet received.
+ // |send_buffer_size| specifies the size of the socket send buffer.
UdpTransport(
net::NetLog* net_log,
const scoped_refptr<base::SingleThreadTaskRunner>& io_thread_proxy,
const net::IPEndPoint& local_end_point,
const net::IPEndPoint& remote_end_point,
+ int32 send_buffer_size,
miu 2014/10/16 18:31:57 s/int32/int/
const CastTransportStatusCallback& status_callback);
virtual ~UdpTransport();
@@ -82,6 +84,7 @@ class UdpTransport : public PacketSender {
scoped_refptr<net::WrappedIOBuffer> recv_buf_;
net::IPEndPoint recv_addr_;
PacketReceiverCallback packet_receiver_;
+ int32 send_buffer_size_;
miu 2014/10/16 18:31:57 s/int32/const int/
const CastTransportStatusCallback status_callback_;
int bytes_sent_;

Powered by Google App Engine
This is Rietveld 408576698