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

Issue 1831383002: Add SocketWatcherFactory as a helper class to NQE (Closed)

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

Description

Add SocketWatcherFactory and SocketWatcher helper classes NQE::SocketWatcherFactory implements SocketPerformanceWatcherFactory (SPWF). NQE::SocketWatcher implements SocketPerformanceWatcher (SPW), and notifies NQE on the provided task runner. This also removes the cyclic dependency between SPW and SPWF. BUG=590265, 598039 Committed: https://crrev.com/0f56a39a3129c19623e19489d4ed03c9687af586 Cr-Commit-Position: refs/heads/master@{#385891}

Patch Set 1 : #

Patch Set 2 : Rebased, removed cyclic dependency between SPWF and SPW #

Total comments: 1

Patch Set 3 : Addressed rsleevi comments #

Patch Set 4 : Addressed rsleevi comments #

Total comments: 22

Patch Set 5 : #

Total comments: 8

Patch Set 6 : Fixed minor sleevi comments #

Patch Set 7 : Removed the SocketDelegate #

Total comments: 22

Patch Set 8 : bengr comments #

Patch Set 9 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -150 lines) Patch
M chrome/browser/android/net/external_estimate_provider_android_unittest.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M net/base/network_quality_estimator.h View 1 2 3 4 5 6 7 chunks +19 lines, -10 lines 0 comments Download
M net/base/network_quality_estimator.cc View 1 2 3 4 5 6 7 8 6 chunks +92 lines, -13 lines 0 comments Download
M net/base/network_quality_estimator_unittest.cc View 1 2 3 4 4 chunks +20 lines, -9 lines 0 comments Download
M net/base/socket_performance_watcher.h View 1 2 3 4 5 6 7 2 chunks +20 lines, -26 lines 0 comments Download
M net/base/socket_performance_watcher.cc View 1 2 1 chunk +0 lines, -34 lines 0 comments Download
M net/base/socket_performance_watcher_factory.h View 1 2 2 chunks +0 lines, -12 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M net/quic/quic_network_transaction_unittest.cc View 1 2 3 4 5 6 7 14 chunks +49 lines, -41 lines 0 comments Download

Messages

