Index: webrtc/pc/channel.h |
diff --git a/webrtc/pc/channel.h b/webrtc/pc/channel.h |
index c7749a97156e2165a18a22d8217d199b28d580b9..eff872f6c0e9bcea52deb9753645224d556bdc3c 100644 |
--- a/webrtc/pc/channel.h |
+++ b/webrtc/pc/channel.h |
@@ -107,7 +107,13 @@ class BaseChannel |
bool writable() const { return writable_; } |
- bool SetTransport(TransportChannel* rtp_transport, |
+ // Set the transport(s), and update writability and "ready-to-send" state. |
+ // |rtp_transport| must be non-null. |
+ // |rtcp_transport| must be supplied if NeedsRtcpTransport() is true (meaning |
+ // RTCP muxing is not fully active yet). |
+ // |rtp_transport| and |rtcp_transport| must share the same transport name as |
+ // well. |
+ void SetTransports(TransportChannel* rtp_transport, |
TransportChannel* rtcp_transport); |
bool PushdownLocalDescription(const SessionDescription* local_desc, |
ContentAction action, |
@@ -194,10 +200,7 @@ class BaseChannel |
protected: |
virtual MediaChannel* media_channel() const { return media_channel_; } |
- // Sets the |rtp_transport_| (and |rtcp_transport_|, if |
- // |rtcp_enabled_| is true). |
- // This method also updates writability and "ready-to-send" state. |
- bool SetTransport_n(TransportChannel* rtp_transport, |
+ void SetTransport_n(TransportChannel* rtp_transport, |
Zhi Huang
2017/01/16 01:51:50
"SetTransports_n" as well?
Taylor Brandstetter
2017/01/16 11:44:08
Done.
|
TransportChannel* rtcp_transport); |
// This does not update writability or "ready-to-send" state; it just |