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

Issue 2857093002: Expose changes in the network quality to the renderers (Closed)

Created:
3 years, 7 months ago by tbansal1
Modified:
3 years, 7 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, cbentzel+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, net-reviews_chromium.org, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), abarth-chromium, tbansal+watch-nqe_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose changes in the network quality to the renderers A network quality observer owned by IOThread has been added. It listens to the network quality changes and notifies renderers on the UI thread using mojo. This is similar to how content::BrowserOnlineStateObserver listens to the connection type changes. BUG=719511 Review-Url: https://codereview.chromium.org/2857093002 Cr-Commit-Position: refs/heads/master@{#470654} Committed: https://chromium.googlesource.com/chromium/src/+/15973c3f1ac558b3b3eed70a1a7a3ed256528a65

Patch Set 1 : ps #

Total comments: 38

Patch Set 2 : ryansturm, nasko comments #

Total comments: 6

Patch Set 3 : nasko comments #

Total comments: 10

Patch Set 4 : isherman comments #

Patch Set 5 : isherman comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -6 lines) Patch
M chrome/browser/io_thread.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 3 chunks +3 lines, -1 line 0 comments Download
M content/browser/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A content/browser/net/network_quality_observer_impl.h View 1 2 1 chunk +61 lines, -0 lines 0 comments Download
A content/browser/net/network_quality_observer_impl.cc View 1 2 1 chunk +184 lines, -0 lines 0 comments Download
M content/browser/net_info_browsertest.cc View 3 chunks +20 lines, -0 lines 0 comments Download
M content/common/renderer.mojom View 1 1 chunk +8 lines, -0 lines 0 comments Download
M content/public/browser/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A content/public/browser/network_quality_observer_factory.h View 1 chunk +28 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M net/nqe/network_quality_estimator.h View 3 chunks +6 lines, -5 lines 0 comments Download
M net/nqe/network_quality_estimator_test_util.h View 1 chunk +5 lines, -0 lines 0 comments Download
M net/nqe/network_quality_estimator_test_util.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 65 (48 generated)
tbansal1
ryansturm: ptal. Thanks.
3 years, 7 months ago (2017-05-05 23:17:28 UTC) #19
tbansal1
nasko: ptal at content/. Thanks.
3 years, 7 months ago (2017-05-06 00:18:03 UTC) #34
RyanSturm
On 2017/05/06 00:18:03, tbansal1 wrote: > nasko: ptal at content/. Thanks. Still looking at this ...
3 years, 7 months ago (2017-05-08 16:40:02 UTC) #39
tbansal1
On 2017/05/08 16:40:02, Ryan Sturm wrote: > On 2017/05/06 00:18:03, tbansal1 wrote: > > nasko: ...
3 years, 7 months ago (2017-05-08 17:02:29 UTC) #40
RyanSturm
https://codereview.chromium.org/2857093002/diff/160001/content/browser/net/network_quality_observer_impl.cc File content/browser/net/network_quality_observer_impl.cc (right): https://codereview.chromium.org/2857093002/diff/160001/content/browser/net/network_quality_observer_impl.cc#newcode116 content/browser/net/network_quality_observer_impl.cc:116: ui_oberver_ = base::WrapUnique(new UIObserver()); base::MakeUnique https://codereview.chromium.org/2857093002/diff/160001/content/browser/net/network_quality_observer_impl.cc#newcode131 content/browser/net/network_quality_observer_impl.cc:131: ui_oberver_.release()); note: ...
3 years, 7 months ago (2017-05-08 17:37:20 UTC) #41
nasko
https://codereview.chromium.org/2857093002/diff/160001/content/browser/net/network_quality_observer_impl.cc File content/browser/net/network_quality_observer_impl.cc (right): https://codereview.chromium.org/2857093002/diff/160001/content/browser/net/network_quality_observer_impl.cc#newcode1 content/browser/net/network_quality_observer_impl.cc:1: // Copyright (c) 2017 The Chromium Authors. All rights ...
3 years, 7 months ago (2017-05-08 18:27:45 UTC) #42
tbansal1
ryansturm, nasko: PTAL. Thanks! https://codereview.chromium.org/2857093002/diff/160001/content/browser/net/network_quality_observer_impl.cc File content/browser/net/network_quality_observer_impl.cc (right): https://codereview.chromium.org/2857093002/diff/160001/content/browser/net/network_quality_observer_impl.cc#newcode1 content/browser/net/network_quality_observer_impl.cc:1: // Copyright (c) 2017 The ...
3 years, 7 months ago (2017-05-08 19:50:19 UTC) #44
RyanSturm
net/nqe: lgtm The whole approach seems fine, but I'll defer to content/ reviewers on policy/lifetime ...
3 years, 7 months ago (2017-05-09 17:33:45 UTC) #45
nasko
LGTM, but please ensure there is sufficient comments documentation on the lifetime and cleanup of ...
3 years, 7 months ago (2017-05-09 20:27:47 UTC) #46
tbansal1
mmenke: io_thread* isherman: histograms.xml. Thanks! https://codereview.chromium.org/2857093002/diff/160001/content/browser/net/network_quality_observer_impl.cc File content/browser/net/network_quality_observer_impl.cc (right): https://codereview.chromium.org/2857093002/diff/160001/content/browser/net/network_quality_observer_impl.cc#newcode168 content/browser/net/network_quality_observer_impl.cc:168: base::Unretained(ui_oberver_.get()), On 2017/05/09 20:27:47, ...
3 years, 7 months ago (2017-05-09 21:37:18 UTC) #48
Ilya Sherman
https://codereview.chromium.org/2857093002/diff/220001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2857093002/diff/220001/content/renderer/render_thread_impl.cc#newcode2136 content/renderer/render_thread_impl.cc:2136: UMA_HISTOGRAM_EXACT_LINEAR("NQE.RenderThreadNotified", 1, 2); nit: UMA_HISTOGRAM_BOOLEAN("NQE.RenderThreadNotified", true); https://codereview.chromium.org/2857093002/diff/220001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml ...
3 years, 7 months ago (2017-05-09 21:51:25 UTC) #51
tbansal1
https://codereview.chromium.org/2857093002/diff/220001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2857093002/diff/220001/content/renderer/render_thread_impl.cc#newcode2136 content/renderer/render_thread_impl.cc:2136: UMA_HISTOGRAM_EXACT_LINEAR("NQE.RenderThreadNotified", 1, 2); On 2017/05/09 21:51:25, Ilya Sherman wrote: ...
3 years, 7 months ago (2017-05-09 23:49:31 UTC) #52
Ilya Sherman
Thanks. LGTM % comment: https://codereview.chromium.org/2857093002/diff/220001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2857093002/diff/220001/content/renderer/render_thread_impl.cc#newcode2136 content/renderer/render_thread_impl.cc:2136: UMA_HISTOGRAM_EXACT_LINEAR("NQE.RenderThreadNotified", 1, 2); On 2017/05/09 ...
3 years, 7 months ago (2017-05-09 23:55:52 UTC) #53
tbansal1
mmenke: ptal at io_thread*. Thanks. https://codereview.chromium.org/2857093002/diff/220001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2857093002/diff/220001/content/renderer/render_thread_impl.cc#newcode2136 content/renderer/render_thread_impl.cc:2136: UMA_HISTOGRAM_EXACT_LINEAR("NQE.RenderThreadNotified", 1, 2); On ...
3 years, 7 months ago (2017-05-10 16:46:42 UTC) #55
mmenke
On 2017/05/10 16:46:42, tbansal1 wrote: > mmenke: ptal at io_thread*. Thanks. > > https://codereview.chromium.org/2857093002/diff/220001/content/renderer/render_thread_impl.cc > ...
3 years, 7 months ago (2017-05-10 17:39:23 UTC) #57
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/2857093002/260001
3 years, 7 months ago (2017-05-10 18:27:16 UTC) #62
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 18:41:00 UTC) #65
Message was sent while issue was closed.
Committed patchset #5 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/15973c3f1ac558b3b3eed70a1a7a...

Powered by Google App Engine
This is Rietveld 408576698