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

Side by Side Diff: sky/engine/core/fetch/MemoryCache.h

Issue 683703003: Remove various Heap* types. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/dom/ExecutionContext.cpp ('k') | sky/engine/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
4 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 4 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
5 5
6 This library is free software; you can redistribute it and/or 6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public 7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either 8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version. 9 version 2 of the License, or (at your option) any later version.
10 10
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 // Lists just for live resources with decoded data. Access to this list is b ased off of painting the resource. 271 // Lists just for live resources with decoded data. Access to this list is b ased off of painting the resource.
272 // The lists are ordered by decode priority, with higher indices having high er priorities. 272 // The lists are ordered by decode priority, with higher indices having high er priorities.
273 MemoryCacheLRUList m_liveDecodedResources[MemoryCacheLiveResourcePriorityHig h + 1]; 273 MemoryCacheLRUList m_liveDecodedResources[MemoryCacheLiveResourcePriorityHig h + 1];
274 274
275 // A URL-based map of all resources that are in the cache (including the fre shest version of objects that are currently being 275 // A URL-based map of all resources that are in the cache (including the fre shest version of objects that are currently being
276 // referenced by a Web page). 276 // referenced by a Web page).
277 typedef HashMap<String, OwnPtr<MemoryCacheEntry> > ResourceMap; 277 typedef HashMap<String, OwnPtr<MemoryCacheEntry> > ResourceMap;
278 ResourceMap m_resources; 278 ResourceMap m_resources;
279 279
280 #if ENABLE(OILPAN)
281 // Unlike m_allResources, m_liveResources is a set of Resource objects which
282 // should not be deleted. m_allResources only contains on-cache Resource
283 // objects.
284 // FIXME: Can we remove manual lifetime management of Resource and this?
285 HeapHashSet<Member<Resource> > m_liveResources;
286 friend RawPtr<MemoryCache> replaceMemoryCacheForTesting(RawPtr<MemoryCache>) ;
287 #endif
288
289 friend class MemoryCacheTest; 280 friend class MemoryCacheTest;
290 #ifdef MEMORY_CACHE_STATS 281 #ifdef MEMORY_CACHE_STATS
291 Timer<MemoryCache> m_statsTimer; 282 Timer<MemoryCache> m_statsTimer;
292 #endif 283 #endif
293 }; 284 };
294 285
295 // Returns the global cache. 286 // Returns the global cache.
296 MemoryCache* memoryCache(); 287 MemoryCache* memoryCache();
297 288
298 // Sets the global cache, used to swap in a test instance. Returns the old 289 // Sets the global cache, used to swap in a test instance. Returns the old
299 // MemoryCache object. 290 // MemoryCache object.
300 PassOwnPtr<MemoryCache> replaceMemoryCacheForTesting(PassOwnPtr<MemoryCache>); 291 PassOwnPtr<MemoryCache> replaceMemoryCacheForTesting(PassOwnPtr<MemoryCache>);
301 292
302 } 293 }
303 294
304 #endif 295 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/dom/ExecutionContext.cpp ('k') | sky/engine/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698