Index: talk/session/media/channel.h |
diff --git a/talk/session/media/channel.h b/talk/session/media/channel.h |
index bb2dffdc905dfd7024ab017f567a3283d284efdc..04d5e9018527310ed8572b98486199e91c9cb651 100644 |
--- a/talk/session/media/channel.h |
+++ b/talk/session/media/channel.h |
@@ -191,6 +191,9 @@ class BaseChannel |
void set_remote_content_direction(MediaContentDirection direction) { |
remote_content_direction_ = direction; |
} |
+ void set_secure_required(bool secure_required) { |
+ secure_required_ = secure_required; |
+ } |
bool IsReadyToReceive() const; |
bool IsReadyToSend() const; |
rtc::Thread* signaling_thread() { return session_->signaling_thread(); } |
@@ -257,31 +260,22 @@ class BaseChannel |
bool UpdateRemoteStreams_w(const std::vector<StreamParams>& streams, |
ContentAction action, |
std::string* error_desc); |
- bool SetBaseLocalContent_w(const MediaContentDescription* content, |
- ContentAction action, |
- std::string* error_desc); |
virtual bool SetLocalContent_w(const MediaContentDescription* content, |
ContentAction action, |
std::string* error_desc) = 0; |
- bool SetBaseRemoteContent_w(const MediaContentDescription* content, |
- ContentAction action, |
- std::string* error_desc); |
virtual bool SetRemoteContent_w(const MediaContentDescription* content, |
ContentAction action, |
std::string* error_desc) = 0; |
+ bool SetRtpTransportParameters_w(const MediaContentDescription* content, |
+ ContentAction action, |
+ ContentSource src, |
+ std::string* error_desc); |
// Helper method to get RTP Absoulute SendTime extension header id if |
// present in remote supported extensions list. |
void MaybeCacheRtpAbsSendTimeHeaderExtension( |
const std::vector<RtpHeaderExtension>& extensions); |
- bool SetRecvRtpHeaderExtensions_w(const MediaContentDescription* content, |
- MediaChannel* media_channel, |
- std::string* error_desc); |
- bool SetSendRtpHeaderExtensions_w(const MediaContentDescription* content, |
- MediaChannel* media_channel, |
- std::string* error_desc); |
- |
bool CheckSrtpConfig(const std::vector<CryptoParams>& cryptos, |
bool* dtls, |
std::string* error_desc); |
@@ -448,6 +442,13 @@ class VoiceChannel : public BaseChannel { |
rtc::scoped_ptr<VoiceMediaMonitor> media_monitor_; |
rtc::scoped_ptr<AudioMonitor> audio_monitor_; |
rtc::scoped_ptr<TypingMonitor> typing_monitor_; |
+ |
+ // Last AudioSendParameters sent down to the media_channel() via |
+ // SetSendParameters. |
+ AudioSendParameters last_send_params_; |
+ // Last AudioRecvParameters sent down to the media_channel() via |
+ // SetRecvParameters. |
+ AudioRecvParameters last_recv_params_; |
}; |
// VideoChannel is a specialization for video. |
@@ -538,6 +539,13 @@ class VideoChannel : public BaseChannel { |
rtc::scoped_ptr<VideoMediaMonitor> media_monitor_; |
rtc::WindowEvent previous_we_; |
+ |
+ // Last VideoSendParameters sent down to the media_channel() via |
+ // SetSendParameters. |
+ VideoSendParameters last_send_params_; |
+ // Last VideoRecvParameters sent down to the media_channel() via |
+ // SetRecvParameters. |
+ VideoRecvParameters last_recv_params_; |
}; |
// DataChannel is a specialization for data. |