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

Unified Diff: webrtc/modules/pacing/bitrate_prober.h

Issue 2628563003: Propagate packet pacing information to SenTimeHistory (Closed)
Patch Set: Added comment. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « webrtc/modules/congestion_controller/transport_feedback_adapter.cc ('k') | webrtc/modules/pacing/bitrate_prober.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698