Replace send packet throttling with a scheme based on number of in-flight bytes in IpcPacketSocket.

This allows short bursts of high-rate sending without dropping packets, but quickly restricts the client to a sustainable steady-state rate.

Added two debug trace counters for visibility under the "p2p" category: P2PSendBytesAvailable and P2PSendPacketsInFlight.

BUG=237960

Review URL: https://chromiumcodereview.appspot.com/14559005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198662 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed