Lines Matching defs:BaseChannel
169 BaseChannel::BaseChannel(rtc::Thread* thread,
196 BaseChannel::~BaseChannel() {
221 bool BaseChannel::Init() {
240 void BaseChannel::Deinit() {
244 bool BaseChannel::SetTransport(const std::string& transport_name) {
246 Bind(&BaseChannel::SetTransport_w, this, transport_name));
249 bool BaseChannel::SetTransport_w(const std::string& transport_name) {
298 void BaseChannel::set_transport_channel(TransportChannel* new_tc) {
329 void BaseChannel::set_rtcp_transport_channel(TransportChannel* new_tc,
366 void BaseChannel::ConnectToTransportChannel(TransportChannel* tc) {
369 tc->SignalWritableState.connect(this, &BaseChannel::OnWritableState);
370 tc->SignalReadPacket.connect(this, &BaseChannel::OnChannelRead);
371 tc->SignalReadyToSend.connect(this, &BaseChannel::OnReadyToSend);
372 tc->SignalDtlsState.connect(this, &BaseChannel::OnDtlsState);
375 void BaseChannel::DisconnectFromTransportChannel(TransportChannel* tc) {
384 bool BaseChannel::Enable(bool enable) {
386 enable ? &BaseChannel::EnableMedia_w : &BaseChannel::DisableMedia_w,
391 bool BaseChannel::AddRecvStream(const StreamParams& sp) {
392 return InvokeOnWorker(Bind(&BaseChannel::AddRecvStream_w, this, sp));
395 bool BaseChannel::RemoveRecvStream(uint32_t ssrc) {
396 return InvokeOnWorker(Bind(&BaseChannel::RemoveRecvStream_w, this, ssrc));
399 bool BaseChannel::AddSendStream(const StreamParams& sp) {
404 bool BaseChannel::RemoveSendStream(uint32_t ssrc) {
409 bool BaseChannel::SetLocalContent(const MediaContentDescription* content,
412 TRACE_EVENT0("webrtc", "BaseChannel::SetLocalContent");
413 return InvokeOnWorker(Bind(&BaseChannel::SetLocalContent_w,
417 bool BaseChannel::SetRemoteContent(const MediaContentDescription* content,
420 TRACE_EVENT0("webrtc", "BaseChannel::SetRemoteContent");
421 return InvokeOnWorker(Bind(&BaseChannel::SetRemoteContent_w,
425 void BaseChannel::StartConnectionMonitor(int cms) {
426 // We pass in the BaseChannel instead of the transport_channel_
432 this, &BaseChannel::OnConnectionMonitorUpdate);
436 void BaseChannel::StopConnectionMonitor() {
443 bool BaseChannel::GetConnectionStats(ConnectionInfos* infos) {
448 bool BaseChannel::IsReadyToReceive() const {
453 bool BaseChannel::IsReadyToSend() const {
462 bool BaseChannel::SendPacket(rtc::Buffer* packet,
467 bool BaseChannel::SendRtcp(rtc::Buffer* packet,
472 int BaseChannel::SetOption(SocketType type, rtc::Socket::Option opt,
490 void BaseChannel::OnWritableState(TransportChannel* channel) {
495 void BaseChannel::OnChannelRead(TransportChannel* channel,
499 TRACE_EVENT0("webrtc", "BaseChannel::OnChannelRead");
510 void BaseChannel::OnReadyToSend(TransportChannel* channel) {
515 void BaseChannel::OnDtlsState(TransportChannel* channel,
531 void BaseChannel::SetReadyToSend(bool rtcp, bool ready) {
549 bool BaseChannel::PacketIsRtcp(const TransportChannel* channel,
555 bool BaseChannel::SendPacket(bool rtcp,
677 bool BaseChannel::WantsPacket(bool rtcp, rtc::Buffer* packet) {
693 void BaseChannel::HandlePacket(bool rtcp, rtc::Buffer* packet,
759 bool BaseChannel::PushdownLocalDescription(
773 bool BaseChannel::PushdownRemoteDescription(
787 void BaseChannel::EnableMedia_w() {
797 void BaseChannel::DisableMedia_w() {
807 void BaseChannel::UpdateWritableState_w() {
816 void BaseChannel::ChannelWritable_w() {
842 void BaseChannel::SignalDtlsSetupFailure_w(bool rtcp) {
845 &BaseChannel::SignalDtlsSetupFailure_s, this, rtcp));
848 void BaseChannel::SignalDtlsSetupFailure_s(bool rtcp) {
853 bool BaseChannel::SetDtlsSrtpCryptoSuites(TransportChannel* tc, bool rtcp) {
865 bool BaseChannel::ShouldSetupDtlsSrtp() const {
872 bool BaseChannel::SetupDtlsSrtp(bool rtcp_channel) {
958 void BaseChannel::MaybeSetupDtlsSrtp_w() {
980 void BaseChannel::ChannelNotWritable_w() {
990 bool BaseChannel::SetRtpTransportParameters_w(
1018 bool BaseChannel::CheckSrtpConfig(const std::vector<CryptoParams>& cryptos,
1030 bool BaseChannel::SetSrtp_w(const std::vector<CryptoParams>& cryptos,
1076 void BaseChannel::ActivateRtcpMux() {
1078 &BaseChannel::ActivateRtcpMux_w, this));
1081 void BaseChannel::ActivateRtcpMux_w() {
1089 bool BaseChannel::SetRtcpMux_w(bool enable, ContentAction action,
1135 bool BaseChannel::AddRecvStream_w(const StreamParams& sp) {
1140 bool BaseChannel::RemoveRecvStream_w(uint32_t ssrc) {
1145 bool BaseChannel::UpdateLocalStreams_w(const std::vector<StreamParams>& streams,
1217 bool BaseChannel::UpdateRemoteStreams_w(
1292 void BaseChannel::MaybeCacheRtpAbsSendTimeHeaderExtension(
1300 void BaseChannel::OnMessage(rtc::Message *pmsg) {
1301 TRACE_EVENT0("webrtc", "BaseChannel::OnMessage");
1318 void BaseChannel::FlushRtcpMessages() {
1336 : BaseChannel(thread,
1353 if (!BaseChannel::Init()) {
1464 BaseChannel::OnChannelRead(channel, data, len, packet_time, flags);
1618 BaseChannel::OnMessage(pmsg);
1648 : BaseChannel(thread,
1657 if (!BaseChannel::Init()) {
1944 BaseChannel::OnMessage(pmsg);
2013 : BaseChannel(thread,
2030 if (!BaseChannel::Init()) {
2060 return BaseChannel::WantsPacket(rtcp, packet);
2259 BaseChannel::OnMessage(pmsg);
2318 return (data_channel_type_ == DCT_RTP) && BaseChannel::ShouldSetupDtlsSrtp();