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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 354 |
355 private: | 355 private: |
356 bool InitNetwork_n(const std::string* bundle_transport_name); | 356 bool InitNetwork_n(const std::string* bundle_transport_name); |
357 void DisconnectTransportChannels_n(); | 357 void DisconnectTransportChannels_n(); |
358 void DestroyTransportChannels_n(); | 358 void DestroyTransportChannels_n(); |
359 void SignalSentPacket_n(TransportChannel* channel, | 359 void SignalSentPacket_n(TransportChannel* channel, |
360 const rtc::SentPacket& sent_packet); | 360 const rtc::SentPacket& sent_packet); |
361 void SignalSentPacket_w(const rtc::SentPacket& sent_packet); | 361 void SignalSentPacket_w(const rtc::SentPacket& sent_packet); |
362 bool IsReadyToSendMedia_n() const; | 362 bool IsReadyToSendMedia_n() const; |
363 void CacheRtpAbsSendTimeHeaderExtension_n(int rtp_abs_sendtime_extn_id); | 363 void CacheRtpAbsSendTimeHeaderExtension_n(int rtp_abs_sendtime_extn_id); |
| 364 int GetTransportOverheadPerPacket(); |
364 | 365 |
365 rtc::Thread* const worker_thread_; | 366 rtc::Thread* const worker_thread_; |
366 rtc::Thread* const network_thread_; | 367 rtc::Thread* const network_thread_; |
367 rtc::AsyncInvoker invoker_; | 368 rtc::AsyncInvoker invoker_; |
368 | 369 |
369 const std::string content_name_; | 370 const std::string content_name_; |
370 std::unique_ptr<ConnectionMonitor> connection_monitor_; | 371 std::unique_ptr<ConnectionMonitor> connection_monitor_; |
371 | 372 |
372 // Transport related members that should be accessed from network thread. | 373 // Transport related members that should be accessed from network thread. |
373 TransportController* const transport_controller_; | 374 TransportController* const transport_controller_; |
(...skipping 23 matching lines...) Expand all Loading... |
397 // thread. | 398 // thread. |
398 MediaChannel* const media_channel_; | 399 MediaChannel* const media_channel_; |
399 // Currently the |enabled_| flag is accessed from the signaling thread as | 400 // Currently the |enabled_| flag is accessed from the signaling thread as |
400 // well, but it can be changed only when signaling thread does a synchronous | 401 // well, but it can be changed only when signaling thread does a synchronous |
401 // call to the worker thread, so it should be safe. | 402 // call to the worker thread, so it should be safe. |
402 bool enabled_ = false; | 403 bool enabled_ = false; |
403 std::vector<StreamParams> local_streams_; | 404 std::vector<StreamParams> local_streams_; |
404 std::vector<StreamParams> remote_streams_; | 405 std::vector<StreamParams> remote_streams_; |
405 MediaContentDirection local_content_direction_ = MD_INACTIVE; | 406 MediaContentDirection local_content_direction_ = MD_INACTIVE; |
406 MediaContentDirection remote_content_direction_ = MD_INACTIVE; | 407 MediaContentDirection remote_content_direction_ = MD_INACTIVE; |
| 408 CandidatePairInterface* selected_candidate_pair_; |
407 }; | 409 }; |
408 | 410 |
409 // VoiceChannel is a specialization that adds support for early media, DTMF, | 411 // VoiceChannel is a specialization that adds support for early media, DTMF, |
410 // and input/output level monitoring. | 412 // and input/output level monitoring. |
411 class VoiceChannel : public BaseChannel { | 413 class VoiceChannel : public BaseChannel { |
412 public: | 414 public: |
413 VoiceChannel(rtc::Thread* worker_thread, | 415 VoiceChannel(rtc::Thread* worker_thread, |
414 rtc::Thread* network_thread, | 416 rtc::Thread* network_thread, |
415 MediaEngineInterface* media_engine, | 417 MediaEngineInterface* media_engine, |
416 VoiceMediaChannel* channel, | 418 VoiceMediaChannel* channel, |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 // SetSendParameters. | 723 // SetSendParameters. |
722 DataSendParameters last_send_params_; | 724 DataSendParameters last_send_params_; |
723 // Last DataRecvParameters sent down to the media_channel() via | 725 // Last DataRecvParameters sent down to the media_channel() via |
724 // SetRecvParameters. | 726 // SetRecvParameters. |
725 DataRecvParameters last_recv_params_; | 727 DataRecvParameters last_recv_params_; |
726 }; | 728 }; |
727 | 729 |
728 } // namespace cricket | 730 } // namespace cricket |
729 | 731 |
730 #endif // WEBRTC_PC_CHANNEL_H_ | 732 #endif // WEBRTC_PC_CHANNEL_H_ |
OLD | NEW |