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

Issue 2546653003: Factor out upload progress handling from AsyncResourceHandler (Closed)

Created:
4 years ago by tzik
Modified:
4 years ago
Reviewers:
jam, yhirano, mmenke
CC:
chromium-reviews, loading-reviews_chromium.org, jam, darin-cc_chromium.org, Randy Smith (Not in Mondays)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Factor out upload progress handling from AsyncResourceHandler This CL extracts the upload progress handling logic in AsyncResourceHandler into UploadProgressTracker, so that we can reuse it in MojoAsyncResourceHandler. BUG=603396 TBR=jam@chromium.org Committed: https://crrev.com/a691461098c542dc098995edc9779a9b1a6aca07 Cr-Commit-Position: refs/heads/master@{#438814}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 10

Patch Set 3 : . #

Patch Set 4 : +Start, +OnUploadCompleted, -ForceReportUploadProgress #

Total comments: 2

Patch Set 5 : -#include. +final upload progress in OnResponseCompleted #

Total comments: 10

Patch Set 6 : . #

Total comments: 10

Patch Set 7 : rebase #

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -63 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/loader/DEPS View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/loader/async_resource_handler.h View 1 2 3 4 5 6 7 5 chunks +4 lines, -7 lines 0 comments Download
M content/browser/loader/async_resource_handler.cc View 1 2 3 4 5 6 7 9 chunks +37 lines, -56 lines 0 comments Download
A content/browser/loader/upload_progress_tracker.h View 1 2 3 4 5 1 chunk +57 lines, -0 lines 0 comments Download
A content/browser/loader/upload_progress_tracker.cc View 1 2 3 4 5 1 chunk +72 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 61 (41 generated)
tzik
PTAL
4 years ago (2016-12-02 03:47:08 UTC) #9
yhirano
https://codereview.chromium.org/2546653003/diff/20001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2546653003/diff/20001/content/browser/loader/async_resource_handler.cc#newcode383 content/browser/loader/async_resource_handler.cc:383: bool AsyncResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { Is it good ...
4 years ago (2016-12-02 09:17:52 UTC) #11
tzik
https://codereview.chromium.org/2546653003/diff/20001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2546653003/diff/20001/content/browser/loader/async_resource_handler.cc#newcode383 content/browser/loader/async_resource_handler.cc:383: bool AsyncResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { On 2016/12/02 09:17:52, ...
4 years ago (2016-12-05 08:00:06 UTC) #14
tzik
4 years ago (2016-12-07 12:51:37 UTC) #19
yhirano
https://codereview.chromium.org/2546653003/diff/20001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2546653003/diff/20001/content/browser/loader/async_resource_handler.cc#newcode383 content/browser/loader/async_resource_handler.cc:383: bool AsyncResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { On 2016/12/05 08:00:06, ...
4 years ago (2016-12-07 13:50:03 UTC) #20
tzik
https://codereview.chromium.org/2546653003/diff/20001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2546653003/diff/20001/content/browser/loader/async_resource_handler.cc#newcode383 content/browser/loader/async_resource_handler.cc:383: bool AsyncResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { On 2016/12/07 13:50:03, ...
4 years ago (2016-12-08 05:57:54 UTC) #23
yhirano
lgtm
4 years ago (2016-12-08 05:59:56 UTC) #26
tzik
Adding mmenke and jam for OWNER review. PTAL
4 years ago (2016-12-08 07:06:04 UTC) #30
mmenke
https://codereview.chromium.org/2546653003/diff/80001/content/browser/loader/DEPS File content/browser/loader/DEPS (right): https://codereview.chromium.org/2546653003/diff/80001/content/browser/loader/DEPS#newcode23 content/browser/loader/DEPS:23: "+content/browser/loader/upload_progress_tracker.h", Need to add deps entry for upload_progress_tracker.(cc|h). Perhaps ...
4 years ago (2016-12-08 15:37:08 UTC) #33
tzik
https://codereview.chromium.org/2546653003/diff/80001/content/browser/loader/DEPS File content/browser/loader/DEPS (right): https://codereview.chromium.org/2546653003/diff/80001/content/browser/loader/DEPS#newcode23 content/browser/loader/DEPS:23: "+content/browser/loader/upload_progress_tracker.h", On 2016/12/08 15:37:08, mmenke wrote: > Need to ...
4 years ago (2016-12-12 07:28:50 UTC) #36
mmenke
Sorry for the unreasonable delay. Took Monday off, but I should have gotten to this ...
4 years ago (2016-12-13 18:15:24 UTC) #39
mmenke
https://codereview.chromium.org/2546653003/diff/100001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2546653003/diff/100001/content/browser/loader/async_resource_handler.cc#newcode75 content/browser/loader/async_resource_handler.cc:75: int request_id, Hrm...Any reason to prefer this over just ...
4 years ago (2016-12-13 18:29:47 UTC) #40
mmenke
Oh, and LGTM
4 years ago (2016-12-13 18:30:08 UTC) #41
tzik
https://codereview.chromium.org/2546653003/diff/100001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2546653003/diff/100001/content/browser/loader/async_resource_handler.cc#newcode75 content/browser/loader/async_resource_handler.cc:75: int request_id, On 2016/12/13 18:29:46, mmenke wrote: > Hrm...Any ...
4 years ago (2016-12-14 06:50:30 UTC) #44
tzik
TBRing jam for simple file additions to //content/browser/BUILD.gn.
4 years ago (2016-12-15 06:08:19 UTC) #48
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/2546653003/140001
4 years ago (2016-12-15 06:08:53 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/326668)
4 years ago (2016-12-15 06:16:49 UTC) #53
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/2546653003/140001
4 years ago (2016-12-15 11:56:46 UTC) #56
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years ago (2016-12-15 12:49:30 UTC) #59
commit-bot: I haz the power
4 years ago (2016-12-15 12:51:54 UTC) #61
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/a691461098c542dc098995edc9779a9b1a6aca07
Cr-Commit-Position: refs/heads/master@{#438814}

Powered by Google App Engine
This is Rietveld 408576698