aboutsummaryrefslogtreecommitdiff
path: root/pc/channel_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'pc/channel_interface.h')
-rw-r--r--pc/channel_interface.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/pc/channel_interface.h b/pc/channel_interface.h
index d3da37ac23..3b71f0f8b5 100644
--- a/pc/channel_interface.h
+++ b/pc/channel_interface.h
@@ -37,13 +37,12 @@ class ChannelInterface {
virtual const std::string& content_name() const = 0;
- virtual bool enabled() const = 0;
-
// Enables or disables this channel
- virtual bool Enable(bool enable) = 0;
+ virtual void Enable(bool enable) = 0;
// Used for latency measurements.
- virtual sigslot::signal1<ChannelInterface*>& SignalFirstPacketReceived() = 0;
+ virtual void SetFirstPacketReceivedCallback(
+ std::function<void()> callback) = 0;
// Channel control
virtual bool SetLocalContent(const MediaContentDescription* content,
@@ -65,9 +64,6 @@ class ChannelInterface {
// * A DtlsSrtpTransport for DTLS-SRTP.
virtual bool SetRtpTransport(webrtc::RtpTransportInternal* rtp_transport) = 0;
- // Returns the last negotiated header extensions.
- virtual RtpHeaderExtensions GetNegotiatedRtpHeaderExtensions() const = 0;
-
protected:
virtual ~ChannelInterface() = default;
};