Home | History | Annotate | Download | only in loader

Lines Matching full:cache

22     pages from the web. It has a memory cache for these objects.
45 // This cache holds subresources used by Web pages: images, scripts, stylesheets, etc.
47 // The cache keeps a flexible but bounded window of dead resources that grows/shrinks
48 // depending on the live resource load. Here's an example of cache growth over time,
53 // --|----------| Cache boundary: | (objects outside this mark have been evicted)
58 class Cache : public Noncopyable {
60 friend Cache* cache();
97 // Request resources from the cache. A load will be initiated and a cache object created if the object is not
98 // found in the cache.
107 // Sets the cache's memory capacities, in bytes. These will hold only approximately,
109 // - minDeadBytes: The maximum number of bytes that dead resources should consume when the cache is under pressure.
110 // - maxDeadBytes: The maximum number of bytes that dead resources should consume when the cache is not under pressure.
111 // - totalBytes: The maximum number of bytes that the cache should consume overall.
114 // Turn the cache on and off. Disabling the cache will remove all resources from the cache. They may
132 // Remove an existing cache entry from both the resource map and from the LRU list.
144 // Called to adjust the cache totals when a resource changes size.
147 // Track decoded resources that are in the cache and referenced by a Web page.
154 // Function to collect cache statistics for the caches window in the Safari Debug menu.
163 Cache();
164 ~Cache(); // Not implemented to make sure nobody accidentally calls delete -- WebCore does not delete singletons.
185 bool m_disabled; // Whether or not the cache is enabled.
194 unsigned m_liveSize; // The number of bytes currently consumed by "live" resources in the cache.
195 unsigned m_deadSize; // The number of bytes currently consumed by "dead" resources in the cache.
197 // Size-adjusted and popularity-aware LRU list collection for cache objects. This collection can hold
205 // A URL-based map of all resources that are in the cache (including the freshest version of objects that are currently being
210 // Function to obtain the global cache.
211 Cache* cache();