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

Issue 2883763002: Expose ECT to render frames, Blink and NetInfo (Closed)

Created:
3 years, 7 months ago by tbansal1
Modified:
3 years, 6 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, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), net-reviews_chromium.org, tbansal+watch-nqe_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose ECT to render frames, Blink and NetInfo Expose Effective Connection Type (ECT) from Network Quality Estimator (NQE) to render frames. From there it is plumbed to the NetworkStateNotifier and NetInfo API in Blink. BUG=719108 Review-Url: https://codereview.chromium.org/2883763002 Cr-Commit-Position: refs/heads/master@{#474729} Committed: https://chromium.googlesource.com/chromium/src/+/b612c5de3b9f415ff5feebd799ff954f1b4d7daa

Patch Set 1 : Rebased #

Total comments: 2

Patch Set 2 : Rebased, Expose ECT to Blink, NetInfo #

Total comments: 4

Patch Set 3 : Fix webkit test failures, nasko comments #

Patch Set 4 : rebased #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -151 lines) Patch
M content/browser/net/network_quality_observer_impl.h View 4 chunks +9 lines, -1 line 0 comments Download
M content/browser/net/network_quality_observer_impl.cc View 1 8 chunks +43 lines, -4 lines 0 comments Download
M content/browser/net_info_browsertest.cc View 1 2 chunks +59 lines, -0 lines 0 comments Download
M content/common/native_types.mojom View 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/native_types.typemap View 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/renderer.mojom View 1 chunk +4 lines, -1 line 0 comments Download
M content/common/resource_messages.h View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M content/test/data/net_info.html View 1 1 chunk +4 lines, -0 lines 0 comments Download
M net/nqe/network_quality_estimator.h View 2 chunks +4 lines, -4 lines 0 comments Download
M net/nqe/network_quality_estimator_test_util.h View 1 chunk +4 lines, -0 lines 0 comments Download
M net/nqe/network_quality_estimator_test_util.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/resources/window-property-collector.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/netinfo/basic-operation.html View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/netinfo/basic-operation-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-shared-worker-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/netinfo/NetworkInformation.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/netinfo/NetworkInformation.cpp View 1 5 chunks +33 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/netinfo/NetworkInformation.idl View 1 2 chunks +8 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebNetworkStateNotifier.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/network/NetworkStateNotifier.h View 1 5 chunks +16 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp View 1 4 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/network/NetworkStateNotifierTest.cpp View 1 24 chunks +189 lines, -121 lines 0 comments Download
M third_party/WebKit/public/platform/WebNetworkStateNotifier.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 89 (72 generated)
tbansal1
nasko: ptal. Thanks.
3 years, 7 months ago (2017-05-15 16:41:33 UTC) #17
tbansal1
nasko: ping. ryansturm: ptal at * or //net/nqe/. Thanks.
3 years, 7 months ago (2017-05-22 21:57:40 UTC) #35
nasko
Can you list the upcoming CL that will be using this information in the renderer? ...
3 years, 7 months ago (2017-05-23 04:54:37 UTC) #40
tbansal1
nasko: ptal at content/* jkarlin: third_party/WebKit/Source/modules/netinfo/ and third_party/WebKit/Source/platform/network/NetworkStateNotifier.* dcheng: third_party/WebKit/Source/core/ Thanks. https://codereview.chromium.org/2883763002/diff/140001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): ...
3 years, 7 months ago (2017-05-23 18:35:28 UTC) #56
tbansal1
On 2017/05/23 04:54:37, nasko wrote: > Can you list the upcoming CL that will be ...
3 years, 7 months ago (2017-05-23 18:42:55 UTC) #57
nasko
I'm sorry I missed an important piece in my previous review pass. When removing something ...
3 years, 7 months ago (2017-05-23 21:42:05 UTC) #60
RyanSturm
net/nqe: lgtm
3 years, 7 months ago (2017-05-23 22:12:41 UTC) #61
tbansal1
ptal. Thanks. https://codereview.chromium.org/2883763002/diff/200001/content/browser/net_info_browsertest.cc File content/browser/net_info_browsertest.cc (right): https://codereview.chromium.org/2883763002/diff/200001/content/browser/net_info_browsertest.cc#newcode183 content/browser/net_info_browsertest.cc:183: EXPECT_EQ("4g", RunScriptExtractString("getEffectiveType()")); On 2017/05/23 21:42:04, nasko wrote: ...
3 years, 7 months ago (2017-05-23 22:37:11 UTC) #62
nasko
IPC LGTM
3 years, 7 months ago (2017-05-23 22:45:39 UTC) #63
tbansal1
haraken: third_party/WebKit/Source/platform/*
3 years, 7 months ago (2017-05-23 22:54:40 UTC) #65
dcheng
Source/core lgtm
3 years, 7 months ago (2017-05-23 23:43:03 UTC) #66
haraken
platform/ LGTM
3 years, 7 months ago (2017-05-24 01:06:19 UTC) #69
tbansal1
jkarlin: comments? Thanks.
3 years, 7 months ago (2017-05-24 17:23:43 UTC) #72
jkarlin
lgtm, sorry for the delay
3 years, 7 months ago (2017-05-25 16:08:39 UTC) #77
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/2883763002/240001
3 years, 7 months ago (2017-05-25 18:44:56 UTC) #84
commit-bot: I haz the power
Committed patchset #4 (id:240001) as https://chromium.googlesource.com/chromium/src/+/b612c5de3b9f415ff5feebd799ff954f1b4d7daa
3 years, 7 months ago (2017-05-25 18:53:28 UTC) #87
foolip
3 years, 6 months ago (2017-05-29 11:39:40 UTC) #89
Message was sent while issue was closed.
https://codereview.chromium.org/2883763002/diff/240001/third_party/WebKit/Sou...
File third_party/WebKit/Source/modules/netinfo/NetworkInformation.idl (right):

https://codereview.chromium.org/2883763002/diff/240001/third_party/WebKit/Sou...
third_party/WebKit/Source/modules/netinfo/NetworkInformation.idl:38:
[MeasureAs=NetInfoEffectiveType] readonly attribute EffectiveConnectionType
effectiveType;
Looks like RuntimeEnabled=NetInfoEffectiveType was omitted accidentally here,
shipping effectiveType for M60. This may have been a problem since
https://codereview.chromium.org/2642873002/, not sure.

Filed https://crbug.com/727285 to sort it out.

Powered by Google App Engine
This is Rietveld 408576698