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

Issue 2927453002: Make NQE a derived class of NetworkQualityProvider (Closed)

Created:
3 years, 6 months ago by tbansal1
Modified:
3 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, jam, net-reviews_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, tbansal+watch-nqe_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make NQE a derived class of NetworkQualityProvider NetworkQualityProvider provides functions to get network quality metrics, and to listen to changes in the network quality. This CL changes Network Quality Estimator (NQE) to be an implementation of Network Quality Provider (NQP). Long term, this allows callers to depend only on NQP when they only need to read the network quality, while the heavy-weight NQE can be used in other cases. BUG=704339 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester TBR=petewil@chromium.org Review-Url: https://codereview.chromium.org/2927453002 Cr-Commit-Position: refs/heads/master@{#477452} Committed: https://chromium.googlesource.com/chromium/src/+/1bd4a950be946c149226979410c5cc934b1d8b47

Patch Set 1 : ps #

Total comments: 4

Patch Set 2 : Fix tests #

Total comments: 8

Patch Set 3 : mmenke comments #

Patch Set 4 : some more IWYU fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -258 lines) Patch
M chrome/browser/io_thread.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/net/nqe/ui_network_quality_estimator_service.h View 1 4 chunks +10 lines, -28 lines 0 comments Download
M chrome/browser/net/nqe/ui_network_quality_estimator_service.cc View 8 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/net/nqe/ui_network_quality_estimator_service_browsertest.cc View 1 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer_unittest.cc View 1 2 chunks +3 lines, -14 lines 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M components/metrics/net/network_metrics_provider.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/offline_pages/core/background/network_quality_provider_stub.h View 1 2 chunks +3 lines, -20 lines 0 comments Download
M components/offline_pages/core/background/network_quality_provider_stub.cc View 1 1 chunk +0 lines, -14 lines 0 comments Download
M content/browser/net/network_quality_observer_impl.h View 1 2 3 2 chunks +11 lines, -7 lines 0 comments Download
M content/browser/net/network_quality_observer_impl.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M content/public/browser/network_quality_observer_factory.h View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download
M net/BUILD.gn View 1 2 chunks +4 lines, -0 lines 0 comments Download
A net/nqe/effective_connection_type_observer.h View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M net/nqe/network_quality_estimator.h View 1 6 chunks +15 lines, -132 lines 0 comments Download
M net/nqe/network_quality_estimator.cc View 1 3 chunks +19 lines, -16 lines 0 comments Download
M net/nqe/network_quality_estimator_unittest.cc View 13 chunks +26 lines, -2 lines 0 comments Download
A net/nqe/network_quality_provider.h View 1 1 chunk +81 lines, -0 lines 0 comments Download
A net/nqe/network_quality_provider.cc View 1 1 chunk +23 lines, -0 lines 0 comments Download
A net/nqe/rtt_throughput_estimates_observer.h View 1 2 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 71 (56 generated)
tbansal1
ryansturm: ptal. This is inspired by mmenke's comment here: https://codereview.chromium.org/2899313006/diff/80001/net/http/http_network_session.h#newcode192
3 years, 6 months ago (2017-06-05 21:09:49 UTC) #10
tbansal1
mmenke: Can you please take a high level look at net/nqe/network_quality_estimator.h and net/nqe/network_quality_provider.h to see ...
3 years, 6 months ago (2017-06-05 21:17:30 UTC) #12
RyanSturm
I'll need to look through it again in more detail later, but it seems fine. ...
3 years, 6 months ago (2017-06-05 21:21:03 UTC) #15
mmenke
Awesome, thanks for doing this! Mind fixing build failures before I look at it?
3 years, 6 months ago (2017-06-05 21:50:53 UTC) #16
tbansal1
On 2017/06/05 21:50:53, mmenke wrote: > Awesome, thanks for doing this! Mind fixing build failures ...
3 years, 6 months ago (2017-06-05 22:23:18 UTC) #17
mmenke
On 2017/06/05 22:23:18, tbansal1 wrote: > On 2017/06/05 21:50:53, mmenke wrote: > > Awesome, thanks ...
3 years, 6 months ago (2017-06-05 22:24:04 UTC) #18
tbansal1
On 2017/06/05 22:23:18, tbansal1 wrote: > On 2017/06/05 21:50:53, mmenke wrote: > > Awesome, thanks ...
3 years, 6 months ago (2017-06-05 22:27:16 UTC) #19
mmenke
A couple missing headers, but otherwise, LGTM https://codereview.chromium.org/2927453002/diff/50015/net/nqe/effective_connection_type_observer.h File net/nqe/effective_connection_type_observer.h (right): https://codereview.chromium.org/2927453002/diff/50015/net/nqe/effective_connection_type_observer.h#newcode16 net/nqe/effective_connection_type_observer.h:16: class NET_EXPORT ...
3 years, 6 months ago (2017-06-06 15:57:00 UTC) #52
RyanSturm
Lgtm % mmenke@'s comments
3 years, 6 months ago (2017-06-06 15:58:20 UTC) #53
tbansal1
https://codereview.chromium.org/2927453002/diff/40001/net/nqe/effective_connection_type_observer.h File net/nqe/effective_connection_type_observer.h (right): https://codereview.chromium.org/2927453002/diff/40001/net/nqe/effective_connection_type_observer.h#newcode25 net/nqe/effective_connection_type_observer.h:25: // be notified on the IO thread. On 2017/06/05 ...
3 years, 6 months ago (2017-06-06 16:55:51 UTC) #54
tbansal1
petewil: components/offline_pages/core/background/network_quality_provider_stub.* rkaplow: components/metrics/net/network_metrics_provider.cc creis: content/*
3 years, 6 months ago (2017-06-06 17:13:19 UTC) #60
Charlie Reis
content/ LGTM
3 years, 6 months ago (2017-06-06 20:16:26 UTC) #63
rkaplow
lgtm
3 years, 6 months ago (2017-06-06 20:57:55 UTC) #64
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/2927453002/260001
3 years, 6 months ago (2017-06-06 22:56:30 UTC) #68
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 23:02:03 UTC) #71
Message was sent while issue was closed.
Committed patchset #4 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/1bd4a950be946c149226979410c5...

Powered by Google App Engine
This is Rietveld 408576698