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

Issue 1301103002: moved upload progress logic from ResourceLoader to AsyncResourceHandler (Closed)

Created:
5 years, 4 months ago by Charlie Harrison
Modified:
5 years, 3 months ago
Reviewers:
mmenke, davidben
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, asanka, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

moved upload progress logic from ResourceLoader to AsyncResourceHandler ResourceDispatcherHostImpl no longer listens for UploadProgress ACKS from the renderer, instead AsyncResourceHandler takes care of those and the timing details about when to send progress reports This means that all the ResourceLoaders that previously had stubs for upload progress can lose that method BUG=498474 Committed: https://crrev.com/6684a66ad39c906f83f05a11c6e9ca7f9afac371 Cr-Commit-Position: refs/heads/master@{#346177}

Patch Set 1 #

Patch Set 2 : browser tests #

Patch Set 3 : fixed test server code #

Patch Set 4 : removed obsolete unittests #

Patch Set 5 : Fixed tests and 2 guaranteed progress points #

Patch Set 6 : added license #

Patch Set 7 : added license #

Total comments: 27

Patch Set 8 : style edits, new directory, xhr progress conditions updated #

Patch Set 9 : update html paths #

Total comments: 21

Patch Set 10 : more informative test + style #

Patch Set 11 : added space before comments #

Patch Set 12 : nits I missed #

Total comments: 3

Patch Set 13 : single quotes, nits, and return success on success #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -211 lines) Patch
M content/browser/download/download_resource_handler.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/download/save_file_resource_handler.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/save_file_resource_handler.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/loader/async_resource_handler.h View 1 2 3 4 5 6 7 4 chunks +9 lines, -1 line 0 comments Download
M content/browser/loader/async_resource_handler.cc View 1 2 3 4 5 6 7 7 chunks +63 lines, -7 lines 0 comments Download
A content/browser/loader/async_resource_handler_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +90 lines, -0 lines 0 comments Download
M content/browser/loader/certificate_resource_handler.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/loader/certificate_resource_handler.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/loader/detachable_resource_handler.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/detachable_resource_handler.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/loader/layered_resource_handler.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/layered_resource_handler.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/loader/mime_type_resource_handler_unittest.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/loader/navigation_resource_handler.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/navigation_resource_handler.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -7 lines 0 comments Download
M content/browser/loader/resource_handler.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/loader/resource_loader.h View 4 chunks +0 lines, -10 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 6 chunks +0 lines, -61 lines 0 comments Download
M content/browser/loader/resource_loader_unittest.cc View 1 2 3 4 5 6 7 5 chunks +1 line, -65 lines 0 comments Download
M content/browser/loader/stream_resource_handler.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/loader/stream_resource_handler.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/loader/sync_resource_handler.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/sync_resource_handler.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/loader/async_resource_handler.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +84 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
Charlie Harrison
I simplified the tests, because things were getting pretty hairy trying to mock an upload ...
5 years, 4 months ago (2015-08-24 20:04:53 UTC) #2
mmenke
Looks good. I'll probably file a bug about beefing up the tests, but think this ...
5 years, 3 months ago (2015-08-26 19:13:13 UTC) #3
Charlie Harrison
On 2015/08/26 19:13:13, mmenke wrote: > Looks good. I'll probably file a bug about beefing ...
5 years, 3 months ago (2015-08-27 15:11:55 UTC) #4
mmenke
Looking really good - nice to get all this stuff in a single file. https://codereview.chromium.org/1301103002/diff/160001/content/browser/loader/async_resource_handler.cc ...
5 years, 3 months ago (2015-08-27 17:21:29 UTC) #5
mmenke
5 years, 3 months ago (2015-08-27 17:21:37 UTC) #6
Charlie Harrison
https://codereview.chromium.org/1301103002/diff/160001/content/test/data/loader/async_resource_handler.html File content/test/data/loader/async_resource_handler.html (right): https://codereview.chromium.org/1301103002/diff/160001/content/test/data/loader/async_resource_handler.html#newcode27 content/test/data/loader/async_resource_handler.html:27: progress > e.total) On 2015/08/27 17:21:29, mmenke wrote: > ...
5 years, 3 months ago (2015-08-27 18:43:53 UTC) #7
Charlie Harrison
5 years, 3 months ago (2015-08-27 22:22:13 UTC) #9
mmenke
LGTM! https://codereview.chromium.org/1301103002/diff/220001/content/browser/loader/async_resource_handler_browsertest.cc File content/browser/loader/async_resource_handler_browsertest.cc (right): https://codereview.chromium.org/1301103002/diff/220001/content/browser/loader/async_resource_handler_browsertest.cc#newcode69 content/browser/loader/async_resource_handler_browsertest.cc:69: EXPECT_EQ(js_result, ""); I think it's a better practice ...
5 years, 3 months ago (2015-08-27 22:46:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1301103002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1301103002/240001
5 years, 3 months ago (2015-08-28 13:14:49 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/94154)
5 years, 3 months ago (2015-08-28 13:22:39 UTC) #15
Charlie Harrison
Hey David can you review the download/ files?
5 years, 3 months ago (2015-08-28 13:24:24 UTC) #17
davidben
content/browser/download lgtm. Let me know if you want me to look at content/browser/loader as well, ...
5 years, 3 months ago (2015-08-28 17:14:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1301103002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1301103002/240001
5 years, 3 months ago (2015-08-28 17:33:45 UTC) #20
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 3 months ago (2015-08-28 17:41:07 UTC) #21
commit-bot: I haz the power
5 years, 3 months ago (2015-08-28 17:42:38 UTC) #22
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/6684a66ad39c906f83f05a11c6e9ca7f9afac371
Cr-Commit-Position: refs/heads/master@{#346177}

Powered by Google App Engine
This is Rietveld 408576698