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

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

Issue 2863123002: Wire up BWE stats through WebrtcSession so that they are filled in both for audio and video calls. (Closed)
Patch Set: Created 3 years, 7 months 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
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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 bool srtp_required); 547 bool srtp_required);
548 ~VideoChannel(); 548 ~VideoChannel();
549 549
550 // downcasts a MediaChannel 550 // downcasts a MediaChannel
551 VideoMediaChannel* media_channel() const override { 551 VideoMediaChannel* media_channel() const override {
552 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel()); 552 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel());
553 } 553 }
554 554
555 bool SetSink(uint32_t ssrc, 555 bool SetSink(uint32_t ssrc,
556 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink); 556 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink);
557 void FillBitrateInfo(BandwidthEstimationInfo* bwe_info);
557 // Get statistics about the current media session. 558 // Get statistics about the current media session.
558 bool GetStats(VideoMediaInfo* stats); 559 bool GetStats(VideoMediaInfo* stats);
559 560
560 sigslot::signal2<VideoChannel*, const std::vector<ConnectionInfo>&> 561 sigslot::signal2<VideoChannel*, const std::vector<ConnectionInfo>&>
561 SignalConnectionMonitor; 562 SignalConnectionMonitor;
562 563
563 void StartMediaMonitor(int cms); 564 void StartMediaMonitor(int cms);
564 void StopMediaMonitor(); 565 void StopMediaMonitor();
565 sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor; 566 sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor;
566 567
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 // SetSendParameters. 722 // SetSendParameters.
722 DataSendParameters last_send_params_; 723 DataSendParameters last_send_params_;
723 // Last DataRecvParameters sent down to the media_channel() via 724 // Last DataRecvParameters sent down to the media_channel() via
724 // SetRecvParameters. 725 // SetRecvParameters.
725 DataRecvParameters last_recv_params_; 726 DataRecvParameters last_recv_params_;
726 }; 727 };
727 728
728 } // namespace cricket 729 } // namespace cricket
729 730
730 #endif // WEBRTC_PC_CHANNEL_H_ 731 #endif // WEBRTC_PC_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698