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

Issue 2178053002: Change RequestFinishedListener to provide executor (Closed)

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

Description

Change RequestFinishedListener to provide executor RequestFinishedListener originally depended on NetworkQualityEstimator's executor. These are separate features which should not depend on each other, and as of recently the NQE listeners also provide their own executors. Also move RequestFinishedListener out of CronetEngine into its own file, and move its tests into their own file. BUG=618034 Committed: https://crrev.com/5387379ab19b85f9e2335d6e931d63116f449d66 Cr-Commit-Position: refs/heads/master@{#408711}

Patch Set 1 #

Patch Set 2 : add back old NQE API #

Total comments: 23

Patch Set 3 : add more tests, other comments #

Total comments: 4

Patch Set 4 : formatting #

Messages

Total messages: 17 (5 generated)
mgersh
Helen, PTAL. The main purpose of this is adding an executor to RequestFinishedListener, but I ...
4 years, 5 months ago (2016-07-25 19:02:20 UTC) #2
xunjieli
On 2016/07/25 19:02:20, mgersh wrote: > Helen, PTAL. The main purpose of this is adding ...
4 years, 4 months ago (2016-07-26 17:11:24 UTC) #3
mgersh
Okay, done. This CL is just changing and moving RequestFinishedListener now.
4 years, 4 months ago (2016-07-26 20:13:06 UTC) #4
tbansal1
fwiw, lgtm. https://codereview.chromium.org/2178053002/diff/20001/components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java File components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java (right): https://codereview.chromium.org/2178053002/diff/20001/components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java#newcode10 components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java:10: * Interface to listen for finished requests ...
4 years, 4 months ago (2016-07-26 20:37:27 UTC) #6
tbansal1
On 2016/07/26 20:37:27, tbansal1 wrote: > fwiw, lgtm. > > https://codereview.chromium.org/2178053002/diff/20001/components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java > File > components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java ...
4 years, 4 months ago (2016-07-26 20:37:50 UTC) #7
xunjieli
https://codereview.chromium.org/2178053002/diff/20001/components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java File components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java (right): https://codereview.chromium.org/2178053002/diff/20001/components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java#newcode25 components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java:25: * Invoked with request info. Can you add a ...
4 years, 4 months ago (2016-07-26 21:11:11 UTC) #8
mgersh
https://codereview.chromium.org/2178053002/diff/20001/components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java File components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java (right): https://codereview.chromium.org/2178053002/diff/20001/components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java#newcode10 components/cronet/android/api/src/org/chromium/net/RequestFinishedListener.java:10: * Interface to listen for finished requests for the ...
4 years, 4 months ago (2016-07-27 20:54:13 UTC) #9
xunjieli
Looks great! LGTM https://codereview.chromium.org/2178053002/diff/20001/components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java File components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java (right): https://codereview.chromium.org/2178053002/diff/20001/components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java#newcode530 components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java:530: postObservationTaskToExecutor(listener.getExecutor(), task); On 2016/07/27 20:54:12, mgersh ...
4 years, 4 months ago (2016-07-29 16:35:25 UTC) #10
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/2178053002/60001
4 years, 4 months ago (2016-07-29 18:21:48 UTC) #13
mgersh
Thanks! I also rebased the CL that depends on this one. https://codereview.chromium.org/2178053002/diff/40001/components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequest.java File components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequest.java (right): ...
4 years, 4 months ago (2016-07-29 18:21:52 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-07-29 19:17:20 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 19:20:18 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5387379ab19b85f9e2335d6e931d63116f449d66
Cr-Commit-Position: refs/heads/master@{#408711}

Powered by Google App Engine
This is Rietveld 408576698