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

Issue 2676163002: Refactor the forPreload flag to mean speculative preload. (Closed)

Created:
3 years, 10 months ago by Yoav Weiss
Modified:
3 years, 10 months ago
CC:
chromium-reviews, gavinp+prerender_chromium.org, blink-reviews-html_chromium.org, loading-reviews+parser_chromium.org, loading-reviews_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, kinuko+watch, Nate Chapin, tyoshino+watch_chromium.org, Pat Meenan
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor the forPreload to mean speculative preload. Currently the forPreload() flag means both speculative preload as well as link preload. as the linkPreload flag indicates link preload, the forPreload flag is confusing. This CL renames the flag to speculativePreload and makes sure that code that currently uses it uses the appropriate signal: link, speculative or both. BUG=675883 Review-Url: https://codereview.chromium.org/2676163002 Cr-Commit-Position: refs/heads/master@{#448595} Committed: https://chromium.googlesource.com/chromium/src/+/58831855e1f0366cf7a9eae129c6d10b711d3195

Patch Set 1 #

Total comments: 16

Patch Set 2 : Review comments #

Total comments: 12

Patch Set 3 : Review comments #

Total comments: 6

Patch Set 4 : Renamed ReportingPolicy and moved comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -69 lines) Patch
M third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 8 chunks +16 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/PingLoader.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ImageResource.cpp View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/FetchContext.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/FetchContext.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/FetchRequest.h View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/FetchRequest.cpp View 4 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/MockFetchContext.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp View 1 2 3 15 chunks +38 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/ResourceLoader.cpp View 1 2 3 3 chunks +15 lines, -7 lines 0 comments Download

Messages

Total messages: 43 (26 generated)
Yoav Weiss
Hey Charlie, Can you take a look to see this makes sense? I want to ...
3 years, 10 months ago (2017-02-05 08:27:07 UTC) #3
Yoav Weiss
3 years, 10 months ago (2017-02-05 08:27:31 UTC) #5
Charlie Harrison
Generally LG. Feel free to push back on comment nits :P I'll take a stab ...
3 years, 10 months ago (2017-02-05 18:39:12 UTC) #9
Yoav Weiss
https://codereview.chromium.org/2676163002/diff/1/third_party/WebKit/Source/core/loader/LinkLoader.cpp File third_party/WebKit/Source/core/loader/LinkLoader.cpp (left): https://codereview.chromium.org/2676163002/diff/1/third_party/WebKit/Source/core/loader/LinkLoader.cpp#oldcode342 third_party/WebKit/Source/core/loader/LinkLoader.cpp:342: linkRequest.setForPreload(true, monotonicallyIncreasingTime()); On 2017/02/05 18:39:11, Charlie Harrison-slow til Feb3 ...
3 years, 10 months ago (2017-02-06 09:58:35 UTC) #10
Charlie Harrison
LGTM https://codereview.chromium.org/2676163002/diff/1/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp File third_party/WebKit/Source/core/loader/resource/ImageResource.cpp (right): https://codereview.chromium.org/2676163002/diff/1/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp#newcode158 third_party/WebKit/Source/core/loader/resource/ImageResource.cpp:158: request.options(), request.speculativePreload(), On 2017/02/06 09:58:35, Yoav Weiss wrote: ...
3 years, 10 months ago (2017-02-06 19:54:16 UTC) #15
Yoav Weiss
https://codereview.chromium.org/2676163002/diff/20001/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h File third_party/WebKit/Source/platform/loader/fetch/FetchContext.h (right): https://codereview.chromium.org/2676163002/diff/20001/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h#newcode127 third_party/WebKit/Source/platform/loader/fetch/FetchContext.h:127: enum class LoggingPolicy { SuppressLogging, Log }; On 2017/02/06 ...
3 years, 10 months ago (2017-02-06 23:15:49 UTC) #16
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/2676163002/40001
3 years, 10 months ago (2017-02-06 23:18:42 UTC) #21
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/357960)
3 years, 10 months ago (2017-02-06 23:28:39 UTC) #23
Yoav Weiss
Hey Mike, Can you take a look? (need an owner, since the fetch/ code moved ...
3 years, 10 months ago (2017-02-07 04:54:03 UTC) #25
Takashi Toyoshima
Thank you for working on this. I added yhirano@ to the reviewer list since he ...
3 years, 10 months ago (2017-02-07 07:24:49 UTC) #27
kinuko
lgtm % nits Nice cleanup! https://codereview.chromium.org/2676163002/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2676163002/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode751 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:751: // items. nit: update ...
3 years, 10 months ago (2017-02-07 08:20:26 UTC) #29
yhirano
lgtm https://codereview.chromium.org/2676163002/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2676163002/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode750 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:750: // Don't send CSP messages for preloads, we ...
3 years, 10 months ago (2017-02-07 08:34:07 UTC) #30
kinuko
On 2017/02/07 08:34:07, yhirano wrote: > lgtm > > https://codereview.chromium.org/2676163002/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp > File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): > ...
3 years, 10 months ago (2017-02-07 08:41:13 UTC) #31
Yoav Weiss
https://codereview.chromium.org/2676163002/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2676163002/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode750 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:750: // Don't send CSP messages for preloads, we might ...
3 years, 10 months ago (2017-02-07 09:10:27 UTC) #32
Yoav Weiss
On 2017/02/07 09:10:27, Yoav Weiss wrote: > https://codereview.chromium.org/2676163002/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp > File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): > > https://codereview.chromium.org/2676163002/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode750 ...
3 years, 10 months ago (2017-02-07 09:13:08 UTC) #33
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/2676163002/60001
3 years, 10 months ago (2017-02-07 11:01:09 UTC) #40
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 11:06:18 UTC) #43
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/58831855e1f0366cf7a9eae129c6...

Powered by Google App Engine
This is Rietveld 408576698