OLD | NEW |
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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 void willProcessTask() override; | 230 void willProcessTask() override; |
231 void didProcessTask() override; | 231 void didProcessTask() override; |
232 | 232 |
233 void pruneAll(); | 233 void pruneAll(); |
234 | 234 |
235 void updateFramePaintTimestamp(); | 235 void updateFramePaintTimestamp(); |
236 | 236 |
237 // Take memory usage snapshot for tracing. | 237 // Take memory usage snapshot for tracing. |
238 void onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*); | 238 void onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*); |
239 | 239 |
| 240 bool isInSameLRUListForTest(const Resource*, const Resource*); |
240 private: | 241 private: |
241 enum PruneStrategy { | 242 enum PruneStrategy { |
242 // Automatically decide how much to prune. | 243 // Automatically decide how much to prune. |
243 AutomaticPrune, | 244 AutomaticPrune, |
244 // Maximally prune resources. | 245 // Maximally prune resources. |
245 MaximalPrune | 246 MaximalPrune |
246 }; | 247 }; |
247 | 248 |
248 MemoryCache(); | 249 MemoryCache(); |
249 | 250 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 // Returns the global cache. | 330 // Returns the global cache. |
330 CORE_EXPORT MemoryCache* memoryCache(); | 331 CORE_EXPORT MemoryCache* memoryCache(); |
331 | 332 |
332 // Sets the global cache, used to swap in a test instance. Returns the old | 333 // Sets the global cache, used to swap in a test instance. Returns the old |
333 // MemoryCache object. | 334 // MemoryCache object. |
334 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); | 335 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); |
335 | 336 |
336 } | 337 } |
337 | 338 |
338 #endif | 339 #endif |
OLD | NEW |