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

Issue 2069303002: Add new Cronet exception class for QUIC errors (Closed)

Created:
4 years, 6 months ago by mgersh
Modified:
4 years, 5 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

Add new Cronet exception class for QUIC errors Create a subclass of CronetException, called QuicException, which contains the detailed QUIC error code when it exists. Propagate the error code from NetErrorDetails through Cronet. For now, only UrlRequest reports the detailed error, not BidirectionalStream. BUG=614507 Committed: https://crrev.com/a8228bdbdd1840d925baf93067057daccae1e60a Cr-Commit-Position: refs/heads/master@{#403525}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rewrite for design changes as discussed #

Total comments: 4

Patch Set 3 : Switch to using NetError #

Total comments: 12

Patch Set 4 : Add UrlRequestException top-level error for QUIC, and other comments #

Total comments: 25

Patch Set 5 : Lots of fixing formatting #

Total comments: 2

Patch Set 6 : header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -10 lines) Patch
M components/cronet/android/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A components/cronet/android/api/src/org/chromium/net/QuicException.java View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
M components/cronet/android/api/src/org/chromium/net/UrlRequestException.java View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M components/cronet/android/cronet_bidirectional_stream_adapter.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M components/cronet/android/cronet_url_request_adapter.cc View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/CronetBidirectionalStream.java View 1 2 3 1 chunk +9 lines, -4 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java View 1 2 3 1 chunk +9 lines, -5 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/CronetUrlRequestTest.java View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M components/cronet/android/url_request_error.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/cronet/android/url_request_error.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M net/test/url_request/url_request_failed_job.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/test/url_request/url_request_failed_job.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
mgersh
PTAL. Particular question: I changed the signature for CronetException, because it doesn't look like there ...
4 years, 6 months ago (2016-06-15 23:46:32 UTC) #2
xunjieli
On 2016/06/15 23:46:32, mgersh wrote: > PTAL. > > Particular question: I changed the signature ...
4 years, 6 months ago (2016-06-16 12:56:47 UTC) #3
mgersh
Okay, thanks for telling me. Paul, PTAL.
4 years, 6 months ago (2016-06-16 15:19:36 UTC) #5
xunjieli
Rather than exposing Quic internal error as an int, maybe we can create a Class ...
4 years, 6 months ago (2016-06-16 21:35:43 UTC) #6
mgersh
On 2016/06/16 21:35:43, xunjieli wrote: > Rather than exposing Quic internal error as an int, ...
4 years, 6 months ago (2016-06-16 21:45:24 UTC) #7
pauljensen
I don't like the idea of adding a function that is destined to be overloaded ...
4 years, 6 months ago (2016-06-17 12:05:59 UTC) #8
mgersh
PTAL at new version https://codereview.chromium.org/2069303002/diff/1/components/cronet/android/cronet_bidirectional_stream_adapter.cc File components/cronet/android/cronet_bidirectional_stream_adapter.cc (right): https://codereview.chromium.org/2069303002/diff/1/components/cronet/android/cronet_bidirectional_stream_adapter.cc#newcode320 components/cronet/android/cronet_bidirectional_stream_adapter.cc:320: env, owner_.obj(), NetErrorToUrlRequestError(error), error, 0, ...
4 years, 5 months ago (2016-06-29 23:01:09 UTC) #10
xunjieli
The new approach lgtm. One suggestion below to get rid of QUIC_PROTOCOL_ERROR and use the ...
4 years, 5 months ago (2016-06-30 14:13:44 UTC) #11
mgersh
https://codereview.chromium.org/2069303002/diff/20001/components/cronet/android/api/src/org/chromium/net/UrlRequestException.java File components/cronet/android/api/src/org/chromium/net/UrlRequestException.java (right): https://codereview.chromium.org/2069303002/diff/20001/components/cronet/android/api/src/org/chromium/net/UrlRequestException.java#newcode79 components/cronet/android/api/src/org/chromium/net/UrlRequestException.java:79: public static final int QUIC_PROTOCOL_ERROR = -356; On 2016/06/30 ...
4 years, 5 months ago (2016-06-30 16:50:53 UTC) #12
pauljensen
I like this new solution. Thanks for putting it together. https://codereview.chromium.org/2069303002/diff/40001/components/cronet/android/api/src/org/chromium/net/QuicException.java File components/cronet/android/api/src/org/chromium/net/QuicException.java (right): https://codereview.chromium.org/2069303002/diff/40001/components/cronet/android/api/src/org/chromium/net/QuicException.java#newcode9 ...
4 years, 5 months ago (2016-06-30 17:35:13 UTC) #13
mgersh
https://codereview.chromium.org/2069303002/diff/40001/components/cronet/android/api/src/org/chromium/net/QuicException.java File components/cronet/android/api/src/org/chromium/net/QuicException.java (right): https://codereview.chromium.org/2069303002/diff/40001/components/cronet/android/api/src/org/chromium/net/QuicException.java#newcode9 components/cronet/android/api/src/org/chromium/net/QuicException.java:9: * detailed QUIC error code from On 2016/06/30 17:35:12, ...
4 years, 5 months ago (2016-06-30 22:55:53 UTC) #14
pauljensen
https://codereview.chromium.org/2069303002/diff/60001/components/cronet/android/api/src/org/chromium/net/QuicException.java File components/cronet/android/api/src/org/chromium/net/QuicException.java (right): https://codereview.chromium.org/2069303002/diff/60001/components/cronet/android/api/src/org/chromium/net/QuicException.java#newcode8 components/cronet/android/api/src/org/chromium/net/QuicException.java:8: * Subclass of {@link UrlRequestException} (through {@link CronetException}) which ...
4 years, 5 months ago (2016-07-01 12:22:02 UTC) #15
mgersh
https://codereview.chromium.org/2069303002/diff/60001/components/cronet/android/api/src/org/chromium/net/QuicException.java File components/cronet/android/api/src/org/chromium/net/QuicException.java (right): https://codereview.chromium.org/2069303002/diff/60001/components/cronet/android/api/src/org/chromium/net/QuicException.java#newcode8 components/cronet/android/api/src/org/chromium/net/QuicException.java:8: * Subclass of {@link UrlRequestException} (through {@link CronetException}) which ...
4 years, 5 months ago (2016-07-01 15:21:15 UTC) #16
pauljensen
lgtm https://codereview.chromium.org/2069303002/diff/80001/components/cronet/android/cronet_url_request_adapter.cc File components/cronet/android/cronet_url_request_adapter.cc (right): https://codereview.chromium.org/2069303002/diff/80001/components/cronet/android/cronet_url_request_adapter.cc#newcode25 components/cronet/android/cronet_url_request_adapter.cc:25: #include "net/http/http_util.h" #include "net/quic/quic_protocol.h"
4 years, 5 months ago (2016-07-01 18:40:41 UTC) #17
mgersh
https://codereview.chromium.org/2069303002/diff/80001/components/cronet/android/cronet_url_request_adapter.cc File components/cronet/android/cronet_url_request_adapter.cc (right): https://codereview.chromium.org/2069303002/diff/80001/components/cronet/android/cronet_url_request_adapter.cc#newcode25 components/cronet/android/cronet_url_request_adapter.cc:25: #include "net/http/http_util.h" On 2016/07/01 18:40:41, pauljensen wrote: > #include ...
4 years, 5 months ago (2016-07-01 19:27:54 UTC) #18
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/2069303002/100001
4 years, 5 months ago (2016-07-01 19:53:42 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-01 20:57:23 UTC) #23
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-01 20:57:32 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-01 20:58:54 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a8228bdbdd1840d925baf93067057daccae1e60a
Cr-Commit-Position: refs/heads/master@{#403525}

Powered by Google App Engine
This is Rietveld 408576698