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

Issue 640463003: MemoryCache: Enable MemoryCache to have multiple isolated resource maps (Closed)

Created:
6 years, 2 months ago by nhiroki
Modified:
6 years, 1 month ago
Reviewers:
Nate Chapin, Mike West
CC:
blink-reviews, Nate Chapin, gavinp+loader_chromium.org, serviceworker-reviews, dominicc (has gone to gerrit), horo, yhirano
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

MemoryCache: Enable MemoryCache to have multiple isolated resource maps This CL enables MemoryCache to store multiple resources for 1 URL so that Service Worker can utilize the cache system. Patch dependency [1] Chromium(Get ServiceWorkerID): https://codereview.chromium.org/669303003/ [2] Blink(Get ServiceWorkerID): https://codereview.chromium.org/650033007/ [3] Blink(Tweak MemoryCache): THIS PATCH BUG=423219 TEST=webkit_unit_tests --gtest_filter=MemoryCacheTest.*:ResourceFetcherTest.*:CachingCorrectnessTest.*:ImageResourceTest.*:RawResourceTest.* TEST=run_webkit_tests.py --debug http/tests/serviceworker/chromium/memory-cache.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184613

Patch Set 1 : successfully compile and run unittests #

Patch Set 2 : remake #

Total comments: 32

Patch Set 3 : rebase #

Patch Set 4 : address review comments #

Patch Set 5 : add more unittests #

Patch Set 6 : rebase #

Patch Set 7 : tweak variable names #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -111 lines) Patch
M LayoutTests/http/tests/serviceworker/chromium/memory-cache.html View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M Source/core/fetch/MemoryCache.h View 1 2 3 4 chunks +10 lines, -2 lines 0 comments Download
M Source/core/fetch/MemoryCache.cpp View 1 2 3 4 5 6 12 chunks +113 lines, -53 lines 0 comments Download
M Source/core/fetch/MemoryCacheTest.cpp View 1 2 3 4 8 chunks +198 lines, -24 lines 0 comments Download
M Source/core/fetch/Resource.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M Source/core/fetch/Resource.cpp View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M Source/core/fetch/ResourceFetcher.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 11 chunks +20 lines, -22 lines 0 comments Download
M Source/core/html/parser/HTMLSrcsetParser.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorResourceAgent.cpp View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M Source/core/loader/ImageLoader.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 34 (21 generated)
nhiroki
Hi Nate and Mike, Could you take a look at this WIP CL? I'd like ...
6 years, 2 months ago (2014-10-21 11:13:30 UTC) #16
Mike West
Thanks for sending this out! 1. What does the performance impact look like? It seems ...
6 years, 2 months ago (2014-10-21 13:18:24 UTC) #17
nhiroki
Thank you for your comments! Replied inline. On 2014/10/21 13:18:24, Mike West wrote: > Thanks ...
6 years, 2 months ago (2014-10-22 11:47:31 UTC) #18
nhiroki
Brushed up the entire implementation and removed the WIP mark. Could you take another look? ...
6 years, 2 months ago (2014-10-24 07:10:10 UTC) #19
nhiroki
+dominicc@ and horo@ for reviews from ServiceWorker POV.
6 years, 2 months ago (2014-10-24 07:12:33 UTC) #21
Mike West
The code change looks pretty reasonable, thanks. I'm still quite curious about performance numbers. I'm ...
6 years, 2 months ago (2014-10-24 12:43:00 UTC) #23
nhiroki
Thank you for reviewing! Updated. https://codereview.chromium.org/640463003/diff/290001/Source/core/fetch/MemoryCache.cpp File Source/core/fetch/MemoryCache.cpp (right): https://codereview.chromium.org/640463003/diff/290001/Source/core/fetch/MemoryCache.cpp#newcode164 Source/core/fetch/MemoryCache.cpp:164: m_resources.add(cacheIdentifier, adoptPtrWillBeNoop(new ResourceMap())); On ...
6 years, 1 month ago (2014-10-27 14:30:14 UTC) #27
nhiroki
On 2014/10/24 12:43:00, Mike West wrote: > The code change looks pretty reasonable, thanks. I'm ...
6 years, 1 month ago (2014-10-27 14:43:57 UTC) #28
nhiroki
On 2014/10/27 14:43:57, nhiroki wrote: > On 2014/10/24 12:43:00, Mike West wrote: > > I'm ...
6 years, 1 month ago (2014-10-28 15:10:50 UTC) #29
Mike West
LGTM, thank you for both the performance numbers and the additional tests. I still think ...
6 years, 1 month ago (2014-10-29 07:24:16 UTC) #30
nhiroki
On 2014/10/29 07:24:16, Mike West (OOO until 3rd) wrote: > LGTM, thank you for both ...
6 years, 1 month ago (2014-10-29 23:30:45 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/640463003/450001
6 years, 1 month ago (2014-10-29 23:55:05 UTC) #33
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 01:47:42 UTC) #34
Message was sent while issue was closed.
Committed patchset #7 (id:450001) as 184613

Powered by Google App Engine
This is Rietveld 408576698