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

Unified Diff: third_party/WebKit/Source/core/fetch/MemoryCache.cpp

Issue 1852663002: Oilpan: Remove WillBe types (part 9) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/MemoryCache.cpp
diff --git a/third_party/WebKit/Source/core/fetch/MemoryCache.cpp b/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
index 059fe31f4212feb268c67cbea29d35585cabaf82..035bdcf735fcd10eac197ed199985d516516a4e6 100644
--- a/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
+++ b/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
@@ -202,11 +202,11 @@ Resource* MemoryCache::resourceForURL(const KURL& resourceURL, const String& cac
return resource;
}
-WillBeHeapVector<RawPtrWillBeMember<Resource>> MemoryCache::resourcesForURL(const KURL& resourceURL)
+HeapVector<Member<Resource>> MemoryCache::resourcesForURL(const KURL& resourceURL)
{
ASSERT(WTF::isMainThread());
KURL url = removeFragmentIdentifierIfNeeded(resourceURL);
- WillBeHeapVector<RawPtrWillBeMember<Resource>> results;
+ HeapVector<Member<Resource>> results;
for (const auto& resourceMapIter : m_resourceMaps) {
if (MemoryCacheEntry* entry = resourceMapIter.value->get(url))
results.append(entry->m_resource.get());
@@ -570,7 +570,7 @@ void MemoryCache::updateDecodedResource(Resource* resource, UpdateReason reason)
void MemoryCache::removeURLFromCache(const KURL& url)
{
- WillBeHeapVector<RawPtrWillBeMember<Resource>> resources = resourcesForURL(url);
+ HeapVector<Member<Resource>> resources = resourcesForURL(url);
for (Resource* resource : resources)
memoryCache()->remove(resource);
}
@@ -771,7 +771,7 @@ void MemoryCache::dumpLRULists(bool includeLive) const
printf("\n\nList %d: ", i);
MemoryCacheEntry* current = m_allResources[i].m_tail;
while (current) {
- RefPtrWillBeRawPtr<Resource> currentResource = current->m_resource;
+ RawPtr<Resource> currentResource = current->m_resource;
if (includeLive || !currentResource->hasClientsOrObservers())
printf("(%.1fK, %.1fK, %uA, %dR, %d); ", currentResource->decodedSize() / 1024.0f, (currentResource->encodedSize() + currentResource->overheadSize()) / 1024.0f, current->m_accessCount, currentResource->hasClientsOrObservers(), currentResource->isPurgeable());
« no previous file with comments | « third_party/WebKit/Source/core/fetch/MemoryCache.h ('k') | third_party/WebKit/Source/core/fetch/MemoryCacheTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698