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

Issue 1319153004: Cleanup ResourceLoadPriority setting (Closed)

Created:
5 years, 3 months ago by Nate Chapin
Modified:
5 years, 3 months ago
CC:
blink-reviews, gavinp+loader_chromium.org, kinuko+watch, tyoshino+watch_chromium.org, Yoav Weiss
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Cleanup ResourceLoadPriority setting Split ResourceFetcher::loadPriority() into 3 functions: * typeToPriority(), which converts Resource::Type into its default ResourceLoadPriority * modifyPriorityForExperiments(), which contains all of the currently-running experimental logic. * loadPriority() remains the entry point, and contains permanent special cases (e.g., synchronous loads). BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201667

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Move experiments to FrameFetchContext, add test #

Patch Set 4 : More test cleanup #

Total comments: 5

Patch Set 5 : Remove secureURL #

Patch Set 6 : Guess who uploaded without compiling locally #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -196 lines) Patch
M Source/core/fetch/FetchContext.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 2 chunks +21 lines, -52 lines 0 comments Download
M Source/core/loader/FrameFetchContext.h View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M Source/core/loader/FrameFetchContext.cpp View 1 2 2 chunks +49 lines, -17 lines 0 comments Download
M Source/core/loader/FrameFetchContextTest.cpp View 1 2 3 4 5 8 chunks +159 lines, -118 lines 0 comments Download

Messages

Total messages: 30 (11 generated)
Nate Chapin
mkwst: PTAL pmeenan: I'd appreciate your opinion as to whether this is overall more readable/hackable, ...
5 years, 3 months ago (2015-08-31 18:37:25 UTC) #2
Pat Meenan
On 2015/08/31 18:37:25, Nate Chapin wrote: > mkwst: PTAL > > pmeenan: I'd appreciate your ...
5 years, 3 months ago (2015-08-31 20:15:43 UTC) #3
Nate Chapin
On 2015/08/31 20:15:43, Pat Meenan wrote: > On 2015/08/31 18:37:25, Nate Chapin wrote: > > ...
5 years, 3 months ago (2015-08-31 20:59:01 UTC) #4
Mike West
On 2015/08/31 at 20:59:01, japhet wrote: > On 2015/08/31 20:15:43, Pat Meenan wrote: > > ...
5 years, 3 months ago (2015-09-01 13:41:37 UTC) #5
Pat Meenan
On 2015/09/01 13:41:37, Mike West (buried) wrote: > On 2015/08/31 at 20:59:01, japhet wrote: > ...
5 years, 3 months ago (2015-09-01 14:11:58 UTC) #6
Pat Meenan
On 2015/09/01 14:11:58, Pat Meenan wrote: > On 2015/09/01 13:41:37, Mike West (buried) wrote: > ...
5 years, 3 months ago (2015-09-01 14:13:17 UTC) #7
Nate Chapin
Ok, updated. 1. Moved experiments to FrameFetchContext. Partly to reduce the number of functions on ...
5 years, 3 months ago (2015-09-01 22:04:56 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319153004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319153004/40001
5 years, 3 months ago (2015-09-01 22:05:38 UTC) #10
Pat Meenan
LGTM. I'm assuming the lifetime of the context is the same as the lifetime of ...
5 years, 3 months ago (2015-09-01 23:09:01 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-01 23:15:35 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319153004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319153004/60001
5 years, 3 months ago (2015-09-01 23:53:11 UTC) #15
Nate Chapin
mkwst: would you mind giving this another look, especially for the cleanup FrameFetchContextTest.cpp https://codereview.chromium.org/1319153004/diff/60001/Source/core/loader/FrameFetchContextTest.cpp File ...
5 years, 3 months ago (2015-09-01 23:54:47 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-02 01:49:52 UTC) #18
dcheng
lgtm https://codereview.chromium.org/1319153004/diff/60001/Source/core/loader/FrameFetchContextTest.cpp File Source/core/loader/FrameFetchContextTest.cpp (right): https://codereview.chromium.org/1319153004/diff/60001/Source/core/loader/FrameFetchContextTest.cpp#newcode125 Source/core/loader/FrameFetchContextTest.cpp:125: RefPtrWillBePersistent<DocumentLoader> documentLoader; It might be nice to update ...
5 years, 3 months ago (2015-09-02 17:17:12 UTC) #20
Nate Chapin
https://codereview.chromium.org/1319153004/diff/60001/Source/core/loader/FrameFetchContextTest.cpp File Source/core/loader/FrameFetchContextTest.cpp (right): https://codereview.chromium.org/1319153004/diff/60001/Source/core/loader/FrameFetchContextTest.cpp#newcode140 Source/core/loader/FrameFetchContextTest.cpp:140: : secureURL(ParsedURLString, "https://secureorigin.test/image.png") On 2015/09/02 17:17:12, dcheng wrote: > ...
5 years, 3 months ago (2015-09-02 17:29:55 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319153004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319153004/80001
5 years, 3 months ago (2015-09-02 17:30:17 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/111065) linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 3 months ago (2015-09-02 17:44:55 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319153004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319153004/100001
5 years, 3 months ago (2015-09-02 19:46:42 UTC) #29
commit-bot: I haz the power
5 years, 3 months ago (2015-09-02 20:58:30 UTC) #30
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201667

Powered by Google App Engine
This is Rietveld 408576698