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

Issue 2128793003: Factor out NetworkID and caching mechanism from n_q_e.{h,cc} (Closed)

Created:
4 years, 5 months ago by tbansal1
Modified:
4 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Factor out NetworkID and caching mechanism from n_q_e.{h,cc} This keeps the caching mechanism separate from NQE. This is first step towards enabling persistent caching of estimates. This CL does not record any functional changes, although tests have been expanded. Also, add UMA to record how frequently cached network quality is available. BUG=490870 Committed: https://crrev.com/bff2aec2875872f71e8d2e2fedf2a61eceebecb4 Cr-Commit-Position: refs/heads/master@{#407521}

Patch Set 1 : PS1 #

Patch Set 2 : Rebased #

Total comments: 18

Patch Set 3 : Addressed Ryan's comments #

Total comments: 10

Patch Set 4 : rebased #

Patch Set 5 : Addressed bengr comments #

Total comments: 8

Patch Set 6 : Addressed bengr comments, renamed the class from *Manager to *Store #

Total comments: 10

Patch Set 7 : bengr comments #

Total comments: 2

Patch Set 8 : Rebased #

Patch Set 9 : Addressed asvitkine comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+510 lines, -319 lines) Patch
M net/net.gypi View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M net/nqe/cached_network_quality.h View 1 2 1 chunk +14 lines, -6 lines 0 comments Download
M net/nqe/cached_network_quality.cc View 2 chunks +11 lines, -2 lines 0 comments Download
A net/nqe/network_id.h View 1 2 3 4 5 6 7 8 1 chunk +59 lines, -0 lines 0 comments Download
M net/nqe/network_quality.h View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -4 lines 0 comments Download
M net/nqe/network_quality.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -4 lines 0 comments Download
M net/nqe/network_quality_estimator.h View 1 2 3 4 5 6 7 11 chunks +10 lines, -63 lines 0 comments Download
M net/nqe/network_quality_estimator.cc View 1 2 3 4 5 6 7 8 chunks +23 lines, -77 lines 0 comments Download
M net/nqe/network_quality_estimator_unittest.cc View 1 2 3 4 5 6 7 6 chunks +18 lines, -162 lines 0 comments Download
M net/nqe/network_quality_observation_source.h View 1 chunk +3 lines, -1 line 0 comments Download
A net/nqe/network_quality_store.h View 1 2 3 4 5 6 1 chunk +67 lines, -0 lines 0 comments Download
A net/nqe/network_quality_store.cc View 1 2 3 4 5 1 chunk +83 lines, -0 lines 0 comments Download
A net/nqe/network_quality_store_unittest.cc View 1 2 3 4 5 1 chunk +201 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (24 generated)
tbansal1
bengr: ptal. Thanks.
4 years, 5 months ago (2016-07-08 21:01:18 UTC) #12
RyanSturm
https://codereview.chromium.org/2128793003/diff/120001/net/nqe/cached_network_quality.h File net/nqe/cached_network_quality.h (right): https://codereview.chromium.org/2128793003/diff/120001/net/nqe/cached_network_quality.h#newcode20 net/nqe/cached_network_quality.h:20: // Cached entries are stored in LRU order, and ...
4 years, 5 months ago (2016-07-12 18:45:39 UTC) #14
tbansal1
ryansturm: PTAL. Thanks. https://codereview.chromium.org/2128793003/diff/120001/net/nqe/cached_network_quality.h File net/nqe/cached_network_quality.h (right): https://codereview.chromium.org/2128793003/diff/120001/net/nqe/cached_network_quality.h#newcode20 net/nqe/cached_network_quality.h:20: // Cached entries are stored in ...
4 years, 5 months ago (2016-07-12 19:40:19 UTC) #15
RyanSturm
lgtm
4 years, 5 months ago (2016-07-12 20:00:13 UTC) #16
bengr
https://codereview.chromium.org/2128793003/diff/140001/net/nqe/cached_network_quality.h File net/nqe/cached_network_quality.h (right): https://codereview.chromium.org/2128793003/diff/140001/net/nqe/cached_network_quality.h#newcode39 net/nqe/cached_network_quality.h:39: base::TimeTicks last_update_time() { return last_update_time_; } Can this return ...
4 years, 5 months ago (2016-07-19 01:04:36 UTC) #17
tbansal1
bengr: ptal. Thanks. https://codereview.chromium.org/2128793003/diff/140001/net/nqe/cached_network_quality.h File net/nqe/cached_network_quality.h (right): https://codereview.chromium.org/2128793003/diff/140001/net/nqe/cached_network_quality.h#newcode39 net/nqe/cached_network_quality.h:39: base::TimeTicks last_update_time() { return last_update_time_; } ...
4 years, 5 months ago (2016-07-20 00:08:47 UTC) #18
bengr
https://codereview.chromium.org/2128793003/diff/140001/net/nqe/cached_network_quality.h File net/nqe/cached_network_quality.h (right): https://codereview.chromium.org/2128793003/diff/140001/net/nqe/cached_network_quality.h#newcode39 net/nqe/cached_network_quality.h:39: base::TimeTicks last_update_time() { return last_update_time_; } On 2016/07/20 00:08:47, ...
4 years, 5 months ago (2016-07-21 00:16:24 UTC) #19
tbansal1
bengr: ptal. Thanks. https://codereview.chromium.org/2128793003/diff/180001/net/nqe/network_qualities_manager.h File net/nqe/network_qualities_manager.h (right): https://codereview.chromium.org/2128793003/diff/180001/net/nqe/network_qualities_manager.h#newcode25 net/nqe/network_qualities_manager.h:25: class NET_EXPORT_PRIVATE NetworkQualitiesManager { On 2016/07/21 ...
4 years, 5 months ago (2016-07-21 01:25:40 UTC) #22
bengr
lgtm with nits on comments https://codereview.chromium.org/2128793003/diff/240001/net/nqe/network_quality_store.h File net/nqe/network_quality_store.h (right): https://codereview.chromium.org/2128793003/diff/240001/net/nqe/network_quality_store.h#newcode29 net/nqe/network_quality_store.h:29: // Stores the network ...
4 years, 5 months ago (2016-07-21 21:48:15 UTC) #23
tbansal1
asvitkine: PTAL at histograms.xml. https://codereview.chromium.org/2128793003/diff/240001/net/nqe/network_quality_store.h File net/nqe/network_quality_store.h (right): https://codereview.chromium.org/2128793003/diff/240001/net/nqe/network_quality_store.h#newcode29 net/nqe/network_quality_store.h:29: // Stores the network quality ...
4 years, 5 months ago (2016-07-21 22:50:55 UTC) #25
tbansal1
mmenke: ptal at net.gypi. Thanks.
4 years, 5 months ago (2016-07-22 15:38:49 UTC) #27
mmenke
On 2016/07/22 15:38:49, tbansal1 wrote: > mmenke: ptal at net.gypi. Thanks. LGTM, rubberstamp. If one ...
4 years, 5 months ago (2016-07-22 15:44:03 UTC) #28
mmenke
On 2016/07/22 15:44:03, mmenke wrote: > On 2016/07/22 15:38:49, tbansal1 wrote: > > mmenke: ptal ...
4 years, 5 months ago (2016-07-22 15:45:15 UTC) #29
tbansal1
On 2016/07/22 15:45:15, mmenke wrote: > On 2016/07/22 15:44:03, mmenke wrote: > > On 2016/07/22 ...
4 years, 5 months ago (2016-07-22 20:25:11 UTC) #30
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2128793003/diff/260001/net/nqe/network_id.h File net/nqe/network_id.h (right): https://codereview.chromium.org/2128793003/diff/260001/net/nqe/network_id.h#newcode15 net/nqe/network_id.h:15: Optional nit: I think it's fine to omit ...
4 years, 5 months ago (2016-07-25 15:33:28 UTC) #31
tbansal1
https://codereview.chromium.org/2128793003/diff/260001/net/nqe/network_id.h File net/nqe/network_id.h (right): https://codereview.chromium.org/2128793003/diff/260001/net/nqe/network_id.h#newcode15 net/nqe/network_id.h:15: On 2016/07/25 15:33:27, Alexei Svitkine (slow) wrote: > Optional ...
4 years, 5 months ago (2016-07-25 17:22:37 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2128793003/300001
4 years, 5 months ago (2016-07-25 18:23:29 UTC) #39
commit-bot: I haz the power
Committed patchset #9 (id:300001)
4 years, 5 months ago (2016-07-25 18:29:09 UTC) #41
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 18:31:09 UTC) #43
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/bff2aec2875872f71e8d2e2fedf2a61eceebecb4
Cr-Commit-Position: refs/heads/master@{#407521}

Powered by Google App Engine
This is Rietveld 408576698