DescriptionMake URLRequestJob::SetStatus private.
Recent CLs have already made it so URLRequestJob itself calls the
method itself whenever necessary, except when URLRequestJob::Start is
being called, where subclasses were still expected to invoke it.
Most of them were failing to do so, but since nothing cares about the
state after start, and little distinguished between ERR_IO_PENDING and
SUCCESS, everything was still working. URLRequest now sets its status
itself before it starts a URLRequestJob.
This CL also makes the URLRequest consistently have a status of
ERR_IO_PENDING when it's doing something - there were a number of
paths where this wasn't previously the case.
The state machine changes also coincidentally fix issue 575213,
which regressed in https://codereview.chromium.org/1467603002, so this
CL includes a test for that fix.
In the future, I'd really like to get rid of URLRequestJob::SetStatus,
and have URLRequests manage their own status.
BUG=564250, 575213
TBR=jianli@chromium.org, phajdan.jr@chromium.org
Committed: https://crrev.com/0fdf6ebeb19c8dfbb73e398d72a00be61d2aa444
Cr-Commit-Position: refs/heads/master@{#371072}
Patch Set 1 #Patch Set 2 : More stuff #Patch Set 3 : Fix tests #Patch Set 4 : More fixes #Patch Set 5 : Fix more stuff #Patch Set 6 : More fixes... #Patch Set 7 : Fix android_webview #Patch Set 8 : Fix stuff #
Total comments: 25
Patch Set 9 : Response to Randy's comments #
Total comments: 4
Patch Set 10 : Combine with another CL #
Total comments: 3
Patch Set 11 : Response to comments #
Total comments: 3
Messages
Total messages: 39 (21 generated)
|