OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 ContentSource src, | 344 ContentSource src, |
345 std::string* error_desc); | 345 std::string* error_desc); |
346 | 346 |
347 // From MessageHandler | 347 // From MessageHandler |
348 void OnMessage(rtc::Message* pmsg) override; | 348 void OnMessage(rtc::Message* pmsg) override; |
349 | 349 |
350 // Handled in derived classes | 350 // Handled in derived classes |
351 virtual void OnConnectionMonitorUpdate(ConnectionMonitor* monitor, | 351 virtual void OnConnectionMonitorUpdate(ConnectionMonitor* monitor, |
352 const std::vector<ConnectionInfo>& infos) = 0; | 352 const std::vector<ConnectionInfo>& infos) = 0; |
353 | 353 |
354 // Helper function for invoking bool-returning methods on the worker thread. | 354 // Helper function template for invoking methods on the worker thread. |
355 template <class FunctorT> | 355 template <class T, class FunctorT> |
356 bool InvokeOnWorker(const rtc::Location& posted_from, | 356 T InvokeOnWorker(const rtc::Location& posted_from, const FunctorT& functor) { |
357 const FunctorT& functor) { | 357 return worker_thread_->Invoke<T>(posted_from, functor); |
358 return worker_thread_->Invoke<bool>(posted_from, functor); | |
359 } | 358 } |
360 | 359 |
361 void AddHandledPayloadType(int payload_type); | 360 void AddHandledPayloadType(int payload_type); |
362 | 361 |
363 private: | 362 private: |
364 bool InitNetwork_n(DtlsTransportInternal* rtp_dtls_transport, | 363 bool InitNetwork_n(DtlsTransportInternal* rtp_dtls_transport, |
365 DtlsTransportInternal* rtcp_dtls_transport, | 364 DtlsTransportInternal* rtcp_dtls_transport, |
366 rtc::PacketTransportInternal* rtp_packet_transport, | 365 rtc::PacketTransportInternal* rtp_packet_transport, |
367 rtc::PacketTransportInternal* rtcp_packet_transport); | 366 rtc::PacketTransportInternal* rtcp_packet_transport); |
368 void DisconnectTransportChannels_n(); | 367 void DisconnectTransportChannels_n(); |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 bool srtp_required); | 546 bool srtp_required); |
548 ~VideoChannel(); | 547 ~VideoChannel(); |
549 | 548 |
550 // downcasts a MediaChannel | 549 // downcasts a MediaChannel |
551 VideoMediaChannel* media_channel() const override { | 550 VideoMediaChannel* media_channel() const override { |
552 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel()); | 551 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel()); |
553 } | 552 } |
554 | 553 |
555 bool SetSink(uint32_t ssrc, | 554 bool SetSink(uint32_t ssrc, |
556 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink); | 555 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink); |
| 556 void FillBitrateInfo(BandwidthEstimationInfo* bwe_info); |
557 // Get statistics about the current media session. | 557 // Get statistics about the current media session. |
558 bool GetStats(VideoMediaInfo* stats); | 558 bool GetStats(VideoMediaInfo* stats); |
559 | 559 |
560 sigslot::signal2<VideoChannel*, const std::vector<ConnectionInfo>&> | 560 sigslot::signal2<VideoChannel*, const std::vector<ConnectionInfo>&> |
561 SignalConnectionMonitor; | 561 SignalConnectionMonitor; |
562 | 562 |
563 void StartMediaMonitor(int cms); | 563 void StartMediaMonitor(int cms); |
564 void StopMediaMonitor(); | 564 void StopMediaMonitor(); |
565 sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor; | 565 sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor; |
566 | 566 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 // SetSendParameters. | 721 // SetSendParameters. |
722 DataSendParameters last_send_params_; | 722 DataSendParameters last_send_params_; |
723 // Last DataRecvParameters sent down to the media_channel() via | 723 // Last DataRecvParameters sent down to the media_channel() via |
724 // SetRecvParameters. | 724 // SetRecvParameters. |
725 DataRecvParameters last_recv_params_; | 725 DataRecvParameters last_recv_params_; |
726 }; | 726 }; |
727 | 727 |
728 } // namespace cricket | 728 } // namespace cricket |
729 | 729 |
730 #endif // WEBRTC_PC_CHANNEL_H_ | 730 #endif // WEBRTC_PC_CHANNEL_H_ |
OLD | NEW |