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

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

Issue 1125733002: Oilpan: use transition type for MemoryCache::resourcesForURL()'s result. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « Source/core/fetch/MemoryCache.h ('k') | Source/core/fetch/MemoryCacheTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/MemoryCache.cpp
diff --git a/Source/core/fetch/MemoryCache.cpp b/Source/core/fetch/MemoryCache.cpp
index 965687c25c53d60be3e7185620e72ba09ad6fdd0..de20b23e3248e1959ff3b96724dfb37776080f96 100644
--- a/Source/core/fetch/MemoryCache.cpp
+++ b/Source/core/fetch/MemoryCache.cpp
@@ -226,11 +226,11 @@ Resource* MemoryCache::resourceForURL(const KURL& resourceURL, const String& cac
return resource;
}
-WillBeHeapVector<Member<Resource>> MemoryCache::resourcesForURL(const KURL& resourceURL)
+WillBeHeapVector<RawPtrWillBeMember<Resource>> MemoryCache::resourcesForURL(const KURL& resourceURL)
{
ASSERT(WTF::isMainThread());
KURL url = removeFragmentIdentifierIfNeeded(resourceURL);
- WillBeHeapVector<Member<Resource>> results;
+ WillBeHeapVector<RawPtrWillBeMember<Resource>> results;
for (const auto& resourceMapIter : m_resourceMaps) {
if (MemoryCacheEntry* entry = resourceMapIter.value->get(url))
results.append(entry->m_resource.get());
@@ -631,7 +631,7 @@ MemoryCacheLiveResourcePriority MemoryCache::priority(Resource* resource) const
void MemoryCache::removeURLFromCache(const KURL& url)
{
- WillBeHeapVector<Member<Resource>> resources = resourcesForURL(url);
+ WillBeHeapVector<RawPtrWillBeMember<Resource>> resources = resourcesForURL(url);
for (Resource* resource : resources)
memoryCache()->remove(resource);
}
« no previous file with comments | « Source/core/fetch/MemoryCache.h ('k') | Source/core/fetch/MemoryCacheTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698