Lines Matching full:cache
34 // Instead of providing accessors, we make all members of Cache public.
35 // This will make it easier to track WebCore changes to the Cache class.
36 // FIXME: We should introduce public getters on the Cache class.
38 #include "Cache.h"
45 // A helper method for coverting a Cache::TypeStatistic to a
47 static void ToResourceTypeStat(const Cache::TypeStatistic& from,
59 Cache* cache = WebCore::cache();
60 if (cache)
61 cache->setCapacities(static_cast<unsigned int>(minDeadCapacity),
68 Cache* cache = WebCore::cache();
69 if (cache && !cache->disabled()) {
71 // remove from the cache items that won't actually be freed from memory
74 unsigned minDeadCapacity = cache->m_minDeadCapacity;
75 unsigned maxDeadCapacity = cache->m_maxDeadCapacity;
76 unsigned capacity = cache->m_capacity;
77 cache->setCapacities(0, 0, 0); // Will prune the cache.
78 cache->setCapacities(minDeadCapacity, maxDeadCapacity, capacity);
86 Cache* cache = WebCore::cache();
87 if (cache) {
88 result->minDeadCapacity = cache->m_minDeadCapacity;
89 result->maxDeadCapacity = cache->m_maxDeadCapacity;
90 result->capacity = cache->m_capacity;
91 result->liveSize = cache->m_liveSize;
92 result->deadSize = cache->m_deadSize;
99 Cache* cache = WebCore::cache();
100 if (cache) {
101 Cache::Statistics stats = cache->getStatistics();