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

Side by Side Diff: webrtc/media/base/fakemediaengine.h

Issue 2863123002: Wire up BWE stats through WebrtcSession so that they are filled in both for audio and video calls. (Closed)
Patch Set: Comments addressed." Created 3 years, 6 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
« no previous file with comments | « no previous file | webrtc/media/base/mediachannel.h » ('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 (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 sinks_[sp.first_ssrc()] = NULL; 597 sinks_[sp.first_ssrc()] = NULL;
598 return true; 598 return true;
599 } 599 }
600 bool RemoveRecvStream(uint32_t ssrc) override { 600 bool RemoveRecvStream(uint32_t ssrc) override {
601 if (!RtpHelper<VideoMediaChannel>::RemoveRecvStream(ssrc)) 601 if (!RtpHelper<VideoMediaChannel>::RemoveRecvStream(ssrc))
602 return false; 602 return false;
603 sinks_.erase(ssrc); 603 sinks_.erase(ssrc);
604 return true; 604 return true;
605 } 605 }
606 606
607 void FillBitrateInfo(BandwidthEstimationInfo* bwe_info) override {}
607 bool GetStats(VideoMediaInfo* info) override { return false; } 608 bool GetStats(VideoMediaInfo* info) override { return false; }
608 609
609 private: 610 private:
610 bool SetRecvCodecs(const std::vector<VideoCodec>& codecs) { 611 bool SetRecvCodecs(const std::vector<VideoCodec>& codecs) {
611 if (fail_set_recv_codecs()) { 612 if (fail_set_recv_codecs()) {
612 // Fake the failure in SetRecvCodecs. 613 // Fake the failure in SetRecvCodecs.
613 return false; 614 return false;
614 } 615 }
615 recv_codecs_ = codecs; 616 recv_codecs_ = codecs;
616 return true; 617 return true;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 virtual const std::vector<DataCodec>& data_codecs() { return data_codecs_; } 966 virtual const std::vector<DataCodec>& data_codecs() { return data_codecs_; }
966 967
967 private: 968 private:
968 std::vector<FakeDataMediaChannel*> channels_; 969 std::vector<FakeDataMediaChannel*> channels_;
969 std::vector<DataCodec> data_codecs_; 970 std::vector<DataCodec> data_codecs_;
970 }; 971 };
971 972
972 } // namespace cricket 973 } // namespace cricket
973 974
974 #endif // WEBRTC_MEDIA_BASE_FAKEMEDIAENGINE_H_ 975 #endif // WEBRTC_MEDIA_BASE_FAKEMEDIAENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/base/mediachannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698