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

Issue 1359343005: Update ResponseInfo to UrlResponseInfo with API review comments. (Closed)

Created:
5 years, 2 months ago by mef
Modified:
5 years, 2 months ago
Reviewers:
pauljensen, xunjieli
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

Update ResponseInfo to UrlResponseInfo with API review comments. Deprecate ResponseInfo and ExtendedResponseInfo interfaces. BUG=531538 Committed: https://crrev.com/5f36625b0b053d15ed4d65c7c63feab4ecadfe5c Cr-Commit-Position: refs/heads/master@{#354515}

Patch Set 1 #

Patch Set 2 : Pass the integration tests. #

Total comments: 25

Patch Set 3 : Change UrlRequestListener to take UrlResponseInfo. #

Patch Set 4 : Remove ResponseInfo and ExtendedResponseInfo. #

Patch Set 5 : Sync #

Patch Set 6 : Sync #

Patch Set 7 : fix perf_test #

Patch Set 8 : Rebase to CronetEngine builders. #

Total comments: 14

Patch Set 9 : Sync #

Patch Set 10 : Address Helen's comments. #

Patch Set 11 : Updated comment. #

Patch Set 12 : Update readBytesCount on redirects, reads and failures. #

Patch Set 13 : Accumulate Received Bytes Count on redirects. #

Total comments: 12

Patch Set 14 : Rebase onto HEAD #

Patch Set 15 : Address Paul's comments. #

Total comments: 5

Patch Set 16 : Fixed links in comments. #

Total comments: 2

Patch Set 17 : Added receivedBytesCount comment. #

Total comments: 8

Patch Set 18 : Address final comments. #

Patch Set 19 : Update README.md #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -369 lines) Patch
M components/cronet.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -2 lines 0 comments Download
M components/cronet/README.md View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +5 lines, -5 lines 0 comments Download
M components/cronet/android/cronet_url_request_adapter.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -4 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 16 chunks +39 lines, -140 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/ExtendedResponseInfo.java View 1 2 3 1 chunk +0 lines, -23 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/ResponseInfo.java View 1 2 3 1 chunk +0 lines, -84 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/UrlRequestListener.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +7 lines, -6 lines 0 comments Download
A components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +172 lines, -0 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +17 lines, -19 lines 0 comments Download
M components/cronet/android/sample/src/org/chromium/cronet_sample_apk/CronetSampleActivity.java View 1 2 3 4 5 6 7 5 chunks +10 lines, -11 lines 0 comments Download
M components/cronet/android/test/javaperftests/src/org/chromium/net/CronetPerfTestActivity.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -5 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/CronetUrlRequestContextTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -4 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/CronetUrlRequestTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 12 chunks +70 lines, -46 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/QuicTest.java View 1 2 3 4 5 6 7 2 chunks +2 lines, -4 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/TestUrlRequestListener.java View 1 2 6 chunks +9 lines, -16 lines 0 comments Download

Messages

