Add in-memory caching of network quality estimates across network changes.
commit75540a59248efeb382e515971b762c17592a6ada
authortbansal <tbansal@chromium.org>
Wed, 15 Jul 2015 22:18:21 +0000 (15 15:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 15 Jul 2015 22:19:36 +0000 (15 22:19 +0000)
treefcc9a7dfe6557a8953b4ff2499711d17929b1445
parent8b63ac323d57084cae17ce835389abd5bd4d65ce
Add in-memory caching of network quality estimates across network changes.

This is the first step towards preserving network quality
estimates across browser session restarts.

User may switch between different networks within
the same browser session (e.g., from Wi-Fi to cellular
and back to Wi-Fi). This change caches the estimates
when the device switches networks. If the user
uses the same network again, the cached estimates
would be used to quickly arrive at quality
estimates.

BUG=509712

Review URL: https://codereview.chromium.org/1144163008

Cr-Commit-Position: refs/heads/master@{#338923}
net/base/network_quality_estimator.cc
net/base/network_quality_estimator.h
net/base/network_quality_estimator_unittest.cc