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

Issue 1237983003: Revalidate using the same Resource, attempt #2 (Closed)

Created:
5 years, 5 months ago by Nate Chapin
Modified:
5 years, 5 months ago
Reviewers:
Yoav Weiss, Mike West
CC:
blink-reviews, blink-reviews-bindings_chromium.org, krit, f(malita), fs, gavinp+loader_chromium.org, gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, tyoshino+watch_chromium.org, vivekg_samsung, vivekg
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Revalidate using the same Resource, attempt #2 Currently, when we perform a revalidation, we create a new resource and put it in the MemoryCache in place of the resource being revalidated. If the revalidation results in a 304, we silently swap all of the clients of the revalidation to the now-revalidated resource and swap which Resource is in the MemoryCache. This changes the behavior to use the existing resource to revalidate itself, which simplifies the logic quite a bit. It also gives us the option of removing ResourcePtr (which is used to implement the silent client swap in the 304 case) and make Resources simply RefCounted in a future change. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199145

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -183 lines) Patch
M Source/bindings/core/v8/ScriptStreamer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/FontResource.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/fetch/RawResourceTest.cpp View 1 chunk +16 lines, -18 lines 0 comments Download
M Source/core/fetch/Resource.h View 6 chunks +6 lines, -18 lines 0 comments Download
M Source/core/fetch/Resource.cpp View 17 chunks +34 lines, -129 lines 2 comments Download
M Source/core/fetch/ResourceFetcher.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 4 chunks +5 lines, -13 lines 0 comments Download
M Source/core/fetch/ResourceLoader.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/fetch/ScriptResource.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/fetch/ScriptResource.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/svg/graphics/SVGImage.cpp View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Nate Chapin
https://codereview.chromium.org/1237983003/diff/1/Source/core/fetch/Resource.cpp File Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/1237983003/diff/1/Source/core/fetch/Resource.cpp#newcode291 Source/core/fetch/Resource.cpp:291: m_revalidatingRequest = ResourceRequest(); The only difference between this and ...
5 years, 5 months ago (2015-07-16 23:35:27 UTC) #2
Mike West
LGTM if the Windows failures are flakes. It's tough to tell.
5 years, 5 months ago (2015-07-17 07:27:51 UTC) #3
Yoav Weiss
https://codereview.chromium.org/1237983003/diff/1/Source/core/fetch/Resource.cpp File Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/1237983003/diff/1/Source/core/fetch/Resource.cpp#newcode291 Source/core/fetch/Resource.cpp:291: m_revalidatingRequest = ResourceRequest(); On 2015/07/16 23:35:27, Nate Chapin wrote: ...
5 years, 5 months ago (2015-07-17 08:57:03 UTC) #4
Nate Chapin
On 2015/07/17 08:57:03, Yoav Weiss wrote: > https://codereview.chromium.org/1237983003/diff/1/Source/core/fetch/Resource.cpp > File Source/core/fetch/Resource.cpp (right): > > https://codereview.chromium.org/1237983003/diff/1/Source/core/fetch/Resource.cpp#newcode291 ...
5 years, 5 months ago (2015-07-17 17:00:10 UTC) #5
Nate Chapin
On 2015/07/17 17:00:10, Nate Chapin wrote: > On 2015/07/17 08:57:03, Yoav Weiss wrote: > > ...
5 years, 5 months ago (2015-07-17 17:10:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237983003/1
5 years, 5 months ago (2015-07-17 17:11:08 UTC) #8
Yoav Weiss
On 2015/07/17 17:10:28, Nate Chapin wrote: > On 2015/07/17 17:00:10, Nate Chapin wrote: > > ...
5 years, 5 months ago (2015-07-17 21:41:26 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=199145
5 years, 5 months ago (2015-07-18 00:57:35 UTC) #10
Nate Chapin
5 years, 4 months ago (2015-07-29 18:01:52 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/1269563003/ by japhet@chromium.org.

The reason for reverting is: This caused several different regressions that are
not quick and easy to fix.

https://code.google.com/p/chromium/issues/detail?id=512459
https://code.google.com/p/chromium/issues/detail?id=512405
https://code.google.com/p/chromium/issues/detail?id=511939
https://code.google.com/p/chromium/issues/detail?id=513572.

Powered by Google App Engine
This is Rietveld 408576698