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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimator.h

Issue 1713463002: Make RemoteBitrateEstimator::GetStats() virtual. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 | no next file » | 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Removes all data for |ssrc|. 64 // Removes all data for |ssrc|.
65 virtual void RemoveStream(uint32_t ssrc) = 0; 65 virtual void RemoveStream(uint32_t ssrc) = 0;
66 66
67 // Returns true if a valid estimate exists and sets |bitrate_bps| to the 67 // Returns true if a valid estimate exists and sets |bitrate_bps| to the
68 // estimated payload bitrate in bits per second. |ssrcs| is the list of ssrcs 68 // estimated payload bitrate in bits per second. |ssrcs| is the list of ssrcs
69 // currently being received and of which the bitrate estimate is based upon. 69 // currently being received and of which the bitrate estimate is based upon.
70 virtual bool LatestEstimate(std::vector<uint32_t>* ssrcs, 70 virtual bool LatestEstimate(std::vector<uint32_t>* ssrcs,
71 uint32_t* bitrate_bps) const = 0; 71 uint32_t* bitrate_bps) const = 0;
72 72
73 // TODO(holmer): Remove when all implementations have been updated. 73 // TODO(holmer): Remove when all implementations have been updated.
74 bool GetStats(ReceiveBandwidthEstimatorStats* output) const { 74 virtual bool GetStats(ReceiveBandwidthEstimatorStats* output) const {
75 return false; 75 return false;
76 } 76 }
77 77
78 virtual void SetMinBitrate(int min_bitrate_bps) = 0; 78 virtual void SetMinBitrate(int min_bitrate_bps) = 0;
79 79
80 protected: 80 protected:
81 static const int64_t kProcessIntervalMs = 500; 81 static const int64_t kProcessIntervalMs = 500;
82 static const int64_t kStreamTimeOutMs = 2000; 82 static const int64_t kStreamTimeOutMs = 2000;
83 }; 83 };
84 84
85 } // namespace webrtc 85 } // namespace webrtc
86 86
87 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_REMOTE_BITRATE_ESTIMA TOR_H_ 87 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_REMOTE_BITRATE_ESTIMA TOR_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698