Total messages: 69 (34 generated)
tbansal1
rsleevi: PTAL at *. This is what we have been discussing in https://codereview.chromium.org/1376473003/ about adding ...
4 years, 9 months ago (2016-03-25 20:37:57 UTC) #12
tbansal1
On 2016/03/25 20:37:57, tbansal1 wrote: > rsleevi: PTAL at *. > This is what we ...
4 years, 9 months ago (2016-03-25 23:46:15 UTC) #14
tbansal1
Uploaded PS#2. This removes the cyclic dependency between SPWF and SPW. So, this solves #1 ...
4 years, 8 months ago (2016-03-29 17:57:10 UTC) #19
tbansal1
Forgot to say, rsleevi: PTAL, and thanks for taking time to review this.
4 years, 8 months ago (2016-03-29 17:57:51 UTC) #20
Ryan Sleevi
I'm so sorry for the delays here; partly got caught up in a bunch of ...
4 years, 8 months ago (2016-04-01 01:38:56 UTC) #22
tbansal1
On 2016/04/01 01:38:56, Ryan Sleevi wrote: > I'm so sorry for the delays here; partly ...
4 years, 8 months ago (2016-04-01 04:38:33 UTC) #23
bengr
On 2016/04/01 04:38:33, tbansal1 wrote: > On 2016/04/01 01:38:56, Ryan Sleevi wrote: > > I'm ...
4 years, 8 months ago (2016-04-01 17:39:36 UTC) #24
tbansal1
rsleevi: PTAL. To keep the CL simple, I have not renamed the classes. In a ...
4 years, 8 months ago (2016-04-01 23:03:25 UTC) #29
Ryan Sleevi
https://codereview.chromium.org/1831383002/diff/240001/net/base/network_quality_estimator.cc File net/base/network_quality_estimator.cc (right): https://codereview.chromium.org/1831383002/diff/240001/net/base/network_quality_estimator.cc#newcode173 net/base/network_quality_estimator.cc:173: base::ThreadTaskRunnerHandle::Get(), GetWeakPtr())); s/GetWeakPtr()/weak_factory_.GetWeakPtr()) https://codereview.chromium.org/1831383002/diff/240001/net/base/network_quality_estimator.h File net/base/network_quality_estimator.h (right): https://codereview.chromium.org/1831383002/diff/240001/net/base/network_quality_estimator.h#newcode449 net/base/network_quality_estimator.h:449: ...
4 years, 8 months ago (2016-04-02 00:48:20 UTC) #30
tbansal1
rsleevi: PTAL. Thanks. I also realized that WatcherFactory was making copies of NQE's weak pointer, ...
4 years, 8 months ago (2016-04-04 16:55:44 UTC) #34
Ryan Sleevi
Much closer! Thanks for taking time to dig in on the dependencies. https://codereview.chromium.org/1831383002/diff/240001/net/base/network_quality_estimator.h File net/base/network_quality_estimator.h ...
4 years, 8 months ago (2016-04-04 17:30:09 UTC) #35
tbansal1
rsleevi: ptal. Thanks! https://codereview.chromium.org/1831383002/diff/240001/net/base/socket_performance_watcher.h File net/base/socket_performance_watcher.h (right): https://codereview.chromium.org/1831383002/diff/240001/net/base/socket_performance_watcher.h#newcode18 net/base/socket_performance_watcher.h:18: // per-socket statistics. SocketPerformanceWatcher is not ...
4 years, 8 months ago (2016-04-04 18:35:46 UTC) #36
Ryan Sleevi
https://codereview.chromium.org/1831383002/diff/240001/net/base/socket_performance_watcher.h File net/base/socket_performance_watcher.h (right): https://codereview.chromium.org/1831383002/diff/240001/net/base/socket_performance_watcher.h#newcode18 net/base/socket_performance_watcher.h:18: // per-socket statistics. SocketPerformanceWatcher is not thread safe. On ...
4 years, 8 months ago (2016-04-04 18:53:37 UTC) #37
tbansal1
rsleevi: ptal. Thanks. https://codereview.chromium.org/1831383002/diff/240001/net/base/socket_performance_watcher.h File net/base/socket_performance_watcher.h (right): https://codereview.chromium.org/1831383002/diff/240001/net/base/socket_performance_watcher.h#newcode18 net/base/socket_performance_watcher.h:18: // per-socket statistics. SocketPerformanceWatcher is not ...
4 years, 8 months ago (2016-04-04 22:07:03 UTC) #39
Ryan Sleevi
LGTM with a few notes. Ben should double check, especially the tests and design remarks. ...
4 years, 8 months ago (2016-04-04 22:34:05 UTC) #40
tbansal1
rsleevi: ptal. https://codereview.chromium.org/1831383002/diff/320001/net/base/network_quality_estimator.cc File net/base/network_quality_estimator.cc (right): https://codereview.chromium.org/1831383002/diff/320001/net/base/network_quality_estimator.cc#newcode125 net/base/network_quality_estimator.cc:125: class NetworkQualityEstimator::SocketWatcherDelegate { On 2016/04/04 22:34:04, Ryan ...
4 years, 8 months ago (2016-04-04 23:46:32 UTC) #41
tbansal1
rsleevi: ptal. https://codereview.chromium.org/1831383002/diff/320001/net/base/network_quality_estimator.cc File net/base/network_quality_estimator.cc (right): https://codereview.chromium.org/1831383002/diff/320001/net/base/network_quality_estimator.cc#newcode125 net/base/network_quality_estimator.cc:125: class NetworkQualityEstimator::SocketWatcherDelegate { On 2016/04/04 22:34:04, Ryan ...
4 years, 8 months ago (2016-04-04 23:46:32 UTC) #42
tbansal1
mmenke: PTAL at chrome/browser/* Thanks.
4 years, 8 months ago (2016-04-05 15:39:30 UTC) #44
mmenke
chrome/browser/profiles/profile_io_data.cc LGTM (Didn't review chrome/browser/android/net/external_estimate_provider_android_unittest.cc) https://codereview.chromium.org/1831383002/diff/380001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/1831383002/diff/380001/chrome/browser/profiles/profile_io_data.cc#newcode1298 chrome/browser/profiles/profile_io_data.cc:1298: ->network_quality_estimator->GetSocketPerformanceWatcherFactory(); If this is ...
4 years, 8 months ago (2016-04-05 15:45:38 UTC) #45
tbansal1
https://codereview.chromium.org/1831383002/diff/380001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/1831383002/diff/380001/chrome/browser/profiles/profile_io_data.cc#newcode1298 chrome/browser/profiles/profile_io_data.cc:1298: ->network_quality_estimator->GetSocketPerformanceWatcherFactory(); On 2016/04/05 15:45:38, mmenke wrote: > If this ...
4 years, 8 months ago (2016-04-05 17:30:38 UTC) #46
mmenke
On 2016/04/05 17:30:38, tbansal1 wrote: > https://codereview.chromium.org/1831383002/diff/380001/chrome/browser/profiles/profile_io_data.cc > File chrome/browser/profiles/profile_io_data.cc (right): > > https://codereview.chromium.org/1831383002/diff/380001/chrome/browser/profiles/profile_io_data.cc#newcode1298 > ...
4 years, 8 months ago (2016-04-05 17:32:54 UTC) #47
tbansal1
On 2016/04/05 17:32:54, mmenke wrote: > On 2016/04/05 17:30:38, tbansal1 wrote: > > > https://codereview.chromium.org/1831383002/diff/380001/chrome/browser/profiles/profile_io_data.cc ...
4 years, 8 months ago (2016-04-05 17:33:55 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831383002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831383002/380001
4 years, 8 months ago (2016-04-05 17:35:42 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/164753)
4 years, 8 months ago (2016-04-05 17:46:58 UTC) #52
mmenke
I thought this was also waiting on a signoff from ben, per Ryan's last comment?
4 years, 8 months ago (2016-04-05 17:51:16 UTC) #53
tbansal1
rohitrao: ptal at ios/* bengr: ptal at *. Thanks!
4 years, 8 months ago (2016-04-05 19:35:08 UTC) #55
rohitrao (ping after 24h)
ios/ LGTM
4 years, 8 months ago (2016-04-05 19:45:16 UTC) #56
bengr
https://codereview.chromium.org/1831383002/diff/380001/net/base/network_quality_estimator.cc File net/base/network_quality_estimator.cc (right): https://codereview.chromium.org/1831383002/diff/380001/net/base/network_quality_estimator.cc#newcode125 net/base/network_quality_estimator.cc:125: class NetworkQualityEstimator::SocketWatcher : public SocketPerformanceWatcher { Any chance I ...
4 years, 8 months ago (2016-04-07 00:20:06 UTC) #57
Ryan Sleevi
https://codereview.chromium.org/1831383002/diff/380001/net/base/network_quality_estimator.cc File net/base/network_quality_estimator.cc (right): https://codereview.chromium.org/1831383002/diff/380001/net/base/network_quality_estimator.cc#newcode125 net/base/network_quality_estimator.cc:125: class NetworkQualityEstimator::SocketWatcher : public SocketPerformanceWatcher { On 2016/04/07 00:20:05, ...
4 years, 8 months ago (2016-04-07 00:27:53 UTC) #58
tbansal1
bengr (and, sleevi): ptal. Thanks. https://codereview.chromium.org/1831383002/diff/380001/net/base/network_quality_estimator.cc File net/base/network_quality_estimator.cc (right): https://codereview.chromium.org/1831383002/diff/380001/net/base/network_quality_estimator.cc#newcode125 net/base/network_quality_estimator.cc:125: class NetworkQualityEstimator::SocketWatcher : public ...
4 years, 8 months ago (2016-04-07 01:43:36 UTC) #60
Ryan Sleevi
https://codereview.chromium.org/1831383002/diff/380001/net/base/socket_performance_watcher.h File net/base/socket_performance_watcher.h (right): https://codereview.chromium.org/1831383002/diff/380001/net/base/socket_performance_watcher.h#newcode38 net/base/socket_performance_watcher.h:38: virtual void Reset() = 0; On 2016/04/07 01:43:36, tbansal1 ...
4 years, 8 months ago (2016-04-07 01:51:27 UTC) #61
bengr
lgtm. Thanks, Tarun.
4 years, 8 months ago (2016-04-07 20:31:29 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831383002/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831383002/440001
4 years, 8 months ago (2016-04-07 21:53:49 UTC) #65
commit-bot: I haz the power
Committed patchset #9 (id:440001)
4 years, 8 months ago (2016-04-07 22:03:48 UTC) #67
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 22:05:04 UTC) #69
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/0f56a39a3129c19623e19489d4ed03c9687af586
Cr-Commit-Position: refs/heads/master@{#385891}

Powered by Google App Engine
This is Rietveld 408576698