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

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

Issue 2000063003: Update the BWE when the network route changes. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Add TODO to re-create objects. Created 4 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
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 * Usage: this class will register multiple RtcpBitrateObserver's one at each 10 * Usage: this class will register multiple RtcpBitrateObserver's one at each
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 virtual RtcpBandwidthObserver* CreateRtcpBandwidthObserver() = 0; 63 virtual RtcpBandwidthObserver* CreateRtcpBandwidthObserver() = 0;
64 64
65 // Deprecated 65 // Deprecated
66 virtual void SetStartBitrate(int start_bitrate_bps) = 0; 66 virtual void SetStartBitrate(int start_bitrate_bps) = 0;
67 // Deprecated 67 // Deprecated
68 virtual void SetMinMaxBitrate(int min_bitrate_bps, int max_bitrate_bps) = 0; 68 virtual void SetMinMaxBitrate(int min_bitrate_bps, int max_bitrate_bps) = 0;
69 virtual void SetBitrates(int start_bitrate_bps, 69 virtual void SetBitrates(int start_bitrate_bps,
70 int min_bitrate_bps, 70 int min_bitrate_bps,
71 int max_bitrate_bps) = 0; 71 int max_bitrate_bps) = 0;
72 72
73 virtual void ResetBitrates(int bitrate_bps,
74 int min_bitrate_bps,
75 int max_bitrate_bps) = 0;
76
73 virtual void UpdateDelayBasedEstimate(uint32_t bitrate_bps) = 0; 77 virtual void UpdateDelayBasedEstimate(uint32_t bitrate_bps) = 0;
74 78
75 virtual void SetEventLog(RtcEventLog* event_log) = 0; 79 virtual void SetEventLog(RtcEventLog* event_log) = 0;
76 80
77 // Gets the available payload bandwidth in bits per second. Note that 81 // Gets the available payload bandwidth in bits per second. Note that
78 // this bandwidth excludes packet headers. 82 // this bandwidth excludes packet headers.
79 virtual bool AvailableBandwidth(uint32_t* bandwidth) const = 0; 83 virtual bool AvailableBandwidth(uint32_t* bandwidth) const = 0;
80 84
81 virtual void SetReservedBitrate(uint32_t reserved_bitrate_bps) = 0; 85 virtual void SetReservedBitrate(uint32_t reserved_bitrate_bps) = 0;
82 86
83 virtual bool GetNetworkParameters(uint32_t* bitrate, 87 virtual bool GetNetworkParameters(uint32_t* bitrate,
84 uint8_t* fraction_loss, 88 uint8_t* fraction_loss,
85 int64_t* rtt) = 0; 89 int64_t* rtt) = 0;
86 }; 90 };
87 } // namespace webrtc 91 } // namespace webrtc
88 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_BITRATE_CONTROLLER_H_ 92 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_BITRATE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698