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

Issue 1997833002: Don't keep a separate m_revalidatingRequest on Resource (Closed)

Created:
4 years, 7 months ago by Nate Chapin
Modified:
4 years, 6 months ago
Reviewers:
hiroshige, yhirano
CC:
chromium-reviews, tyoshino+watch_chromium.org, Yoav Weiss, blink-reviews-bindings_chromium.org, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't keep a separate m_revalidatingRequest on Resource Have Resource::setRevalidatingRequest() just overwrite m_resourceRequest, and keep an m_isRevalidating bit to track whether a revalidation is progress. Ideally we'd get to a point where the m_isRevalidating bit isn't needed, or at least doesn't need to be accessible outside of Resource and its subclasses. BUG= Committed: https://crrev.com/3a7c82704c5428a6e7be008e9a65e58f30ef285f Cr-Commit-Position: refs/heads/master@{#398173}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address yhirano's comments #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -26 lines) Patch
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.h View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 2 12 chunks +19 lines, -23 lines 0 comments Download

Messages

Total messages: 37 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997833002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997833002/1
4 years, 7 months ago (2016-05-19 20:08:25 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-19 21:45:38 UTC) #4
Nate Chapin
Does this seem reasonable? https://codereview.chromium.org/1997833002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp (left): https://codereview.chromium.org/1997833002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp#oldcode656 third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp:656: if (resource->isCacheValidator()) { I think ...
4 years, 7 months ago (2016-05-19 22:18:39 UTC) #7
yhirano
https://codereview.chromium.org/1997833002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp (left): https://codereview.chromium.org/1997833002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp#oldcode656 third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp:656: if (resource->isCacheValidator()) { On 2016/05/19 22:18:38, Nate Chapin wrote: ...
4 years, 7 months ago (2016-05-23 11:40:38 UTC) #8
yhirano1
Generally looking good but I don't understand ScriptStreamer change. I'll try to understand tomorrow.
4 years, 7 months ago (2016-05-23 11:42:17 UTC) #9
yhirano
https://codereview.chromium.org/1997833002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp (left): https://codereview.chromium.org/1997833002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp#oldcode656 third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp:656: if (resource->isCacheValidator()) { On 2016/05/23 11:40:38, yhirano wrote: > ...
4 years, 7 months ago (2016-05-24 11:18:52 UTC) #10
Nate Chapin
https://codereview.chromium.org/1997833002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp (left): https://codereview.chromium.org/1997833002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp#oldcode656 third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp:656: if (resource->isCacheValidator()) { On 2016/05/24 11:18:51, yhirano wrote: > ...
4 years, 6 months ago (2016-05-26 21:43:03 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997833002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997833002/20001
4 years, 6 months ago (2016-05-26 21:43:28 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-27 00:21:41 UTC) #16
commit-bot: I haz the power
Dry run: None
4 years, 6 months ago (2016-05-27 00:22:02 UTC) #17
yhirano
lgtm https://codereview.chromium.org/1997833002/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/1997833002/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode703 third_party/WebKit/Source/core/fetch/Resource.cpp:703: m_clients.add(client); On 2016/05/26 21:43:02, Nate Chapin wrote: > ...
4 years, 6 months ago (2016-05-27 01:55:56 UTC) #18
hiroshige
This CL looks good, but conflicts with my CL [1]. Because I want to merge ...
4 years, 6 months ago (2016-05-27 07:16:01 UTC) #19
Nate Chapin
On 2016/05/27 07:16:01, hiroshige wrote: > This CL looks good, but conflicts with my CL ...
4 years, 6 months ago (2016-05-27 17:44:46 UTC) #20
hiroshige
On 2016/05/27 17:44:46, Nate Chapin wrote: > On 2016/05/27 07:16:01, hiroshige wrote: > > This ...
4 years, 6 months ago (2016-06-03 05:38:57 UTC) #21
Nate Chapin
On 2016/06/03 05:38:57, hiroshige (slow) wrote: > On 2016/05/27 17:44:46, Nate Chapin wrote: > > ...
4 years, 6 months ago (2016-06-03 19:33:39 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997833002/40001
4 years, 6 months ago (2016-06-03 19:34:25 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/233369)
4 years, 6 months ago (2016-06-04 01:52:34 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997833002/40001
4 years, 6 months ago (2016-06-06 17:11:58 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/82600)
4 years, 6 months ago (2016-06-06 18:24:08 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997833002/40001
4 years, 6 months ago (2016-06-06 19:21:29 UTC) #33
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-07 00:26:40 UTC) #35
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 00:28:50 UTC) #37
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3a7c82704c5428a6e7be008e9a65e58f30ef285f
Cr-Commit-Position: refs/heads/master@{#398173}

Powered by Google App Engine
This is Rietveld 408576698