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

Issue 1130343006: Don't share ResourceDispatcherHostImpl's timer for reporting upload progress. (Closed)

Created:
5 years, 7 months ago by Andre
Modified:
5 years, 7 months ago
Reviewers:
mmenke
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@safari-backend
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't share ResourceDispatcherHostImpl's timer for reporting upload progress. We want that timer to run only when needed, which is when a tab is loading, or currently when there is an upload in progress. This change separates the upload progress logic to make things simpler and help towards that goal. BUG=483287 Committed: https://crrev.com/e9b1f93b69d69cd1b4b9971789ee6ac57786c1a8 Cr-Commit-Position: refs/heads/master@{#331228}

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 12

Patch Set 4 : #

Total comments: 3

Patch Set 5 : Fixes for mmenke #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -28 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 2 3 4 1 chunk +0 lines, -4 lines 1 comment Download
M content/browser/loader/resource_loader.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 3 6 chunks +22 lines, -7 lines 0 comments Download
M content/browser/loader/resource_loader_unittest.cc View 1 2 3 4 10 chunks +118 lines, -16 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (5 generated)
Andre
mmenke, WDYT about this change as an intermediate step towards http://crrev.com/1117923004? I think it helps ...
5 years, 7 months ago (2015-05-19 21:10:47 UTC) #2
mmenke
I'd been thinking of this as a followup step, but I think it's reasonable to ...
5 years, 7 months ago (2015-05-19 21:28:30 UTC) #3
Andre
I'm completely unfamiliar with this stuff. Can you explain to me, what is the embedded ...
5 years, 7 months ago (2015-05-19 21:46:05 UTC) #4
mmenke
On 2015/05/19 21:46:05, Andre wrote: > I'm completely unfamiliar with this stuff. > Can you ...
5 years, 7 months ago (2015-05-19 21:51:27 UTC) #5
mmenke
On 2015/05/19 21:51:27, mmenke wrote: > On 2015/05/19 21:46:05, Andre wrote: > > I'm completely ...
5 years, 7 months ago (2015-05-20 19:15:10 UTC) #6
mmenke
https://codereview.chromium.org/1130343006/diff/1/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/1130343006/diff/1/content/browser/loader/resource_loader.cc#newcode146 content/browser/loader/resource_loader.cc:146: return; // Nothing to upload. BUG: A request will ...
5 years, 7 months ago (2015-05-20 20:05:41 UTC) #7
Andre
https://codereview.chromium.org/1130343006/diff/1/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/1130343006/diff/1/content/browser/loader/resource_loader.cc#newcode146 content/browser/loader/resource_loader.cc:146: return; // Nothing to upload. Thanks. Changed to use ...
5 years, 7 months ago (2015-05-20 21:05:12 UTC) #8
mmenke
https://codereview.chromium.org/1130343006/diff/20001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/1130343006/diff/20001/content/browser/loader/resource_loader.cc#newcode150 content/browser/loader/resource_loader.cc:150: return; // Nothing to upload. On 2015/05/20 21:05:12, Andre ...
5 years, 7 months ago (2015-05-20 21:07:58 UTC) #9
mmenke
https://codereview.chromium.org/1130343006/diff/20001/content/browser/loader/resource_loader_unittest.cc File content/browser/loader/resource_loader_unittest.cc (right): https://codereview.chromium.org/1130343006/diff/20001/content/browser/loader/resource_loader_unittest.cc#newcode664 content/browser/loader/resource_loader_unittest.cc:664: base::RunLoop().RunUntilIdle(); On 2015/05/20 21:05:12, Andre wrote: > What should ...
5 years, 7 months ago (2015-05-20 21:15:04 UTC) #10
mmenke
So to drive the upload, I think we need to either subclass either UploadDataStream or ...
5 years, 7 months ago (2015-05-20 21:29:26 UTC) #11
Andre
PTAL at patchset 3. The upload setup is based on the code in ResourceDispatcherHostTest.CalculateApproximateMemoryCost, it ...
5 years, 7 months ago (2015-05-20 22:35:57 UTC) #13
Andre
https://codereview.chromium.org/1130343006/diff/20001/content/browser/loader/resource_loader_unittest.cc File content/browser/loader/resource_loader_unittest.cc (right): https://codereview.chromium.org/1130343006/diff/20001/content/browser/loader/resource_loader_unittest.cc#newcode664 content/browser/loader/resource_loader_unittest.cc:664: base::RunLoop().RunUntilIdle(); Thanks, that works well. https://codereview.chromium.org/1130343006/diff/20001/content/browser/loader/resource_request_info_impl.cc File content/browser/loader/resource_request_info_impl.cc (right): ...
5 years, 7 months ago (2015-05-20 22:36:11 UTC) #14
mmenke
https://codereview.chromium.org/1130343006/diff/60001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/1130343006/diff/60001/content/browser/loader/resource_loader.cc#newcode144 content/browser/loader/resource_loader.cc:144: void ResourceLoader::ReportUploadProgress() { DCHECK(info->is_upload_progress_enabled());? https://codereview.chromium.org/1130343006/diff/60001/content/browser/loader/resource_loader.cc#newcode504 content/browser/loader/resource_loader.cc:504: if (GetRequestInfo()->is_upload_progress_enabled()) { ...
5 years, 7 months ago (2015-05-21 15:41:58 UTC) #15
Andre
PTAL at patchset 4. https://codereview.chromium.org/1130343006/diff/60001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/1130343006/diff/60001/content/browser/loader/resource_loader.cc#newcode144 content/browser/loader/resource_loader.cc:144: void ResourceLoader::ReportUploadProgress() { On 2015/05/21 ...
5 years, 7 months ago (2015-05-21 20:59:31 UTC) #17
mmenke
LGTM! https://codereview.chromium.org/1130343006/diff/100001/content/browser/loader/resource_loader_unittest.cc File content/browser/loader/resource_loader_unittest.cc (right): https://codereview.chromium.org/1130343006/diff/100001/content/browser/loader/resource_loader_unittest.cc#newcode226 content/browser/loader/resource_loader_unittest.cc:226: EXPECT_GE(position, upload_position_); This should be GT, right? We ...
5 years, 7 months ago (2015-05-22 15:15:08 UTC) #18
Andre
https://codereview.chromium.org/1130343006/diff/100001/content/browser/loader/resource_loader_unittest.cc File content/browser/loader/resource_loader_unittest.cc (right): https://codereview.chromium.org/1130343006/diff/100001/content/browser/loader/resource_loader_unittest.cc#newcode226 content/browser/loader/resource_loader_unittest.cc:226: EXPECT_GE(position, upload_position_); You're right, fixed. https://codereview.chromium.org/1130343006/diff/120001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (left): ...
5 years, 7 months ago (2015-05-22 17:24:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130343006/120001
5 years, 7 months ago (2015-05-23 01:03:24 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:120001)
5 years, 7 months ago (2015-05-23 03:22:58 UTC) #23
commit-bot: I haz the power
5 years, 7 months ago (2015-05-23 03:23:53 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e9b1f93b69d69cd1b4b9971789ee6ac57786c1a8
Cr-Commit-Position: refs/heads/master@{#331228}

Powered by Google App Engine
This is Rietveld 408576698