Index: webrtc/modules/pacing/paced_sender.h |
diff --git a/webrtc/modules/pacing/paced_sender.h b/webrtc/modules/pacing/paced_sender.h |
index 02d1dbd3d65a17262c697f364db2c02ec0eb9c2a..83701eaedae88208e793955d42b3532d13831876 100644 |
--- a/webrtc/modules/pacing/paced_sender.h |
+++ b/webrtc/modules/pacing/paced_sender.h |
@@ -21,6 +21,7 @@ |
#include "webrtc/typedefs.h" |
namespace webrtc { |
+class AlrDetector; |
class BitrateProber; |
class Clock; |
class CriticalSectionWrapper; |
@@ -132,7 +133,9 @@ class PacedSender : public Module, public RtpPacketSender { |
private: |
// Updates the number of bytes that can be sent for the next time interval. |
- void UpdateBytesPerInterval(int64_t delta_time_in_ms) |
+ void UpdateBudgetWithElapsedTime(int64_t delta_time_in_ms) |
+ EXCLUSIVE_LOCKS_REQUIRED(critsect_); |
+ void UpdateBudgetWithBytesSent(size_t bytes) |
EXCLUSIVE_LOCKS_REQUIRED(critsect_); |
bool SendPacket(const paced_sender::Packet& packet, int probe_cluster_id) |
@@ -142,6 +145,7 @@ class PacedSender : public Module, public RtpPacketSender { |
Clock* const clock_; |
PacketSender* const packet_sender_; |
+ std::unique_ptr<AlrDetector> alr_detector_; |
std::unique_ptr<CriticalSectionWrapper> critsect_; |
bool paused_ GUARDED_BY(critsect_); |