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

Issue 544223003: Add SetSupportsQuic method to explicitly specify server that supports QUIC. (Closed)

Created:
6 years, 3 months ago by mef
Modified:
6 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, ebravo, jtitus
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add SetSupportsQuic method to explicitly specify server that supports QUIC. BUG=411010 TEST=build/android/test_runner.py instrumentation --test-apk=CronetSampleTest -f *Quic* Committed: https://crrev.com/c71361c6408da79dfd759b1f74ba5b43638cb113 Cr-Commit-Position: refs/heads/master@{#295063}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address mmenke's comments. #

Patch Set 3 : Add HttpUrlRequest getNegotiatedProtocol() method. #

Patch Set 4 : Added QUIC hints to HttpUrlRequestFactoryConfig. #

Total comments: 26

Patch Set 5 : Use ForceAlternateProtocol if QUIC is enabled. #

Total comments: 2

Patch Set 6 : Address review comments. #

Total comments: 18

Patch Set 7 : Address review comments. #

Total comments: 12

Patch Set 8 : Moved tests to cronet_test #

Patch Set 9 : Address review comments. #

Patch Set 10 : Add quic_base, quic_tools and gmock to libcronet_tests. #

Patch Set 11 : Sync #

Patch Set 12 : Disabled testQuicLoadUrl until local QUIC server is available. Removed setQuicHint. #

Total comments: 6

Patch Set 13 : Sync #

Patch Set 14 : Address rch's comments. #

Patch Set 15 : Disable Quic test. #

Total comments: 12

Patch Set 16 : Address mmenke's comments. #

