Index: base/allocator/allocator_interception_mac.h |
diff --git a/base/allocator/allocator_interception_mac.h b/base/allocator/allocator_interception_mac.h |
index 8867f3823180a9f890c3fb7190ea084a0c128b04..68f1d53bb6094424a8a2b7c911aaec45e0c823da 100644 |
--- a/base/allocator/allocator_interception_mac.h |
+++ b/base/allocator/allocator_interception_mac.h |
@@ -8,6 +8,7 @@ |
#include <stddef.h> |
#include "base/base_export.h" |
+#include "third_party/apple_apsl/malloc.h" |
namespace base { |
namespace allocator { |
@@ -40,6 +41,15 @@ BASE_EXPORT void InterceptAllocationsMac(); |
// Also calls ClearAllMallocZonesForTesting. |
BASE_EXPORT void UninterceptMallocZonesForTesting(); |
+// Periodically checks for, and shims new malloc zones. Stops checking after 1 |
+// minute. |
+BASE_EXPORT void PeriodicallyShimNewMallocZones(); |
+ |
+// Exposed for testing. |
+BASE_EXPORT void ShimNewMallocZones(); |
+BASE_EXPORT void ReplaceZoneFunctions(ChromeMallocZone* zone, |
+ const MallocZoneFunctions* functions); |
+ |
} // namespace allocator |
} // namespace base |