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

Issue 2814633003: Extract Proxy Resolution out of HttpStreamFactoryImpl::Job (Closed)

Created:
3 years, 8 months ago by xunjieli
Modified:
3 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract Proxy Resolution out of HttpStreamFactoryImpl::Job This is to extract proxy resolution out of HttpStreamFactoryImpl::Job to simplify the logic in the Job class. A side benefit is that we will have fewer proxy resolutions that we need to do. See linked doc for more details. Design doc: https://docs.google.com/document/d/1xKeUygQRvYXeg55Jt_f0LYHAZsJ98O10uQPLmtmNGtQ/edit?usp=sharing BUG=475060 Review-Url: https://codereview.chromium.org/2814633003 Cr-Commit-Position: refs/heads/master@{#471899} Committed: https://chromium.googlesource.com/chromium/src/+/c9a993789f4732a105d5ede4f9f36e0f7e0ce9b9

Patch Set 1 : fix remaining tests #

Total comments: 10

Patch Set 2 : Sync #

Patch Set 3 : add proxy resolution tests #

Patch Set 4 : temp (do not review this patch. review next patch) #

Total comments: 2

Patch Set 5 : self #

Patch Set 6 : add one more test for ReconsiderProxyAfterError #

Total comments: 4

Patch Set 7 : Sync #

Patch Set 8 : Fix tests to use MockQuicData with Ryan's help #

Patch Set 9 : address comments #

Patch Set 10 : unstage unrelated changes #

Total comments: 64

Patch Set 11 : Sync #

Patch Set 12 : address comments #

Patch Set 13 : revert one change #

Total comments: 1

Patch Set 14 : fix alt proxy tests #

Total comments: 17

Patch Set 15 : round 2! #

Patch Set 16 : fix re-entrancy and adds tests #

Patch Set 17 : self #

Patch Set 18 : minor test fix #

Patch Set 19 : self #

Patch Set 20 : Sync #

Patch Set 21 : cleanup #

Patch Set 22 : Sync #

Patch Set 23 : for debugging on bot4 #

Patch Set 24 : apply predictor fix #

Patch Set 25 : unstage debug statements #

Patch Set 26 : rebased #

