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

Issue 1941083002: JobController 1: Adding a new class HttpStreamFactoryImpl::JobController (Closed)

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

JobController 1: Adding a new class HttpStreamFactoryImpl::JobController and remove cross reference between HttpStreamFactoryImpl::Request, HttpStreamFactoryImpl::Job, and HttpStreamFactoryImpl::Impl. BUG=605398 Committed: https://crrev.com/efbff200c26039dcd1ea0a4d585662629a8b9e69 Committed: https://crrev.com/3c41298615d9dc25bd02bc3f3b1169268af000c6 Cr-Original-Commit-Position: refs/heads/master@{#400086} Cr-Commit-Position: refs/heads/master@{#400552}

Patch Set 1 #

Patch Set 2 : OrphanJobs #

Patch Set 3 : remove ref to factory_impl in Job #

Patch Set 4 : remove cross reference #

Patch Set 5 : #

Total comments: 64

Patch Set 6 : remove multiple refs to Job in JobController #

Total comments: 1

Patch Set 7 : reorder methods declaration in JobController by consumer type #

Patch Set 8 : comment fix #

Total comments: 14

Patch Set 9 : address rch's comments #

Patch Set 10 : comment/naming fix #

Total comments: 28

Patch Set 11 : address rdsmith's comments #

Total comments: 4

Patch Set 12 : refine comments #

Total comments: 6

Patch Set 13 : add RequestVisitorInterface and JobVisitorInterface #

Patch Set 14 : rename interfaces #

Patch Set 15 : merge unittests to this CL #

Total comments: 10

Patch Set 16 : add JobFactory and rewrite test cases #

Total comments: 6

Patch Set 17 : add JobFactory interface in JobController, remove JobControllerPeer #

Total comments: 43

Patch Set 18 : address comments #

Total comments: 1

Patch Set 19 : sync and fix compile only, Plz use PS18 to review new changes. #

Total comments: 26

Patch Set 20 : rename JobFactoryImpl to DefaultJobFactory #

Patch Set 21 : Hide DefaultJobFactory in impl.cc, Move JobFactory to Impl, move ImplPeer to test_util #

Patch Set 22 : rebase #

Total comments: 12

Patch Set 23 : address rch's nits #

Patch Set 24 : Regrassion test and fix for crbug/621069 #

Total comments: 2

