Index: trunk/src/base/memory/discardable_memory.h |
=================================================================== |
--- trunk/src/base/memory/discardable_memory.h (revision 267174) |
+++ trunk/src/base/memory/discardable_memory.h (working copy) |
@@ -17,7 +17,7 @@ |
enum DiscardableMemoryType { |
DISCARDABLE_MEMORY_TYPE_NONE, |
- DISCARDABLE_MEMORY_TYPE_ASHMEM, |
+ DISCARDABLE_MEMORY_TYPE_ANDROID, |
DISCARDABLE_MEMORY_TYPE_MAC, |
DISCARDABLE_MEMORY_TYPE_EMULATED, |
DISCARDABLE_MEMORY_TYPE_MALLOC |
@@ -115,6 +115,10 @@ |
// Testing utility calls. |
+ // Check whether a purge of all discardable memory in the system is supported. |
+ // Use only for testing! |
+ static bool PurgeForTestingSupported(); |
+ |
// Purge all discardable memory in the system. This call has global effects |
// across all running processes, so it should only be used for testing! |
static void PurgeForTesting(); |