Index: webrtc/modules/pacing/bitrate_prober.h |
diff --git a/webrtc/modules/pacing/bitrate_prober.h b/webrtc/modules/pacing/bitrate_prober.h |
index 225ee9e157bed7d3cfe16861ebbe3c59de93e198..0f80e0588020bf6ff6a927047d90d66b8899a8f9 100644 |
--- a/webrtc/modules/pacing/bitrate_prober.h |
+++ b/webrtc/modules/pacing/bitrate_prober.h |
@@ -18,12 +18,26 @@ |
namespace webrtc { |
+class ProbeClusterCreatedObserver { |
+ public: |
+ virtual ~ProbeClusterCreatedObserver() {} |
+ // Called whenever a probing cluster is created by the BitrateProber. |
+ // |cluster_id| = the id of the cluster. |
nisse-webrtc
2017/01/11 10:47:40
I think I understand the purpose of this now. The
philipel
2017/01/11 12:08:04
Actually, the cluster id is not sent over the wire
nisse-webrtc
2017/01/11 12:33:39
In that case, I think information about the probe
nisse-webrtc
2017/01/11 12:33:39
The class still needs a comment explaining its pur
philipel
2017/01/12 10:39:29
I think it makes more sense to store this informat
|
+ // |min_bytes| = the minimum number of bytes that will be used. |
+ // |min_probes| = the minimum number of probing packets that will be used. |
+ virtual void OnProbingClusterCreated(int cluster_id, |
+ int min_bytes, |
+ int min_probes) = 0; |
nisse-webrtc
2017/01/11 10:47:40
I think min_packets is a better name than min_prob
philipel
2017/01/11 12:08:04
We have used "probes" to refer to packets being pa
|
+}; |
+ |
// Note that this class isn't thread-safe by itself and therefore relies |
// on being protected by the caller. |
class BitrateProber { |
public: |
BitrateProber(); |
+ explicit BitrateProber(ProbeClusterCreatedObserver* cluster_created_observer); |
+ |
void SetEnabled(bool enable); |
// Returns true if the prober is in a probing session, i.e., it currently |
@@ -100,6 +114,8 @@ class BitrateProber { |
int64_t next_probe_time_ms_; |
int next_cluster_id_; |
+ |
+ ProbeClusterCreatedObserver* cluster_created_observer_; |
}; |
} // namespace webrtc |