Patch Set 25 : address nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2084 lines, -877 lines) Patch
M net/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M net/http/http_basic_stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -1 line 0 comments Download
M net/http/http_stream_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -2 lines 0 comments Download
M net/http/http_stream_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -14 lines 0 comments Download
M net/http/http_stream_factory_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +24 lines, -36 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 5 chunks +68 lines, -258 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 15 16 17 18 19 20 21 22 11 chunks +160 lines, -19 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 16 17 18 19 26 chunks +86 lines, -158 lines 0 comments Download
A 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 21 22 1 chunk +234 lines, -0 lines 0 comments Download
A 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 21 22 23 24 1 chunk +821 lines, -0 lines 0 comments Download
A 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 20 21 22 23 1 chunk +299 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_request.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +44 lines, -56 lines 0 comments Download
M net/http/http_stream_factory_impl_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +7 lines, -245 lines 0 comments Download
M net/http/http_stream_factory_impl_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +51 lines, -77 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +0 lines, -10 lines 0 comments Download
A net/http/http_stream_factory_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +168 lines, -0 lines 0 comments Download
A net/http/http_stream_factory_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +112 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +3 lines, -1 line 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +3 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 80 (25 generated)
Zhongyi Shi
This CL is the step 1 of introducing the JobController. Removing cross reference between Request ...
4 years, 7 months ago (2016-05-03 00:31:16 UTC) #2
Zhongyi Shi
Remove reference to HttpStreamFactoryImpl in Job. *Do Not Review*
4 years, 7 months ago (2016-05-04 00:13:26 UTC) #4
Randy Smith (Not in Mondays)
Cherie: I'm not sure how to understand your "looking for early feedback" and "do not ...
4 years, 7 months ago (2016-05-04 15:46:27 UTC) #5
Zhongyi Shi
On 2016/05/04 15:46:27, Randy Smith - Not in Fridays wrote: > Cherie: I'm not sure ...
4 years, 7 months ago (2016-05-05 04:49:26 UTC) #6
Ryan Hamilton
This is glorious! I think there's still room to move things around a bit more, ...
4 years, 7 months ago (2016-05-06 20:49:02 UTC) #10
Randy Smith (Not in Mondays)
Cherie: Some intermediate nits (I'll keep reviewing) but I wanted to summarize a conversation between ...
4 years, 7 months ago (2016-05-09 20:42:18 UTC) #11
Randy Smith (Not in Mondays)
End of first round review comments. I'm postponing looking at the tests until after we've ...
4 years, 7 months ago (2016-05-09 21:42:10 UTC) #12
Zhongyi Shi
Addressing comments. Move IsOrphaned to JobController. Remove multiple refs to Jobs in JobController. PTAL. https://codereview.chromium.org/1941083002/diff/120001/net/http/http_stream_factory_impl.cc ...
4 years, 7 months ago (2016-05-12 07:26:24 UTC) #14
Zhongyi Shi
One more note: Please review the patch set 6, then 7. Patch 7 is reordering ...
4 years, 7 months ago (2016-05-12 18:01:00 UTC) #15
Zhongyi Shi
On 2016/05/12 18:01:00, Zhongyi Shi wrote: > One more note: > > Please review the ...
4 years, 7 months ago (2016-05-12 19:08:05 UTC) #16
Ryan Hamilton
I think this is looking pretty good! Just a few small comments. https://codereview.chromium.org/1941083002/diff/200001/net/cert/cert_verify_proc_unittest.cc File net/cert/cert_verify_proc_unittest.cc ...
4 years, 7 months ago (2016-05-13 20:50:40 UTC) #17
Zhongyi Shi
Thanks Ryan for reviewing. Comments addressed. PTAL! https://codereview.chromium.org/1941083002/diff/200001/net/cert/cert_verify_proc_unittest.cc File net/cert/cert_verify_proc_unittest.cc (right): https://codereview.chromium.org/1941083002/diff/200001/net/cert/cert_verify_proc_unittest.cc#newcode667 net/cert/cert_verify_proc_unittest.cc:667: TEST_F(CertVerifyProcTest, DISABLED_TestKnownRoot) ...
4 years, 7 months ago (2016-05-13 22:22:24 UTC) #18
Ryan Hamilton
https://codereview.chromium.org/1941083002/diff/200001/net/http/http_stream_factory_impl_job_controller.h File net/http/http_stream_factory_impl_job_controller.h (right): https://codereview.chromium.org/1941083002/diff/200001/net/http/http_stream_factory_impl_job_controller.h#newcode194 net/http/http_stream_factory_impl_job_controller.h:194: // True if ever a job is explicitly bounded ...
4 years, 7 months ago (2016-05-13 22:34:29 UTC) #19
Zhongyi Shi
Fix some comments and naming issues. PTAL :)
4 years, 7 months ago (2016-05-13 22:55:03 UTC) #20
Randy Smith (Not in Mondays)
Non-test comments; I'm continuing to review the tests, but I figured I'd reduce latency for ...
4 years, 7 months ago (2016-05-16 20:46:39 UTC) #21
Randy Smith (Not in Mondays)
With regard to the tests, I find myself tripping over the idea that we're adding ...
4 years, 7 months ago (2016-05-16 22:01:11 UTC) #22
Zhongyi Shi
Thanks Randy for review, I will leave part of you comments unaddressed and take a ...
4 years, 7 months ago (2016-05-16 23:08:53 UTC) #23
Ryan Hamilton
I'm quite happy with the design in this CL. Randy has some more questions, and ...
4 years, 7 months ago (2016-05-17 17:02:16 UTC) #24
Zhongyi Shi
Thanks all for reviewing this XL CL and apologize again for the inconvenience in reviewing. ...
4 years, 7 months ago (2016-05-17 19:47:02 UTC) #26
tbansal1
I was looking at this CL in context of https://codereview.chromium.org/1982443003/ which conflicts with this refactoring. ...
4 years, 7 months ago (2016-05-18 00:29:10 UTC) #28
Zhongyi Shi
Argh, forgot to send this out. Adding two interfaces: RequestVisitorInterface and JobVisitorInterface which interacts with ...
4 years, 7 months ago (2016-05-21 00:08:52 UTC) #30
Randy Smith (Not in Mondays)
On 2016/05/21 00:08:52, Zhongyi Shi wrote: > Argh, forgot to send this out. Adding two ...
4 years, 7 months ago (2016-05-23 21:13:41 UTC) #31
Randy Smith (Not in Mondays)
This is very close. A couple of re-pings on earlier comments it looks like you ...
4 years, 7 months ago (2016-05-23 21:39:26 UTC) #32
Zhongyi Shi
Had an Offline discussion with Ryan earlier this morning. To avoid the conflict with HttpStreamRequest::Delegate. ...
4 years, 7 months ago (2016-05-25 00:48:53 UTC) #33
Randy Smith (Not in Mondays)
LGTM. Thanks for your patience!
4 years, 7 months ago (2016-05-25 20:32:13 UTC) #34
Zhongyi Shi
Thanks a lot for reviewing this XL CL. And it's becoming even larger. With offline ...
4 years, 7 months ago (2016-05-27 00:27:33 UTC) #35
Zhongyi Shi
On 2016/05/27 00:27:33, Zhongyi Shi wrote: > Thanks a lot for reviewing this XL CL. ...
4 years, 6 months ago (2016-06-01 02:46:55 UTC) #36
Randy Smith (Not in Mondays)
On 2016/06/01 02:46:55, Zhongyi Shi wrote: > On 2016/05/27 00:27:33, Zhongyi Shi wrote: > > ...
4 years, 6 months ago (2016-06-01 18:36:00 UTC) #37
Ryan Hamilton
overall, the controller test is looking good. a big improvement. It'd be great if we ...
4 years, 6 months ago (2016-06-01 18:43:07 UTC) #38
Zhongyi Shi
JobFactory added!! Basically it's just a wrapper to vend Job. Adn TestJobFactory will need the ...
4 years, 6 months ago (2016-06-02 20:49:09 UTC) #41
Ryan Hamilton
I'm loving the way these tests make it clear what the contract is between the ...
4 years, 6 months ago (2016-06-03 00:11:24 UTC) #42
Zhongyi Shi
Sorry for sending it out late. I can walk you over through the code if ...
4 years, 6 months ago (2016-06-03 23:09:21 UTC) #43
Ryan Hamilton
Looking great! https://codereview.chromium.org/1941083002/diff/460001/net/cert/cert_verify_proc_unittest.cc File net/cert/cert_verify_proc_unittest.cc (right): https://codereview.chromium.org/1941083002/diff/460001/net/cert/cert_verify_proc_unittest.cc#newcode667 net/cert/cert_verify_proc_unittest.cc:667: TEST_F(CertVerifyProcTest, DISABLED_TestKnownRoot) { nit: Remove this from ...
4 years, 6 months ago (2016-06-06 17:57:32 UTC) #44
Zhongyi Shi
https://codereview.chromium.org/1941083002/diff/460001/net/cert/cert_verify_proc_unittest.cc File net/cert/cert_verify_proc_unittest.cc (right): https://codereview.chromium.org/1941083002/diff/460001/net/cert/cert_verify_proc_unittest.cc#newcode667 net/cert/cert_verify_proc_unittest.cc:667: TEST_F(CertVerifyProcTest, DISABLED_TestKnownRoot) { On 2016/06/06 17:57:31, Ryan Hamilton wrote: ...
4 years, 6 months ago (2016-06-06 22:50:56 UTC) #45
Zhongyi Shi
https://codereview.chromium.org/1941083002/diff/460001/net/http/http_stream_factory_impl_job_factory_impl.h File net/http/http_stream_factory_impl_job_factory_impl.h (right): https://codereview.chromium.org/1941083002/diff/460001/net/http/http_stream_factory_impl_job_factory_impl.h#newcode17 net/http/http_stream_factory_impl_job_factory_impl.h:17: class HttpStreamFactoryImpl::JobFactoryImpl On 2016/06/06 22:50:56, Zhongyi Shi wrote: > ...
4 years, 6 months ago (2016-06-08 04:30:25 UTC) #50
Randy Smith (Not in Mondays)
Cherie: The danger of adding a review in near the end is that they may ...
4 years, 6 months ago (2016-06-09 14:26:54 UTC) #51
Ryan Hamilton
This is looking pretty good to me except for the friends issue (and a bunch ...
4 years, 6 months ago (2016-06-13 19:25:27 UTC) #52
Zhongyi Shi
Tried multiple ways to hide DefaultJobFactory implementation to http_stream_factory_impl.cc. Unfortunately, neither of them works mainly ...
4 years, 6 months ago (2016-06-14 22:20:57 UTC) #53
Zhongyi Shi
Per offline discussion: 1. Move JobFactory upward to be nested in HttpStreamFactoryImpl, fwd declared. Defined ...
4 years, 6 months ago (2016-06-15 19:26:46 UTC) #54
Ryan Hamilton
A few more cosmetic cleanups, but nothing structural. Woo hoo! I think this looks ready ...
4 years, 6 months ago (2016-06-15 23:34:20 UTC) #55
Zhongyi Shi
Can't wait to see this being shipped out!! Thanks for all your guys help and ...
4 years, 6 months ago (2016-06-16 00:02:31 UTC) #56
Ryan Hamilton
lgtm!
4 years, 6 months ago (2016-06-16 03:33:18 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941083002/660001
4 years, 6 months ago (2016-06-16 04:20:41 UTC) #60
commit-bot: I haz the power
Committed patchset #23 (id:660001)
4 years, 6 months ago (2016-06-16 04:47:19 UTC) #62
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-16 04:47:23 UTC) #63
commit-bot: I haz the power
Patchset 23 (id:??) landed as https://crrev.com/efbff200c26039dcd1ea0a4d585662629a8b9e69 Cr-Commit-Position: refs/heads/master@{#400086}
4 years, 6 months ago (2016-06-16 04:50:45 UTC) #65
mmenke
In the future, could you please make your CL descriptions a little clearer. There a ...
4 years, 6 months ago (2016-06-16 14:16:22 UTC) #66
Zhongyi Shi
On 2016/06/16 14:16:22, mmenke wrote: > In the future, could you please make your CL ...
4 years, 6 months ago (2016-06-16 17:17:29 UTC) #67
Zhongyi Shi
A revert of this CL (patchset #23 id:660001) has been created in https://codereview.chromium.org/2073293002/ by zhongyi@chromium.org. ...
4 years, 6 months ago (2016-06-17 21:23:39 UTC) #68
Zhongyi Shi
Add regression test and the corresponding fix for crbug/621069.
4 years, 6 months ago (2016-06-17 23:03:17 UTC) #70
Ryan Hamilton
LGTM, modulo one nit https://codereview.chromium.org/1941083002/diff/680001/net/http/http_stream_factory_impl_job_controller.cc File net/http/http_stream_factory_impl_job_controller.cc (right): https://codereview.chromium.org/1941083002/diff/680001/net/http/http_stream_factory_impl_job_controller.cc#newcode114 net/http/http_stream_factory_impl_job_controller.cc:114: return alternative_job_->GetLoadState(); How about: return ...
4 years, 6 months ago (2016-06-17 23:14:36 UTC) #71
Zhongyi Shi
Re-landing this CL after fix crbug/621069. Thanks! https://codereview.chromium.org/1941083002/diff/680001/net/http/http_stream_factory_impl_job_controller.cc File net/http/http_stream_factory_impl_job_controller.cc (right): https://codereview.chromium.org/1941083002/diff/680001/net/http/http_stream_factory_impl_job_controller.cc#newcode114 net/http/http_stream_factory_impl_job_controller.cc:114: return alternative_job_->GetLoadState(); ...
4 years, 6 months ago (2016-06-17 23:32:23 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941083002/700001
4 years, 6 months ago (2016-06-17 23:33:06 UTC) #75
commit-bot: I haz the power
Committed patchset #25 (id:700001)
4 years, 6 months ago (2016-06-18 00:34:45 UTC) #77
commit-bot: I haz the power
4 years, 6 months ago (2016-06-18 00:37:42 UTC) #79
Message was sent while issue was closed.
Patchset 25 (id:??) landed as
https://crrev.com/3c41298615d9dc25bd02bc3f3b1169268af000c6
Cr-Commit-Position: refs/heads/master@{#400552}

Powered by Google App Engine
This is Rietveld 408576698