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

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

Issue 2628563003: Propagate packet pacing information to SenTimeHistory (Closed)
Patch Set: . 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..0c27e42e6ef0ea8672eeaa5469c93ec0b5e54278 100644
--- a/webrtc/modules/pacing/bitrate_prober.h
+++ b/webrtc/modules/pacing/bitrate_prober.h
@@ -18,12 +18,22 @@
namespace webrtc {
+class ProbeClusterCreatedObserver {
+ public:
+ virtual ~ProbeClusterCreatedObserver() {}
+ virtual void OnProbingClusterCreated(int cluster_id,
nisse-webrtc 2017/01/10 16:04:41 Please document what the parameters mean. Might a
philipel 2017/01/11 09:03:33 Done
nisse-webrtc 2017/01/11 09:10:32 Even if it delegates the processing, I still don't
+ int min_bytes,
+ int min_probes) = 0;
+};
+
// 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 +110,8 @@ class BitrateProber {
int64_t next_probe_time_ms_;
int next_cluster_id_;
+
+ ProbeClusterCreatedObserver* cluster_created_observer_;
};
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698