| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BASE_ALLOCATOR_ALLOCATOR_INTERCEPTION_MAC_H_ | |
| 6 #define BASE_ALLOCATOR_ALLOCATOR_INTERCEPTION_MAC_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
| 9 | |
| 10 namespace base { | |
| 11 namespace allocator { | |
| 12 | |
| 13 // Calls the original implementation of malloc/calloc prior to interception. | |
| 14 bool UncheckedMallocMac(size_t size, void** result); | |
| 15 bool UncheckedCallocMac(size_t num_items, size_t size, void** result); | |
| 16 | |
| 17 // Intercepts calls to default and purgeable malloc zones. Intercepts Core | |
| 18 // Foundation and Objective-C allocations. | |
| 19 void InterceptAllocationsMac(); | |
| 20 } // namespace allocator | |
| 21 } // namespace base | |
| 22 | |
| 23 #endif // BASE_ALLOCATOR_ALLOCATOR_INTERCEPTION_MAC_H_ | |
| OLD | NEW |