Index: talk/media/sctp/sctpdataengine.h |
diff --git a/talk/media/sctp/sctpdataengine.h b/talk/media/sctp/sctpdataengine.h |
index 20d9ed7792dab001cd7b64cb47f0fe40d45ba44a..5a084a445f09cc6e56613f7a9106888c42d774fe 100644 |
--- a/talk/media/sctp/sctpdataengine.h |
+++ b/talk/media/sctp/sctpdataengine.h |
@@ -148,6 +148,8 @@ class SctpDataMediaChannel : public DataMediaChannel, |
// Unless SetReceive(true) is called, received packets will be discarded. |
virtual bool SetReceive(bool receive); |
+ virtual bool SetSendParameters(const DataSendParameters& params); |
+ virtual bool SetRecvParameters(const DataRecvParameters& params); |
virtual bool AddSendStream(const StreamParams& sp); |
virtual bool RemoveSendStream(uint32 ssrc); |
virtual bool AddRecvStream(const StreamParams& sp); |
@@ -170,21 +172,10 @@ class SctpDataMediaChannel : public DataMediaChannel, |
rtc::Thread* worker_thread() const { return worker_thread_; } |
// TODO(ldixon): add a DataOptions class to mediachannel.h |
- virtual bool SetOptions(int options) { return false; } |
virtual int GetOptions() const { return 0; } |
// Many of these things are unused by SCTP, but are needed to fulfill |
// the MediaChannel interface. |
- // TODO(pthatcher): Cleanup MediaChannel interface, or at least |
- // don't try calling these and return false. Right now, things |
- // don't work if we return false. |
- virtual bool SetMaxSendBandwidth(int bps) { return true; } |
- virtual bool SetRecvRtpHeaderExtensions( |
- const std::vector<RtpHeaderExtension>& extensions) { return true; } |
- virtual bool SetSendRtpHeaderExtensions( |
- const std::vector<RtpHeaderExtension>& extensions) { return true; } |
- virtual bool SetSendCodecs(const std::vector<DataCodec>& codecs); |
- virtual bool SetRecvCodecs(const std::vector<DataCodec>& codecs); |
virtual void OnRtcpReceived(rtc::Buffer* packet, |
const rtc::PacketTime& packet_time) {} |
virtual void OnReadyToSend(bool ready) {} |
@@ -199,6 +190,9 @@ class SctpDataMediaChannel : public DataMediaChannel, |
private: |
sockaddr_conn GetSctpSockAddr(int port); |
+ bool SetSendCodecs(const std::vector<DataCodec>& codecs); |
+ bool SetRecvCodecs(const std::vector<DataCodec>& codecs); |
+ |
// Creates the socket and connects. Sets sending_ to true. |
bool Connect(); |
// Closes the socket. Sets sending_ to false. |