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

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

Issue 649213002: Oilpan: eager resource disposal on MemoryCache eviction. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | Source/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/MemoryCache.h
diff --git a/Source/core/fetch/MemoryCache.h b/Source/core/fetch/MemoryCache.h
index f75a4e0f5dd13b4167aab2097ae91dcc2cc72859..f184080195b44d4f0bd5c6a193942f90ef820fff 100644
--- a/Source/core/fetch/MemoryCache.h
+++ b/Source/core/fetch/MemoryCache.h
@@ -74,8 +74,14 @@ enum UpdateReason {
// from MemoryCacheLRUList.
class MemoryCacheEntry final : public NoBaseWillBeGarbageCollectedFinalized<MemoryCacheEntry> {
public:
- static PassOwnPtrWillBeRawPtr<MemoryCacheEntry> create(Resource* resource) { return adoptPtrWillBeNoop(new MemoryCacheEntry(resource)); }
+ static PassOwnPtrWillBeRawPtr<MemoryCacheEntry> create(Resource* resource)
+ {
+ return adoptPtrWillBeNoop(new MemoryCacheEntry(resource));
+ }
void trace(Visitor*);
+#if ENABLE(OILPAN)
+ void dispose();
+#endif
ResourcePtr<Resource> m_resource;
bool m_inLiveDecodedResourcesList;
« no previous file with comments | « no previous file | Source/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698