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/modules/remote_bitrate_estimator/include/remote_bitrate_estimator.h

Issue 2235373004: Probing: Add support for exponential startup probing (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@fix_probing2
Patch Set: lint fix Created 4 years, 3 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 (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 16 matching lines...) Expand all
27 class Clock; 27 class Clock;
28 28
29 // RemoteBitrateObserver is used to signal changes in bitrate estimates for 29 // RemoteBitrateObserver is used to signal changes in bitrate estimates for
30 // the incoming streams. 30 // the incoming streams.
31 class RemoteBitrateObserver { 31 class RemoteBitrateObserver {
32 public: 32 public:
33 // Called when a receive channel group has a new bitrate estimate for the 33 // Called when a receive channel group has a new bitrate estimate for the
34 // incoming streams. 34 // incoming streams.
35 virtual void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, 35 virtual void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs,
36 uint32_t bitrate) = 0; 36 uint32_t bitrate) = 0;
37
38 virtual void OnProbeBitrate(uint32_t bitrate) {} 37 virtual void OnProbeBitrate(uint32_t bitrate) {}
39 38
40 virtual ~RemoteBitrateObserver() {} 39 virtual ~RemoteBitrateObserver() {}
41 }; 40 };
42 41
43 // TODO(holmer): Remove when all implementations have been updated. 42 // TODO(holmer): Remove when all implementations have been updated.
44 struct ReceiveBandwidthEstimatorStats {}; 43 struct ReceiveBandwidthEstimatorStats {};
45 44
46 class RemoteBitrateEstimator : public CallStatsObserver, public Module { 45 class RemoteBitrateEstimator : public CallStatsObserver, public Module {
47 public: 46 public:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual void SetMinBitrate(int min_bitrate_bps) = 0; 78 virtual void SetMinBitrate(int min_bitrate_bps) = 0;
80 79
81 protected: 80 protected:
82 static const int64_t kProcessIntervalMs = 500; 81 static const int64_t kProcessIntervalMs = 500;
83 static const int64_t kStreamTimeOutMs = 2000; 82 static const int64_t kStreamTimeOutMs = 2000;
84 }; 83 };
85 84
86 } // namespace webrtc 85 } // namespace webrtc
87 86
88 #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 | « webrtc/modules/pacing/paced_sender.h ('k') | webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698