| Index: webrtc/modules/pacing/bitrate_prober.h
|
| diff --git a/webrtc/modules/pacing/bitrate_prober.h b/webrtc/modules/pacing/bitrate_prober.h
|
| index 81eea64512927c246854a8cbcca4caca1fc4c62a..cd66ca7b18c19285a0b2cf3177a147d3d0b25010 100644
|
| --- a/webrtc/modules/pacing/bitrate_prober.h
|
| +++ b/webrtc/modules/pacing/bitrate_prober.h
|
| @@ -72,27 +72,35 @@ class BitrateProber {
|
| };
|
|
|
| // A probe cluster consists of a set of probes. Each probe in turn can be
|
| - // divided into a number of packets to accomodate the MTU on the network.
|
| + // divided into a number of packets to accommodate the MTU on the network.
|
| struct ProbeCluster {
|
| int max_probes = 0;
|
| - int sent_probes = 0;
|
| int probe_bitrate_bps = 0;
|
| int id = -1;
|
| +
|
| + int sent_probes = 0;
|
| + int bytes_sent = 0;
|
| + int64_t time_started_ms = -1;
|
| };
|
|
|
| // Resets the state of the prober and clears any cluster/timing data tracked.
|
| void ResetState();
|
|
|
| + int64_t GetNextProbeTime(const ProbeCluster& cluster);
|
| +
|
| ProbingState probing_state_;
|
| +
|
| // Probe bitrate per packet. These are used to compute the delta relative to
|
| // the previous probe packet based on the size and time when that packet was
|
| // sent.
|
| std::queue<ProbeCluster> clusters_;
|
| - // A probe can include one or more packets.
|
| - size_t probe_size_last_sent_;
|
| - // The last time a probe was sent.
|
| - int64_t time_last_probe_sent_ms_;
|
| +
|
| + // Time the next probe should be sent when in kActive state.
|
| + int64_t next_probe_time_ms_;
|
| +
|
| int next_cluster_id_;
|
| };
|
| +
|
| } // namespace webrtc
|
| +
|
| #endif // WEBRTC_MODULES_PACING_BITRATE_PROBER_H_
|
|
|