Add peer to peer connection count oberver functionality
Add functionality in Network Quality Estimator (NQE) to keep
a list of observers interested in receiving updates to the count
of peer to peer connections. In the next CL, resource scheduler
clients will register as observers, and will throttle browser
initiated traffic based on this count.
Bug: 913424
Change-Id: Ic54628055798155f70148d1836ca887bd9367140
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1681269
Commit-Queue: Tarun Bansal <[email protected]>
Reviewed-by: Ryan Sturm <[email protected]>
Cr-Commit-Position: refs/heads/master@{#673508}
diff --git a/net/BUILD.gn b/net/BUILD.gn
index c73cc91..2066f2f 100644
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
@@ -896,6 +896,7 @@
"nqe/network_quality_store.h",
"nqe/observation_buffer.cc",
"nqe/observation_buffer.h",
+ "nqe/peer_to_peer_connections_count_observer.h",
"nqe/rtt_throughput_estimates_observer.h",
"nqe/socket_watcher.cc",
"nqe/socket_watcher.h",