|
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
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
|
Total messages: 11 (2 generated)
|