Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: webrtc/pc/channel.h

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Rename SignalTransportOverheadChanged to UpdateTransportOverhead. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc ('k') | webrtc/pc/channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 359
360 private: 360 private:
361 bool InitNetwork_n(const std::string* bundle_transport_name); 361 bool InitNetwork_n(const std::string* bundle_transport_name);
362 void DisconnectTransportChannels_n(); 362 void DisconnectTransportChannels_n();
363 void DestroyTransportChannels_n(); 363 void DestroyTransportChannels_n();
364 void SignalSentPacket_n(rtc::PacketTransportInterface* transport, 364 void SignalSentPacket_n(rtc::PacketTransportInterface* transport,
365 const rtc::SentPacket& sent_packet); 365 const rtc::SentPacket& sent_packet);
366 void SignalSentPacket_w(const rtc::SentPacket& sent_packet); 366 void SignalSentPacket_w(const rtc::SentPacket& sent_packet);
367 bool IsReadyToSendMedia_n() const; 367 bool IsReadyToSendMedia_n() const;
368 void CacheRtpAbsSendTimeHeaderExtension_n(int rtp_abs_sendtime_extn_id); 368 void CacheRtpAbsSendTimeHeaderExtension_n(int rtp_abs_sendtime_extn_id);
369 int GetTransportOverheadPerPacket() const;
370 void UpdateTransportOverhead();
369 371
370 rtc::Thread* const worker_thread_; 372 rtc::Thread* const worker_thread_;
371 rtc::Thread* const network_thread_; 373 rtc::Thread* const network_thread_;
372 rtc::AsyncInvoker invoker_; 374 rtc::AsyncInvoker invoker_;
373 375
374 const std::string content_name_; 376 const std::string content_name_;
375 std::unique_ptr<ConnectionMonitor> connection_monitor_; 377 std::unique_ptr<ConnectionMonitor> connection_monitor_;
376 378
377 // Transport related members that should be accessed from network thread. 379 // Transport related members that should be accessed from network thread.
378 TransportController* const transport_controller_; 380 TransportController* const transport_controller_;
(...skipping 24 matching lines...) Expand all
403 // thread. 405 // thread.
404 MediaChannel* const media_channel_; 406 MediaChannel* const media_channel_;
405 // Currently the |enabled_| flag is accessed from the signaling thread as 407 // Currently the |enabled_| flag is accessed from the signaling thread as
406 // well, but it can be changed only when signaling thread does a synchronous 408 // well, but it can be changed only when signaling thread does a synchronous
407 // call to the worker thread, so it should be safe. 409 // call to the worker thread, so it should be safe.
408 bool enabled_ = false; 410 bool enabled_ = false;
409 std::vector<StreamParams> local_streams_; 411 std::vector<StreamParams> local_streams_;
410 std::vector<StreamParams> remote_streams_; 412 std::vector<StreamParams> remote_streams_;
411 MediaContentDirection local_content_direction_ = MD_INACTIVE; 413 MediaContentDirection local_content_direction_ = MD_INACTIVE;
412 MediaContentDirection remote_content_direction_ = MD_INACTIVE; 414 MediaContentDirection remote_content_direction_ = MD_INACTIVE;
415 CandidatePairInterface* selected_candidate_pair_;
413 }; 416 };
414 417
415 // VoiceChannel is a specialization that adds support for early media, DTMF, 418 // VoiceChannel is a specialization that adds support for early media, DTMF,
416 // and input/output level monitoring. 419 // and input/output level monitoring.
417 class VoiceChannel : public BaseChannel { 420 class VoiceChannel : public BaseChannel {
418 public: 421 public:
419 VoiceChannel(rtc::Thread* worker_thread, 422 VoiceChannel(rtc::Thread* worker_thread,
420 rtc::Thread* network_thread, 423 rtc::Thread* network_thread,
421 MediaEngineInterface* media_engine, 424 MediaEngineInterface* media_engine,
422 VoiceMediaChannel* channel, 425 VoiceMediaChannel* channel,
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 // SetSendParameters. 730 // SetSendParameters.
728 DataSendParameters last_send_params_; 731 DataSendParameters last_send_params_;
729 // Last DataRecvParameters sent down to the media_channel() via 732 // Last DataRecvParameters sent down to the media_channel() via
730 // SetRecvParameters. 733 // SetRecvParameters.
731 DataRecvParameters last_recv_params_; 734 DataRecvParameters last_recv_params_;
732 }; 735 };
733 736
734 } // namespace cricket 737 } // namespace cricket
735 738
736 #endif // WEBRTC_PC_CHANNEL_H_ 739 #endif // WEBRTC_PC_CHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc ('k') | webrtc/pc/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698