12015-02-16 Chris Dumez <cdumez@apple.com>
2
3 Keep all memory cache resources in ListHashSets
4 https://bugs.webkit.org/show_bug.cgi?id=141667
5
6 Reviewed by NOBODY (OOPS!).
7
8 Keep all memory cache resources in ListHashSets instead of manual linked
9 lists. This simplifies the code a lot and is also more efficient for
10 retrieving / removing particular CachedResources.
11
12 * loader/cache/CachedResource.cpp:
13 (WebCore::CachedResource::CachedResource):
14 * loader/cache/CachedResource.h:
15 * loader/cache/MemoryCache.cpp:
16 (WebCore::MemoryCache::pruneDeadResourcesToSize):
17 (WebCore::MemoryCache::removeFromLRUList):
18 (WebCore::MemoryCache::insertInLRUList):
19 (WebCore::MemoryCache::dumpLRULists):
20 (WebCore::MemoryCache::lruListFor): Deleted.
21 * loader/cache/MemoryCache.h:
22