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

Issue 2092993002: Browser process changes for Resource Timing sizes. (Closed)

Created:
4 years, 6 months ago by Adam Rice
Modified:
4 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, loading-reviews_chromium.org, mmenke, Randy Smith (Not in Mondays)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Browser process changes for Resource Timing sizes. This is part of the changes to add the size fields to the PerformanceResourceTiming API. See the design doc at https://docs.google.com/document/d/1ckL-rKLFRsdI4nn1golvQ6I1zRIvxgFkDXMrZb8KduY/edit These are the browser-side changes to pass the "encodedBodySize" field to the renderer. The field is named encoded_body_length in the //content code for consistency with the existing encoded_data_length field. For async resource fetches the value is passed one chunk at a time in the ResourceMsg_InlinedDataChunkReceived and ResourceMsg_DataReceived IPCs. For sync XHR it is passed in the ResourceResponseInfo struct. BUG=467945 Committed: https://crrev.com/e7b920b234f45614806cc4467e3e602720839e1e Cr-Commit-Position: refs/heads/master@{#405015}

Patch Set 1 #

Patch Set 2 : Fix compilation of resource_dispatcher_unittest.cc #

Total comments: 6

Patch Set 3 : Add tests for AsyncResourceHandler #

Patch Set 4 : Add missing explicit keyword #

Total comments: 11

Patch Set 5 : Use ResourceRequestInfo::AllocateForTesting(). Small code and comment cleanups. #

Total comments: 10

Patch Set 6 : Stop using AllocateForTesting() #

Total comments: 23

Patch Set 7 : AsyncResourceHandlerTest cleanups from kinuko review #

Patch Set 8 : Fix content_features.cc header include #

Total comments: 12

Patch Set 9 : Nitpick fixes #

Patch Set 10 : Rebase #

Patch Set 11 : Fix leak and CHECK error #

Patch Set 12 : Fix base::FeatureList DCHECK again #

Total comments: 3

Patch Set 13 : Method renames #