Patch Set 17 : Sync #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -63 lines) Patch
M components/cronet.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M components/cronet/android/chromium_url_request.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/ChromiumUrlRequest.java View 1 2 3 4 5 6 7 3 chunks +12 lines, -1 line 0 comments Download
M components/cronet/android/java/src/org/chromium/net/ChromiumUrlRequestContext.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -3 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/HttpUrlConnectionUrlRequest.java View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +32 lines, -0 lines 0 comments Download
A + components/cronet/android/test/cronet_test_jni.cc View 1 2 3 4 5 6 7 8 9 10 11 0 chunks +-1 lines, --1 lines 0 comments Download
D components/cronet/android/test/cronet_tests_jni.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -44 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/cronet_test_apk/CronetUrlTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +69 lines, -5 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/cronet_test_apk/HttpUrlRequestFactoryTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
M components/cronet/android/test/src/org/chromium/cronet_test_apk/CronetTestActivity.java View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -2 lines 0 comments Download
M components/cronet/android/url_request_adapter.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/cronet/android/url_request_adapter.cc View 1 2 3 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M components/cronet/android/url_request_context_adapter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M components/cronet/android/url_request_context_adapter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +37 lines, -1 line 1 comment Download
M components/cronet/tools/cr_cronet.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -4 lines 0 comments Download
M components/cronet/url_request_context_config.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +27 lines, -0 lines 0 comments Download
M components/cronet/url_request_context_config.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +21 lines, -0 lines 0 comments Download
M components/cronet/url_request_context_config_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_builder.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 44 (2 generated)
mef
Please take a look to confirm that I'm going in the right direction. :) I'm ...
6 years, 3 months ago (2014-09-05 16:21:02 UTC) #2
mmenke
I think rather than WasFetchedOverQuic, we should add a way to get the protocol, which ...
6 years, 3 months ago (2014-09-05 17:20:34 UTC) #3
Ryan Hamilton
On 2014/09/05 17:20:34, mmenke wrote: > I think rather than WasFetchedOverQuic, we should add a ...
6 years, 3 months ago (2014-09-05 18:03:17 UTC) #4
mmenke
On 2014/09/05 18:03:17, Ryan Hamilton wrote: > On 2014/09/05 17:20:34, mmenke wrote: > > I ...
6 years, 3 months ago (2014-09-05 18:07:47 UTC) #5
mef
Would it make sense to expose this to Java: // Protocol negotiated with the server. ...
6 years, 3 months ago (2014-09-05 18:15:43 UTC) #6
Charles
https://codereview.chromium.org/544223003/diff/1/components/cronet/android/java/src/org/chromium/net/ChromiumUrlRequestContext.java File components/cronet/android/java/src/org/chromium/net/ChromiumUrlRequestContext.java (right): https://codereview.chromium.org/544223003/diff/1/components/cronet/android/java/src/org/chromium/net/ChromiumUrlRequestContext.java#newcode97 components/cronet/android/java/src/org/chromium/net/ChromiumUrlRequestContext.java:97: public void setSupportsQuic(String server, This isn't very useful, as ...
6 years, 3 months ago (2014-09-05 18:16:22 UTC) #7
Ryan Hamilton
On 2014/09/05 18:07:47, mmenke wrote: > On 2014/09/05 18:03:17, Ryan Hamilton wrote: > > On ...
6 years, 3 months ago (2014-09-05 18:17:56 UTC) #8
Ryan Hamilton
On 2014/09/05 18:15:43, mef wrote: > Would it make sense to expose this to Java: ...
6 years, 3 months ago (2014-09-05 18:19:59 UTC) #9
mmenke
On 2014/09/05 18:17:56, Ryan Hamilton wrote: > On 2014/09/05 18:07:47, mmenke wrote: > > On ...
6 years, 3 months ago (2014-09-05 18:27:11 UTC) #10
mef
On 2014/09/05 18:19:59, Ryan Hamilton wrote: > On 2014/09/05 18:15:43, mef wrote: > > Would ...
6 years, 3 months ago (2014-09-05 18:27:39 UTC) #11
mef
I've added getNegotiatedProtocol method to get npn_negotiated_protocol string, which appears to be set to "quic/1+spdy/3" ...
6 years, 3 months ago (2014-09-05 19:07:28 UTC) #12
Charles
On 2014/09/05 19:07:28, mef wrote: > I've added getNegotiatedProtocol method to get npn_negotiated_protocol string, > ...
6 years, 3 months ago (2014-09-05 19:24:53 UTC) #13
mef
PTAL, I've added QUIC hints to HttpUrlRequestFactoryConfig.
6 years, 3 months ago (2014-09-05 22:09:22 UTC) #14
mef
ping?
6 years, 3 months ago (2014-09-08 20:38:46 UTC) #15
mmenke
On 2014/09/08 20:38:46, mef wrote: > ping? I'll get to this tomorrow... I'm experimenting with ...
6 years, 3 months ago (2014-09-08 20:46:35 UTC) #16
mmenke
https://codereview.chromium.org/544223003/diff/60001/components/cronet/android/chromium_url_request.cc File components/cronet/android/chromium_url_request.cc (right): https://codereview.chromium.org/544223003/diff/60001/components/cronet/android/chromium_url_request.cc#newcode395 components/cronet/android/chromium_url_request.cc:395: if (request == NULL) { Looks like we're pretty ...
6 years, 3 months ago (2014-09-09 14:53:36 UTC) #17
fnk
On 2014/09/09 14:53:36, mmenke wrote: > https://codereview.chromium.org/544223003/diff/60001/components/cronet/android/chromium_url_request.cc > File components/cronet/android/chromium_url_request.cc (right): > > https://codereview.chromium.org/544223003/diff/60001/components/cronet/android/chromium_url_request.cc#newcode395 > ...
6 years, 3 months ago (2014-09-09 15:03:12 UTC) #18
Charles
On 2014/09/09 15:03:12, fnk wrote: > On 2014/09/09 14:53:36, mmenke wrote: > > > https://codereview.chromium.org/544223003/diff/60001/components/cronet/android/chromium_url_request.cc ...
6 years, 3 months ago (2014-09-09 16:40:06 UTC) #19
Ryan Hamilton
On 2014/09/09 15:03:12, fnk wrote: > On 2014/09/09 14:53:36, mmenke wrote: > https://codereview.chromium.org/544223003/diff/60001/components/cronet/android/url_request_context_adapter.cc#newcode229 > > ...
6 years, 3 months ago (2014-09-09 17:02:55 UTC) #20
Charles
https://codereview.chromium.org/544223003/diff/60001/components/cronet/android/java/src/org/chromium/net/ChromiumUrlRequest.java File components/cronet/android/java/src/org/chromium/net/ChromiumUrlRequest.java (right): https://codereview.chromium.org/544223003/diff/60001/components/cronet/android/java/src/org/chromium/net/ChromiumUrlRequest.java#newcode394 components/cronet/android/java/src/org/chromium/net/ChromiumUrlRequest.java:394: public String getNegotiatedProtocol() { Check to make sure we've ...
6 years, 3 months ago (2014-09-09 17:03:56 UTC) #21
mef
I haven't addressed any of the comments :( but I gout this to work. :) ...
6 years, 3 months ago (2014-09-09 21:30:49 UTC) #22
mef
PTAL, I've cleaned it up and addressed review comments. https://codereview.chromium.org/544223003/diff/60001/components/cronet/android/chromium_url_request.cc File components/cronet/android/chromium_url_request.cc (right): https://codereview.chromium.org/544223003/diff/60001/components/cronet/android/chromium_url_request.cc#newcode395 components/cronet/android/chromium_url_request.cc:395: ...
6 years, 3 months ago (2014-09-10 16:48:18 UTC) #23
mmenke
https://codereview.chromium.org/544223003/diff/100001/components/cronet/android/chromium_url_request.cc File components/cronet/android/chromium_url_request.cc (right): https://codereview.chromium.org/544223003/diff/100001/components/cronet/android/chromium_url_request.cc#newcode397 components/cronet/android/chromium_url_request.cc:397: } nit: Think the preference is not to use ...
6 years, 3 months ago (2014-09-10 18:21:27 UTC) #24
mef
Thanks! I'll work on removing testing against google.com. I'll need to pull in an inproc ...
6 years, 3 months ago (2014-09-10 20:18:49 UTC) #25
mmenke
I don't think this needs another pass until you have tests working. If you feel ...
6 years, 3 months ago (2014-09-10 20:22:01 UTC) #26
Ryan Hamilton
Just a few comments. https://codereview.chromium.org/544223003/diff/80001/net/url_request/url_request_context_builder.cc File net/url_request/url_request_context_builder.cc (right): https://codereview.chromium.org/544223003/diff/80001/net/url_request/url_request_context_builder.cc#newcode245 net/url_request/url_request_context_builder.cc:245: HttpServerPropertiesImpl::ForceAlternateProtocol(pair); Please do not actually ...
6 years, 3 months ago (2014-09-10 20:58:19 UTC) #27
mmenke
https://codereview.chromium.org/544223003/diff/120001/components/cronet/url_request_context_config.h File components/cronet/url_request_context_config.h (right): https://codereview.chromium.org/544223003/diff/120001/components/cronet/url_request_context_config.h#newcode33 components/cronet/url_request_context_config.h:33: std::string server; On 2014/09/10 20:58:19, Ryan Hamilton wrote: > ...
6 years, 3 months ago (2014-09-10 21:10:18 UTC) #28
mef
PTAL. Per conversation with Matt I've disabled testQuicLoadUrl until I can use local Quic server. ...
6 years, 3 months ago (2014-09-12 19:44:34 UTC) #29
mef
On 2014/09/12 19:44:34, mef wrote: > PTAL. Per conversation with Matt I've disabled testQuicLoadUrl until ...
6 years, 3 months ago (2014-09-15 13:30:33 UTC) #30
mmenke
rch: I'm waiting on you to chime in about the updated QUIC setup, before doing ...
6 years, 3 months ago (2014-09-15 13:34:59 UTC) #31
Ryan Hamilton
Overall, I think this looks good. One comment about the format of the hint, and ...
6 years, 3 months ago (2014-09-15 18:29:45 UTC) #32
mef
Ryan, thanks, PTAL. Matt, WDYT? https://codereview.chromium.org/544223003/diff/220001/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java File components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java (right): https://codereview.chromium.org/544223003/diff/220001/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java#newcode97 components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java:97: public HttpUrlRequestFactoryConfig addQuicHint(String server, ...
6 years, 3 months ago (2014-09-15 21:01:01 UTC) #33
Ryan Hamilton
the QUIC-specific pieces LGTM, but mmenke understands the cronet pieces better.
6 years, 3 months ago (2014-09-15 21:19:40 UTC) #34
mmenke
https://codereview.chromium.org/544223003/diff/280001/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java File components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java (right): https://codereview.chromium.org/544223003/diff/280001/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java#newcode95 components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java:95: * @param port port of the server that supports ...
6 years, 3 months ago (2014-09-16 01:51:39 UTC) #35
mef
Matt, thanks, ptal! https://codereview.chromium.org/544223003/diff/280001/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java File components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java (right): https://codereview.chromium.org/544223003/diff/280001/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java#newcode95 components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java:95: * @param port port of the ...
6 years, 3 months ago (2014-09-16 08:44:15 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/544223003/320001
6 years, 3 months ago (2014-09-16 14:21:49 UTC) #38
commit-bot: I haz the power
Committed patchset #17 (id:320001) as 37e8d813e4de50f1e86849606b7bad085f0b25a6
6 years, 3 months ago (2014-09-16 14:50:40 UTC) #39
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/c71361c6408da79dfd759b1f74ba5b43638cb113 Cr-Commit-Position: refs/heads/master@{#295063}
6 years, 3 months ago (2014-09-16 14:53:21 UTC) #40
Ryan Hamilton
https://codereview.chromium.org/544223003/diff/320001/components/cronet/android/url_request_context_adapter.cc File components/cronet/android/url_request_context_adapter.cc (right): https://codereview.chromium.org/544223003/diff/320001/components/cronet/android/url_request_context_adapter.cc#newcode150 components/cronet/android/url_request_context_adapter.cc:150: ->SetAlternateProtocolProbabilityThreshold(1.0f); Doh! I should have noticed this before. This ...
6 years, 3 months ago (2014-09-17 22:07:26 UTC) #41
mmenke
On 2014/09/17 22:07:26, Ryan Hamilton wrote: > https://codereview.chromium.org/544223003/diff/320001/components/cronet/android/url_request_context_adapter.cc > File components/cronet/android/url_request_context_adapter.cc (right): > > https://codereview.chromium.org/544223003/diff/320001/components/cronet/android/url_request_context_adapter.cc#newcode150 ...
6 years, 3 months ago (2014-09-17 22:13:49 UTC) #42
Ryan Hamilton
On 2014/09/17 22:13:49, mmenke wrote: > On 2014/09/17 22:07:26, Ryan Hamilton wrote: > > > ...
6 years, 3 months ago (2014-09-17 22:16:51 UTC) #43
chromium-reviews
6 years, 3 months ago (2014-09-17 22:17:46 UTC) #44
I'll send a CL.

On Wed, Sep 17, 2014 at 3:13 PM, <mmenke@chromium.org> wrote:

> On 2014/09/17 22:07:26, Ryan Hamilton wrote:
>
> https://codereview.chromium.org/544223003/diff/320001/
> components/cronet/android/url_request_context_adapter.cc
>
>> File components/cronet/android/url_request_context_adapter.cc (right):
>>
>
>
> https://codereview.chromium.org/544223003/diff/320001/
> components/cronet/android/url_request_context_adapter.cc#newcode150
>
>> components/cronet/android/url_request_context_adapter.cc:150:
>> ->SetAlternateProtocolProbabilityThreshold(1.0f);
>> Doh! I should have noticed this before. This should be 0.0f not 1.0f.
>> Sorry!
>>
>
> Hrm...this should probably be documented somewhere - at least neither
> HttpServerProperties nor HttpServerPropertiesImpl provide any
> documentation for
> it.  HttpServerPropertiesImpl::HasAlternateProtocol does make it clear
> that this
> is the threshold above which we use alternate protocols, I suppose, but
> that's a
> bit deeper than one should have to go.
>
> https://codereview.chromium.org/544223003/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698