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..00e47a26a44791e87045d7a15adeb99257bb93fa 100644 |
--- a/base/allocator/allocator_interception_mac.h |
+++ b/base/allocator/allocator_interception_mac.h |
@@ -36,8 +36,13 @@ bool UncheckedCallocMac(size_t num_items, size_t size, void** result); |
// performs that interception. |
BASE_EXPORT void InterceptAllocationsMac(); |
+// Intercepts all future malloc zone registrations. |
+BASE_EXPORT void InterceptNewlyRegisteredMallocZones( |
+ const MallocZoneFunctions* functions); |
+ |
// Updates all malloc zones to use their original functions. |
-// Also calls ClearAllMallocZonesForTesting. |
+// Also calls ClearAllMallocZonesForTesting and |
+// StopMallocZoneRegistrationInterceptionForTesting. |
BASE_EXPORT void UninterceptMallocZonesForTesting(); |
} // namespace allocator |