Total messages: 44 (4 generated)
mef
PTAL. I've added UrlResponseInfo final class, which implements ResponseInfo interface, which I've marked as deprecated. ...
5 years, 2 months ago (2015-09-24 17:48:22 UTC) #2
xunjieli
One question for Paul below. https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java File components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java (right): https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java#newcode210 components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java:210: mUrlRequestAdapter, header.getKey(), header.getValue())) { ...
5 years, 2 months ago (2015-09-25 13:54:32 UTC) #3
mef
https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java File components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java (right): https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java#newcode210 components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java:210: mUrlRequestAdapter, header.getKey(), header.getValue())) { On 2015/09/25 13:54:32, xunjieli wrote: ...
5 years, 2 months ago (2015-09-25 15:58:28 UTC) #4
xunjieli
https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java File components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java (right): https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java#newcode210 components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java:210: mUrlRequestAdapter, header.getKey(), header.getValue())) { On 2015/09/25 15:58:27, mef wrote: ...
5 years, 2 months ago (2015-09-25 16:16:35 UTC) #5
pauljensen
https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java File components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java (right): https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java#newcode210 components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java:210: mUrlRequestAdapter, header.getKey(), header.getValue())) { On 2015/09/25 16:16:34, xunjieli wrote: ...
5 years, 2 months ago (2015-09-25 18:30:17 UTC) #6
xunjieli
https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java File components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java (right): https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java#newcode210 components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java:210: mUrlRequestAdapter, header.getKey(), header.getValue())) { On 2015/09/25 18:30:16, pauljensen wrote: ...
5 years, 2 months ago (2015-09-25 18:39:13 UTC) #7
mef
https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java File components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java (right): https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java#newcode28 components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java:28: private volatile long mReceivedBytesCount; On 2015/09/25 18:30:16, pauljensen wrote: ...
5 years, 2 months ago (2015-09-25 20:08:50 UTC) #8
mef
https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java File components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java (right): https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java#newcode171 components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java:171: void updateReceivedBytesCount(long currentReceivedBytesCount) { On 2015/09/25 13:54:32, xunjieli wrote: ...
5 years, 2 months ago (2015-09-25 20:53:43 UTC) #9
mef
PTAL. I've rebased this on top of Paul's CronetEngine CL.
5 years, 2 months ago (2015-10-05 19:53:53 UTC) #10
xunjieli
https://codereview.chromium.org/1359343005/diff/140001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java File components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java (right): https://codereview.chromium.org/1359343005/diff/140001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java#newcode20 components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java:20: * gets a different copy of UrlResponseInfo describing particular ...
5 years, 2 months ago (2015-10-05 20:39:02 UTC) #11
mef
Thanks! https://codereview.chromium.org/1359343005/diff/140001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java File components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java (right): https://codereview.chromium.org/1359343005/diff/140001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java#newcode20 components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java:20: * gets a different copy of UrlResponseInfo describing ...
5 years, 2 months ago (2015-10-05 22:09:19 UTC) #12
pauljensen
https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java File components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java (right): https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java#newcode155 components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java:155: * Available on request completion. On 2015/09/25 20:08:50, mef ...
5 years, 2 months ago (2015-10-06 12:55:41 UTC) #13
mef
On 2015/10/06 12:55:41, pauljensen wrote: > https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java > File components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java > (right): > > https://codereview.chromium.org/1359343005/diff/20001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java#newcode155 ...
5 years, 2 months ago (2015-10-06 14:39:35 UTC) #14
pauljensen
On 2015/10/06 14:39:35, mef wrote: > I actually wonder whether we should extract receivedBytesCount into ...
5 years, 2 months ago (2015-10-06 14:43:42 UTC) #15
mef
On 2015/10/06 14:43:42, pauljensen wrote: > On 2015/10/06 14:39:35, mef wrote: > > I actually ...
5 years, 2 months ago (2015-10-06 14:48:40 UTC) #16
pauljensen
On 2015/10/06 14:48:40, mef wrote: > On 2015/10/06 14:43:42, pauljensen wrote: > > On 2015/10/06 ...
5 years, 2 months ago (2015-10-06 17:47:27 UTC) #17
mef
On 2015/10/06 17:47:27, pauljensen wrote: > On 2015/10/06 14:48:40, mef wrote: > > On 2015/10/06 ...
5 years, 2 months ago (2015-10-06 18:20:26 UTC) #18
xunjieli
On 2015/10/06 18:20:26, mef wrote: > On 2015/10/06 17:47:27, pauljensen wrote: > > On 2015/10/06 ...
5 years, 2 months ago (2015-10-06 18:26:01 UTC) #19
mef
On 2015/10/06 18:26:01, xunjieli wrote: > On 2015/10/06 18:20:26, mef wrote: > > On 2015/10/06 ...
5 years, 2 months ago (2015-10-06 21:44:33 UTC) #20
pauljensen
On 2015/10/06 18:20:26, mef wrote: > > Hmm so the value given back in onSuccess ...
5 years, 2 months ago (2015-10-07 13:11:26 UTC) #21
mef
On 2015/10/07 13:11:26, pauljensen wrote: > On 2015/10/06 18:20:26, mef wrote: > > > Hmm ...
5 years, 2 months ago (2015-10-07 13:20:59 UTC) #22
pauljensen
On 2015/10/07 13:20:59, mef wrote: > On 2015/10/07 13:11:26, pauljensen wrote: > > On 2015/10/06 ...
5 years, 2 months ago (2015-10-07 15:12:05 UTC) #23
mef
On 2015/10/07 15:12:05, pauljensen wrote: > On 2015/10/07 13:20:59, mef wrote: > > On 2015/10/07 ...
5 years, 2 months ago (2015-10-07 23:33:01 UTC) #24
pauljensen
https://codereview.chromium.org/1359343005/diff/240001/components/cronet/android/java/src/org/chromium/net/UrlRequestListener.java File components/cronet/android/java/src/org/chromium/net/UrlRequestListener.java (right): https://codereview.chromium.org/1359343005/diff/240001/components/cronet/android/java/src/org/chromium/net/UrlRequestListener.java#newcode89 components/cronet/android/java/src/org/chromium/net/UrlRequestListener.java:89: * @param info Response information. May be null if ...
5 years, 2 months ago (2015-10-08 14:31:46 UTC) #25
mef
Thanks, PTAL. https://codereview.chromium.org/1359343005/diff/240001/components/cronet/android/java/src/org/chromium/net/UrlRequestListener.java File components/cronet/android/java/src/org/chromium/net/UrlRequestListener.java (right): https://codereview.chromium.org/1359343005/diff/240001/components/cronet/android/java/src/org/chromium/net/UrlRequestListener.java#newcode89 components/cronet/android/java/src/org/chromium/net/UrlRequestListener.java:89: * @param info Response information. May be ...
5 years, 2 months ago (2015-10-08 17:51:30 UTC) #26
xunjieli
https://codereview.chromium.org/1359343005/diff/280001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java File components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java (right): https://codereview.chromium.org/1359343005/diff/280001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java#newcode65 components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java:65: private long mReceivedBytesCountFromRedirects; Might be cleaner to keep a ...
5 years, 2 months ago (2015-10-08 19:33:55 UTC) #27
mef
Thanks! https://codereview.chromium.org/1359343005/diff/280001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java File components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java (right): https://codereview.chromium.org/1359343005/diff/280001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java#newcode65 components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java:65: private long mReceivedBytesCountFromRedirects; On 2015/10/08 19:33:55, xunjieli wrote: ...
5 years, 2 months ago (2015-10-08 20:54:01 UTC) #28
pauljensen
https://codereview.chromium.org/1359343005/diff/300001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java File components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java (right): https://codereview.chromium.org/1359343005/diff/300001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java#newcode494 components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java:494: * @param httpStatusCode from redirect response @param receivedBytesCount
5 years, 2 months ago (2015-10-13 18:59:30 UTC) #29
mef
Thanks, PTAL. https://codereview.chromium.org/1359343005/diff/300001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java File components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java (right): https://codereview.chromium.org/1359343005/diff/300001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java#newcode494 components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java:494: * @param httpStatusCode from redirect response On ...
5 years, 2 months ago (2015-10-13 20:10:41 UTC) #30
xunjieli
LGTM https://codereview.chromium.org/1359343005/diff/280001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java File components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java (right): https://codereview.chromium.org/1359343005/diff/280001/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java#newcode65 components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java:65: private long mReceivedBytesCountFromRedirects; On 2015/10/08 20:54:01, mef wrote: ...
5 years, 2 months ago (2015-10-13 22:31:14 UTC) #31
pauljensen
lgtm https://codereview.chromium.org/1359343005/diff/320001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java File components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java (right): https://codereview.chromium.org/1359343005/diff/320001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java#newcode172 components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java:172: ; what's this semicolon doing here?
5 years, 2 months ago (2015-10-15 17:05:52 UTC) #32
pauljensen
Oh wait, please update readme.md
5 years, 2 months ago (2015-10-15 21:22:55 UTC) #33
mef
PTAL, I've updated the README.md https://codereview.chromium.org/1359343005/diff/320001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java File components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java (right): https://codereview.chromium.org/1359343005/diff/320001/components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java#newcode29 components/cronet/android/java/src/org/chromium/net/UrlResponseInfo.java:29: private final AtomicLong mReceivedBytesCount ...
5 years, 2 months ago (2015-10-15 22:32:24 UTC) #34
pauljensen
lgtm. Might want to change "Update ResponseInfo and UrlResponseInfo" to "Update ResponseInfo to UrlResponseInfo" in ...
5 years, 2 months ago (2015-10-16 02:49:38 UTC) #35
xunjieli
On 2015/10/16 02:49:38, pauljensen wrote: > lgtm. Might want to change "Update ResponseInfo and UrlResponseInfo" ...
5 years, 2 months ago (2015-10-16 03:07:59 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1359343005/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1359343005/360001
5 years, 2 months ago (2015-10-16 13:51:01 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/121676)
5 years, 2 months ago (2015-10-16 14:51:02 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1359343005/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1359343005/360001
5 years, 2 months ago (2015-10-16 14:55:17 UTC) #42
commit-bot: I haz the power
Committed patchset #19 (id:360001)
5 years, 2 months ago (2015-10-16 15:30:49 UTC) #43
commit-bot: I haz the power
5 years, 2 months ago (2015-10-16 15:31:44 UTC) #44
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/5f36625b0b053d15ed4d65c7c63feab4ecadfe5c
Cr-Commit-Position: refs/heads/master@{#354515}

Powered by Google App Engine
This is Rietveld 408576698