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

Side by Side Diff: webrtc/modules/pacing/paced_sender.h

Issue 2246403002: CongestionController::SetBweBitrates may now trigger probing. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // overshoots from the encoder. 64 // overshoots from the encoder.
65 static const float kDefaultPaceMultiplier; 65 static const float kDefaultPaceMultiplier;
66 66
67 static const size_t kMinProbePacketSize = 200; 67 static const size_t kMinProbePacketSize = 200;
68 68
69 PacedSender(Clock* clock, 69 PacedSender(Clock* clock,
70 PacketSender* packet_sender); 70 PacketSender* packet_sender);
71 71
72 virtual ~PacedSender(); 72 virtual ~PacedSender();
73 73
74 void ProbeAtBitrate(int bitrate_bps, int num_packets);
75
74 // Temporarily pause all sending. 76 // Temporarily pause all sending.
75 void Pause(); 77 void Pause();
76 78
77 // Resume sending packets. 79 // Resume sending packets.
78 void Resume(); 80 void Resume();
79 81
80 // Enable bitrate probing. Enabled by default, mostly here to simplify 82 // Enable bitrate probing. Enabled by default, mostly here to simplify
81 // testing. Must be called before any packets are being sent to have an 83 // testing. Must be called before any packets are being sent to have an
82 // effect. 84 // effect.
83 void SetProbingEnabled(bool enabled); 85 void SetProbingEnabled(bool enabled);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 uint32_t max_padding_bitrate_kbps_ GUARDED_BY(critsect_); 163 uint32_t max_padding_bitrate_kbps_ GUARDED_BY(critsect_);
162 uint32_t pacing_bitrate_kbps_ GUARDED_BY(critsect_); 164 uint32_t pacing_bitrate_kbps_ GUARDED_BY(critsect_);
163 165
164 int64_t time_last_update_us_ GUARDED_BY(critsect_); 166 int64_t time_last_update_us_ GUARDED_BY(critsect_);
165 167
166 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_); 168 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_);
167 uint64_t packet_counter_; 169 uint64_t packet_counter_;
168 }; 170 };
169 } // namespace webrtc 171 } // namespace webrtc
170 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_ 172 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698