Unified diffs Side-by-side diffs Delta from patch set Stats (+434 lines, -21 lines) Patch
M content/browser/loader/async_resource_handler.h View 1 2 4 chunks +5 lines, -2 lines 0 comments Download
M content/browser/loader/async_resource_handler.cc View 1 2 3 4 5 6 7 8 9 8 chunks +26 lines, -9 lines 0 comments Download
A content/browser/loader/async_resource_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +339 lines, -0 lines 0 comments Download
M content/browser/loader/sync_resource_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/child/resource_dispatcher.h View 1 chunk +4 lines, -2 lines 0 comments Download
M content/child/resource_dispatcher.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/child/resource_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +41 lines, -2 lines 0 comments Download
M content/common/resource_messages.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -4 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/resource_response.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/resource_response_info.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/resource_response_info.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 61 (30 generated)
Adam Rice
PTAL
4 years, 6 months ago (2016-06-24 03:22:37 UTC) #2
Kunihiko Sakamoto
non-owner lgtm
4 years, 6 months ago (2016-06-24 04:07:51 UTC) #3
Adam Rice
kinuko, do you have time to do the OWNERS review for this?
4 years, 6 months ago (2016-06-24 04:46:47 UTC) #5
kinuko
lgtm.
4 years, 6 months ago (2016-06-24 09:56:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2092993002/1
4 years, 6 months ago (2016-06-24 09:57:13 UTC) #8
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/206638)
4 years, 6 months ago (2016-06-24 10:03:30 UTC) #10
Adam Rice
+mkwst for security review of resource_messages.h
4 years, 6 months ago (2016-06-24 10:15:31 UTC) #12
Mike West
IPC LGTM, but I think this CL would benefit from additional testing. https://codereview.chromium.org/2092993002/diff/20001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc ...
4 years, 6 months ago (2016-06-24 10:49:20 UTC) #13
kinuko
https://codereview.chromium.org/2092993002/diff/20001/content/public/common/resource_response_info.cc File content/public/common/resource_response_info.cc (right): https://codereview.chromium.org/2092993002/diff/20001/content/public/common/resource_response_info.cc#newcode16 content/public/common/resource_response_info.cc:16: encoded_body_length(0), This being 0 by default while others are ...
4 years, 5 months ago (2016-06-28 15:10:17 UTC) #14
Adam Rice
I thought I sent these comments but it seems not. Sorry for the delay. https://codereview.chromium.org/2092993002/diff/20001/content/browser/loader/async_resource_handler.cc ...
4 years, 5 months ago (2016-07-07 06:50:09 UTC) #15
kinuko
https://codereview.chromium.org/2092993002/diff/60001/content/browser/loader/async_resource_handler_unittest.cc File content/browser/loader/async_resource_handler_unittest.cc (right): https://codereview.chromium.org/2092993002/diff/60001/content/browser/loader/async_resource_handler_unittest.cc#newcode58 content/browser/loader/async_resource_handler_unittest.cc:58: // Should be larger than kInlinedLeadingChunkSize nit: end sentence ...
4 years, 5 months ago (2016-07-08 05:57:05 UTC) #16
Adam Rice
https://codereview.chromium.org/2092993002/diff/60001/content/browser/loader/async_resource_handler_unittest.cc File content/browser/loader/async_resource_handler_unittest.cc (right): https://codereview.chromium.org/2092993002/diff/60001/content/browser/loader/async_resource_handler_unittest.cc#newcode58 content/browser/loader/async_resource_handler_unittest.cc:58: // Should be larger than kInlinedLeadingChunkSize On 2016/07/08 05:57:05, ...
4 years, 5 months ago (2016-07-08 07:45:25 UTC) #17
kinuko
I'll take further look. While having a test is great in general I still feel ...
4 years, 5 months ago (2016-07-08 09:39:28 UTC) #18
Adam Rice
https://codereview.chromium.org/2092993002/diff/60001/content/browser/loader/async_resource_handler_unittest.cc File content/browser/loader/async_resource_handler_unittest.cc (right): https://codereview.chromium.org/2092993002/diff/60001/content/browser/loader/async_resource_handler_unittest.cc#newcode216 content/browser/loader/async_resource_handler_unittest.cc:216: ResourceRequestInfoImpl* info = new ResourceRequestInfoImpl( On 2016/07/08 07:45:25, Adam ...
4 years, 5 months ago (2016-07-08 11:21:10 UTC) #19
Mike West
On 2016/07/08 at 09:39:28, kinuko wrote: > I'll take further look. While having a test ...
4 years, 5 months ago (2016-07-08 13:14:37 UTC) #20
Adam Rice
https://codereview.chromium.org/2092993002/diff/100001/content/browser/loader/async_resource_handler_unittest.cc File content/browser/loader/async_resource_handler_unittest.cc (right): https://codereview.chromium.org/2092993002/diff/100001/content/browser/loader/async_resource_handler_unittest.cc#newcode219 content/browser/loader/async_resource_handler_unittest.cc:219: ResourceRequestInfoImpl* info = new ResourceRequestInfoImpl( On 2016/07/08 13:14:37, Mike ...
4 years, 5 months ago (2016-07-11 02:07:59 UTC) #21
kinuko
Thanks Mike. Ok then let's land this with the additional test. I think we can ...
4 years, 5 months ago (2016-07-11 02:35:25 UTC) #22
Adam Rice
https://codereview.chromium.org/2092993002/diff/100001/content/browser/loader/async_resource_handler_unittest.cc File content/browser/loader/async_resource_handler_unittest.cc (right): https://codereview.chromium.org/2092993002/diff/100001/content/browser/loader/async_resource_handler_unittest.cc#newcode86 content/browser/loader/async_resource_handler_unittest.cc:86: } On 2016/07/11 02:35:24, kinuko wrote: > Why can't ...
4 years, 5 months ago (2016-07-11 05:16:36 UTC) #23
kinuko
Looking good, could we run this on dry CQ? https://codereview.chromium.org/2092993002/diff/100001/content/browser/loader/async_resource_handler_unittest.cc File content/browser/loader/async_resource_handler_unittest.cc (right): https://codereview.chromium.org/2092993002/diff/100001/content/browser/loader/async_resource_handler_unittest.cc#newcode219 content/browser/loader/async_resource_handler_unittest.cc:219: ...
4 years, 5 months ago (2016-07-11 06:43:39 UTC) #24
Adam Rice
I have rebased so that the CQ dry run works. https://codereview.chromium.org/2092993002/diff/140001/content/browser/loader/async_resource_handler_unittest.cc File content/browser/loader/async_resource_handler_unittest.cc (right): https://codereview.chromium.org/2092993002/diff/140001/content/browser/loader/async_resource_handler_unittest.cc#newcode21 ...
4 years, 5 months ago (2016-07-11 10:24:16 UTC) #31
kinuko
lgtm https://codereview.chromium.org/2092993002/diff/220001/content/browser/loader/async_resource_handler_unittest.cc File content/browser/loader/async_resource_handler_unittest.cc (right): https://codereview.chromium.org/2092993002/diff/220001/content/browser/loader/async_resource_handler_unittest.cc#newcode181 content/browser/loader/async_resource_handler_unittest.cc:181: void CreateRequest(size_t response_data_size) { nit: CreateRequestWithResponseDataSize or something ...
4 years, 5 months ago (2016-07-11 14:29:36 UTC) #38
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/2092993002/240001
4 years, 5 months ago (2016-07-12 04:19:47 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/260665)
4 years, 5 months ago (2016-07-12 06:00:59 UTC) #47
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/2092993002/240001
4 years, 5 months ago (2016-07-12 07:40:19 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/191079)
4 years, 5 months ago (2016-07-12 09:02:18 UTC) #51
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/2092993002/240001
4 years, 5 months ago (2016-07-12 09:42:39 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/242538)
4 years, 5 months ago (2016-07-12 12:39:12 UTC) #55
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/2092993002/240001
4 years, 5 months ago (2016-07-13 02:08:07 UTC) #57
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 5 months ago (2016-07-13 04:22:15 UTC) #58
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 04:22:19 UTC) #59
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 04:25:46 UTC) #61
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/e7b920b234f45614806cc4467e3e602720839e1e
Cr-Commit-Position: refs/heads/master@{#405015}

Powered by Google App Engine
This is Rietveld 408576698