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

Issue 1952423002: JobController 2: Remove reference between HttpStreamFactoryImpl::Jobs. (Closed)

Created:
4 years, 7 months ago by Zhongyi Shi
Modified:
4 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@Job_Controller_1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

JobController 2: Remove reference between HttpStreamFactoryImpl::Jobs. HttpStreamFactoryImpl::JobController will take over scheduling between main job and alternative job. BUG=605398 Committed: https://crrev.com/5489ba4e6d4fa5ef7be7b8bbb8521f75addab7f5 Cr-Commit-Position: refs/heads/master@{#407846}

Patch Set 1 #

Total comments: 14

Patch Set 2 : sync to JobController1, and move DoWaitForJob to JobController #

Patch Set 3 : move DoWaitForJob back, resume Job after delay in JobController #

Total comments: 14

Patch Set 4 : rebase after JobController 1 landed #

Patch Set 5 : add unittests #

Patch Set 6 : move resume logic up to controller #

Total comments: 22

Patch Set 7 : Remove ResumeAfterDelay #

Total comments: 17

Patch Set 8 : Move resume logic up to controller #

Patch Set 9 : More tests with Resume logic #

Total comments: 28

Patch Set 10 : addressing nits #

Patch Set 11 : use unmocked Job::Start() and asyncronous Proxy resolution in tests #

Total comments: 3

Patch Set 12 : Remove mocked Start() for TestJob #

Patch Set 13 : use async proxy resolver for unittests #

Patch Set 14 : rebase with master, fix tests #

Patch Set 15 : rebase onto origin/master #

