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

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

Issue 1515023002: Simplify interface for media/cast: CastTransportSenderImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New interface and impl (no tests). Created 5 years 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 c845c5acd20368ea46e85082286d0c957d0ff966..a4bdca183cce45c567e5b4717401771005896a4e 100644
--- a/media/cast/net/udp_transport.h
+++ b/media/cast/net/udp_transport.h
@@ -35,13 +35,8 @@ class UdpTransport : public PacketSender {
// 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,
- const CastTransportStatusCallback& status_callback);
+ UdpTransport(const CastTransportSender::CreateParams& params,
+ int32 send_buffer_size);
~UdpTransport() final;
// Start receiving packets. Packets are submitted to |packet_receiver|.
@@ -76,6 +71,7 @@ class UdpTransport : public PacketSender {
const base::Closure& cb,
int result);
+ CastTransportSender::Client* transport_client_;
const scoped_refptr<base::SingleThreadTaskRunner> io_thread_proxy_;
const net::IPEndPoint local_addr_;
net::IPEndPoint remote_addr_;
@@ -89,7 +85,6 @@ class UdpTransport : public PacketSender {
net::IPEndPoint recv_addr_;
PacketReceiverCallbackWithStatus packet_receiver_;
int32 send_buffer_size_;
- const CastTransportStatusCallback status_callback_;
int bytes_sent_;
// NOTE: Weak pointers must be invalidated before all other member variables.

Powered by Google App Engine
This is Rietveld 408576698