Index: chrome/renderer/media/cast_udp_transport.h |
diff --git a/chrome/renderer/media/cast_udp_transport.h b/chrome/renderer/media/cast_udp_transport.h |
index 1673f974993fdb6c1f1ca860c087a54164409114..d6d5a5ce9d611c8eb67c89cf7eacf0765559e6e9 100644 |
--- a/chrome/renderer/media/cast_udp_transport.h |
+++ b/chrome/renderer/media/cast_udp_transport.h |
@@ -11,26 +11,17 @@ |
class CastSession; |
-// This class represents an end point to which communication is done by |
-// UDP. The interface does not allow direct access to a UDP socket but |
-// represents a transport mechanism. |
-// |
-// CastUdpTransport creates a CastSession and then shares it with |
-// multiple CastSendTransports. This is because CastSession corresponds |
-// to only one remote peer. |
+// This class represents the transport mechanism used by Cast RTP streams |
+// to connect to a remote client. It specifies the destination address |
+// and network protocol used to send Cast RTP streams. |
class CastUdpTransport { |
public: |
- CastUdpTransport(); |
+ explicit CastUdpTransport(const scoped_refptr<CastSession>& session); |
~CastUdpTransport(); |
- // Begin the transport by specifying the remote IP address. |
- // The transport will use UDP. |
+ // Specify the remote IP address. |
void Start(const net::HostPortPair& remote_address); |
- scoped_refptr<CastSession> cast_session() const { |
- return cast_session_; |
- } |
- |
private: |
const scoped_refptr<CastSession> cast_session_; |