Patch Set 27 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1101 lines, -894 lines) Patch
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +84 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 3 chunks +7 lines, -74 lines 0 comments Download
M net/http/http_stream_factory_impl_job.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +24 lines, -31 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 chunks +81 lines, -138 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 10 chunks +49 lines, -38 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 23 24 25 18 chunks +279 lines, -150 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 43 chunks +534 lines, -442 lines 0 comments Download
M net/http/http_stream_factory_impl_request_unittest.cc View 3 chunks +12 lines, -4 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +8 lines, -3 lines 0 comments Download
M net/http/http_stream_factory_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +18 lines, -14 lines 0 comments Download
M net/spdy/chromium/spdy_test_util_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 119 (90 generated)
xunjieli
Bence, Please do a high-level review. This is by no means polished, but I'd like ...
3 years, 8 months ago (2017-04-25 20:51:53 UTC) #25
Bence
On 2017/04/25 20:51:53, xunjieli wrote: > Bence, Please do a high-level review. This is by ...
3 years, 8 months ago (2017-04-26 13:55:27 UTC) #28
Bence
And here are some comments. https://codereview.chromium.org/2814633003/diff/240001/net/http/http_stream_factory_impl_job_controller.cc File net/http/http_stream_factory_impl_job_controller.cc (right): https://codereview.chromium.org/2814633003/diff/240001/net/http/http_stream_factory_impl_job_controller.cc#newcode748 net/http/http_stream_factory_impl_job_controller.cc:748: } while (next_state_ != ...
3 years, 8 months ago (2017-04-26 13:55:39 UTC) #29
Ryan Hamilton
3 years, 8 months ago (2017-04-26 17:30:54 UTC) #31
xunjieli
One question for Ryan below. PTAL. Thanks! https://codereview.chromium.org/2814633003/diff/240001/net/http/http_stream_factory_impl_job_controller.cc File net/http/http_stream_factory_impl_job_controller.cc (right): https://codereview.chromium.org/2814633003/diff/240001/net/http/http_stream_factory_impl_job_controller.cc#newcode748 net/http/http_stream_factory_impl_job_controller.cc:748: } while ...
3 years, 7 months ago (2017-04-27 18:15:54 UTC) #36
xunjieli
I am nervous about this refactor, so + Cherie and Tarun to get some extra ...
3 years, 7 months ago (2017-04-27 21:08:24 UTC) #41
tbansal1
On 2017/04/27 21:08:24, xunjieli wrote: > I am nervous about this refactor, so + Cherie ...
3 years, 7 months ago (2017-04-27 21:19:20 UTC) #42
Ryan Hamilton
https://codereview.chromium.org/2814633003/diff/300001/net/http/http_stream_factory_impl_job_controller_unittest.cc File net/http/http_stream_factory_impl_job_controller_unittest.cc (right): https://codereview.chromium.org/2814633003/diff/300001/net/http/http_stream_factory_impl_job_controller_unittest.cc#newcode1317 net/http/http_stream_factory_impl_job_controller_unittest.cc:1317: client_maker_.MakeInitialSettingsPacket(1, nullptr)); On 2017/04/27 18:15:54, xunjieli wrote: > Ryan: ...
3 years, 7 months ago (2017-04-27 21:52:47 UTC) #45
Bence
Forgot to publish these two comments quite a few days ago, sorry for the delay. ...
3 years, 7 months ago (2017-05-03 14:11:11 UTC) #46
xunjieli
Thank you! With Ryan's help, I was able to use MockQuicData to migrate affected JobController ...
3 years, 7 months ago (2017-05-03 22:18:30 UTC) #47
xunjieli
A friendly ping to all my reviewers! This CL is ready for review.
3 years, 7 months ago (2017-05-09 17:43:21 UTC) #52
Ryan Hamilton
This looks pretty good to me. I have a few nits, but I'm happy to ...
3 years, 7 months ago (2017-05-09 19:22:07 UTC) #54
tbansal1
Thanks for cleaning this up. https://codereview.chromium.org/2814633003/diff/420002/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (left): https://codereview.chromium.org/2814633003/diff/420002/net/http/http_stream_factory_impl_job.cc#oldcode152 net/http/http_stream_factory_impl_job.cc:152: std::unique_ptr<base::Value> NetLogHttpStreamJobProxyServerResolved( Is it ...
3 years, 7 months ago (2017-05-09 20:38:49 UTC) #55
Zhongyi Shi
Looking good, that's a huge cleanup! Excited to see the proxy resolution being extracted! I ...
3 years, 7 months ago (2017-05-09 20:59:31 UTC) #56
tbansal1
https://codereview.chromium.org/2814633003/diff/420002/net/http/http_stream_factory_impl_job_controller.cc File net/http/http_stream_factory_impl_job_controller.cc (right): https://codereview.chromium.org/2814633003/diff/420002/net/http/http_stream_factory_impl_job_controller.cc#newcode212 net/http/http_stream_factory_impl_job_controller.cc:212: May be add: DCHECK(!job->alternative_proxy_server().is_valid()); https://codereview.chromium.org/2814633003/diff/420002/net/http/http_stream_factory_impl_job_controller.cc#newcode233 net/http/http_stream_factory_impl_job_controller.cc:233: alternative_job_.reset(); IIUC, this ...
3 years, 7 months ago (2017-05-09 21:16:48 UTC) #57
xunjieli
Thanks everyone for the helpful comments! I believe I have addressed all. PTAL. https://codereview.chromium.org/2814633003/diff/420002/net/http/http_stream_factory_impl.cc File ...
3 years, 7 months ago (2017-05-10 00:26:25 UTC) #58
xunjieli
https://codereview.chromium.org/2814633003/diff/510001/net/http/http_stream_factory_impl_job_controller.cc File net/http/http_stream_factory_impl_job_controller.cc (right): https://codereview.chromium.org/2814633003/diff/510001/net/http/http_stream_factory_impl_job_controller.cc#newcode792 net/http/http_stream_factory_impl_job_controller.cc:792: enable_ip_based_pooling_, net_log_.net_log())); Cherie, looks like I need to keep ...
3 years, 7 months ago (2017-05-10 13:40:57 UTC) #65
xunjieli
Looks like I have three Alt Proxy tests failing because I removed the extra PostTask. ...
3 years, 7 months ago (2017-05-10 14:44:26 UTC) #68
xunjieli
On 2017/05/10 14:44:26, xunjieli wrote: > Looks like I have three Alt Proxy tests failing ...
3 years, 7 months ago (2017-05-10 18:13:20 UTC) #71
Bence
On 2017/05/10 18:13:20, xunjieli wrote: > On 2017/05/10 14:44:26, xunjieli wrote: > > Looks like ...
3 years, 7 months ago (2017-05-10 18:23:19 UTC) #72
Zhongyi Shi
I think you are almost there, thanks for the patience! This is one of the ...
3 years, 7 months ago (2017-05-10 20:28:16 UTC) #73
tbansal1
lgtm % nit comment. Thanks a lot for cleaning this up. https://codereview.chromium.org/2814633003/diff/530001/net/http/http_stream_factory_impl_job.h File net/http/http_stream_factory_impl_job.h (right): ...
3 years, 7 months ago (2017-05-10 21:53:20 UTC) #74
xunjieli
Thanks everyone! PTAL. https://codereview.chromium.org/2814633003/diff/530001/net/http/http_stream_factory_impl_job.h File net/http/http_stream_factory_impl_job.h (right): https://codereview.chromium.org/2814633003/diff/530001/net/http/http_stream_factory_impl_job.h#newcode258 net/http/http_stream_factory_impl_job.h:258: // waits after it finishes proxy ...
3 years, 7 months ago (2017-05-10 23:24:42 UTC) #79
Zhongyi Shi
LGTM! Thanks a lot for your patience!
3 years, 7 months ago (2017-05-11 14:51:59 UTC) #92
xunjieli
Thanks everyone for the reviews. Ryan: do you want to take another look?
3 years, 7 months ago (2017-05-11 15:25:33 UTC) #93
Ryan Hamilton
On 2017/05/11 15:25:33, xunjieli wrote: > Thanks everyone for the reviews. > Ryan: do you ...
3 years, 7 months ago (2017-05-11 18:25:31 UTC) #96
xunjieli
There's some issue with Network Predictor which passes empty urls to HttpStreamFactoryImpl::PreconnectStreams() on Android. I ...
3 years, 7 months ago (2017-05-13 01:28:51 UTC) #108
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/2814633003/870013
3 years, 7 months ago (2017-05-15 19:33:39 UTC) #116
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 21:06:28 UTC) #119
Message was sent while issue was closed.
Committed patchset #27 (id:870013) as
https://chromium.googlesource.com/chromium/src/+/c9a993789f4732a105d5ede4f9f3...

Powered by Google App Engine
This is Rietveld 408576698