Patch Set 16 : fix a include typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+603 lines, -249 lines) Patch
M net/http/http_stream_factory_impl_job.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +20 lines, -28 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 13 chunks +31 lines, -130 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 4 chunks +25 lines, -1 line 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 12 chunks +87 lines, -9 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 12 chunks +420 lines, -1 line 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 1 chunk +0 lines, -74 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 3 chunks +11 lines, -1 line 0 comments Download
M net/http/http_stream_factory_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +7 lines, -5 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (25 generated)
Zhongyi Shi
This CL removes cross reference between two Jobs. Next step to do is to move ...
4 years, 7 months ago (2016-05-06 00:34:30 UTC) #3
Ryan Hamilton
Looking good. Let's get #1 sorted out before going to far on this CL, but ...
4 years, 7 months ago (2016-05-06 21:33:14 UTC) #4
Zhongyi Shi
Sync to JobController 1. Move some more scheduling in Job::DoWaitForJob() to JobController. https://codereview.chromium.org/1952423002/diff/1/net/http/http_stream_factory_impl.h File net/http/http_stream_factory_impl.h ...
4 years, 7 months ago (2016-05-13 00:31:25 UTC) #5
Zhongyi Shi
Move DoWaitForJob back to Job.
4 years, 7 months ago (2016-05-17 01:03:48 UTC) #7
Randy Smith (Not in Mondays)
Just a quick heads up that I won't be able to look at this until ...
4 years, 7 months ago (2016-05-17 17:06:53 UTC) #8
Ryan Hamilton
So excited by this CL! https://codereview.chromium.org/1952423002/diff/40001/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/1952423002/diff/40001/net/http/http_stream_factory_impl_job.cc#newcode738 net/http/http_stream_factory_impl_job.cc:738: job_controller_->MaybeResumeOtherJob(this, base::TimeDelta()); As discussed ...
4 years, 7 months ago (2016-05-17 22:14:09 UTC) #9
Randy Smith (Not in Mondays)
What's the current status of this CL? My initial reaction looking through it is that ...
4 years, 7 months ago (2016-05-25 21:22:22 UTC) #10
Zhongyi Shi
On 2016/05/25 21:22:22, Randy Smith - Not in Fridays wrote: > What's the current status ...
4 years, 7 months ago (2016-05-26 05:01:07 UTC) #11
Randy Smith (Not in Mondays)
On 2016/05/26 05:01:07, Zhongyi Shi wrote: > On 2016/05/25 21:22:22, Randy Smith - Not in ...
4 years, 7 months ago (2016-05-26 14:51:24 UTC) #12
Zhongyi Shi
Moving the resume logic to JobController unless we get an ERR_IO_PENDING for DoInitConnection(). PTAL! https://codereview.chromium.org/1952423002/diff/40001/net/http/http_stream_factory_impl_job.cc ...
4 years, 5 months ago (2016-06-29 21:49:03 UTC) #18
Ryan Hamilton
https://codereview.chromium.org/1952423002/diff/200001/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/1952423002/diff/200001/net/http/http_stream_factory_impl_job.cc#newcode312 net/http/http_stream_factory_impl_job.cc:312: ResumeAfterDelay(delegate_->wait_time_for_main_job()); Can the delegate (the controller) simply call Resume() ...
4 years, 5 months ago (2016-06-29 23:12:28 UTC) #20
Zhongyi Shi
Remove the ResumeAfterDelay mehtod, all the logic lives in Resume() now. Also addressing comments. PTAL! ...
4 years, 5 months ago (2016-06-30 22:53:39 UTC) #22
Ryan Hamilton
Looking GREAT! https://codereview.chromium.org/1952423002/diff/240001/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/1952423002/diff/240001/net/http/http_stream_factory_impl_job.cc#newcode289 net/http/http_stream_factory_impl_job.cc:289: void HttpStreamFactoryImpl::Job::Resume(const base::TimeDelta& delay) { Discussed offline, ...
4 years, 5 months ago (2016-07-01 00:13:30 UTC) #23
Zhongyi Shi
Test coverage for resume logic added! PTAL :D https://codereview.chromium.org/1952423002/diff/240001/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/1952423002/diff/240001/net/http/http_stream_factory_impl_job.cc#newcode289 net/http/http_stream_factory_impl_job.cc:289: void ...
4 years, 5 months ago (2016-07-11 23:04:57 UTC) #24
Ryan Hamilton
Looking great! Just a few cosmetic comments on the real code, and a couple of ...
4 years, 5 months ago (2016-07-12 00:21:46 UTC) #25
Zhongyi Shi
Addressing nits. Feel free to chat over on JobPeer. Thanks! https://codereview.chromium.org/1952423002/diff/280001/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/1952423002/diff/280001/net/http/http_stream_factory_impl_job.cc#newcode796 ...
4 years, 5 months ago (2016-07-12 23:03:13 UTC) #26
Zhongyi Shi
Hi Eric, I have left a comment in the job_controller_unittest where I override the url ...
4 years, 5 months ago (2016-07-15 18:42:49 UTC) #28
eroman
https://codereview.chromium.org/1952423002/diff/320001/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/1952423002/diff/320001/net/http/http_stream_factory_impl_job_controller_unittest.cc#newcode587 net/http/http_stream_factory_impl_job_controller_unittest.cc:587: On 2016/07/15 18:42:49, Zhongyi Shi wrote: > The original ...
4 years, 5 months ago (2016-07-15 19:30:34 UTC) #29
Ryan Hamilton
Almost done! https://codereview.chromium.org/1952423002/diff/320001/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/1952423002/diff/320001/net/http/http_stream_factory_impl_job_controller_unittest.cc#newcode522 net/http/http_stream_factory_impl_job_controller_unittest.cc:522: job_factory_.DisableMockStartForJobs(); Discussed offline, let's move to using ...
4 years, 5 months ago (2016-07-19 17:48:15 UTC) #30
Zhongyi Shi
Removed the mock method for Start(). Please use this patch for review. I will upload ...
4 years, 5 months ago (2016-07-20 00:11:59 UTC) #31
Zhongyi Shi
Using mock async proxy resolver in existing unittests.
4 years, 5 months ago (2016-07-20 21:16:58 UTC) #32
Ryan Hamilton
lgtm woo hoo!
4 years, 5 months ago (2016-07-21 22:34:16 UTC) #33
Zhongyi Shi
On 2016/07/21 22:34:16, Ryan Hamilton wrote: > lgtm > > woo hoo! Rebase to origin/master. ...
4 years, 5 months ago (2016-07-25 21:59:45 UTC) #42
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/1952423002/460001
4 years, 4 months ago (2016-07-26 17:43:31 UTC) #47
commit-bot: I haz the power
Committed patchset #16 (id:460001)
4 years, 4 months ago (2016-07-26 17:47:48 UTC) #49
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/5489ba4e6d4fa5ef7be7b8bbb8521f75addab7f5 Cr-Commit-Position: refs/heads/master@{#407846}
4 years, 4 months ago (2016-07-26 17:50:39 UTC) #51
tbansal1
On 2016/07/26 17:50:39, commit-bot: I haz the power wrote: > Patchset 16 (id:??) landed as ...
4 years, 4 months ago (2016-07-26 17:52:54 UTC) #52
Zhongyi Shi
4 years, 4 months ago (2016-07-26 18:00:42 UTC) #53
Message was sent while issue was closed.
On 2016/07/26 17:52:54, tbansal1 wrote:
> On 2016/07/26 17:50:39, commit-bot: I haz the power wrote:
> > Patchset 16 (id:??) landed as
> > https://crrev.com/5489ba4e6d4fa5ef7be7b8bbb8521f75addab7f5
> > Cr-Commit-Position: refs/heads/master@{#407846}
> 
> yay! Now, I am going to work on the Flywheel CL to use QUIC. Stay tuned!

Sweet! Sorry this CL takes long time to be checked in and might affect your work
a little bit.

Powered by Google App Engine
This is Rietveld 408576698