Index: base/process/memory.h |
diff --git a/base/process/memory.h b/base/process/memory.h |
index 100d9c72f43910c0c351e84c252169f3e3be6052..da27151d1b1b31b3500bf0c59151d702c2a2c61e 100644 |
--- a/base/process/memory.h |
+++ b/base/process/memory.h |
@@ -39,6 +39,10 @@ BASE_EXPORT void EnableTerminationOnHeapCorruption(); |
// Turns on process termination if memory runs out. |
BASE_EXPORT void EnableTerminationOnOutOfMemory(); |
+// Terminates process. Should be called only for out of memory errors. |
+// Crash reporting classifies such crashes as OOM. |
+BASE_EXPORT void TerminateBecauseOutOfMemory(size_t size); |
+ |
#if defined(OS_WIN) |
// Returns the module handle to which an address belongs. The reference count |
// of the module is not incremented. |