Searched refs:alloc_hook (Results 1 – 4 of 4) sorted by relevance
38 void SetHooks(AllocHookFunc alloc_hook, FreeHookFunc free_hook) { in SetHooks() argument42 auto prev_alloc_hook = MallocHook::SetNewHook(alloc_hook); in SetHooks()43 if (alloc_hook) in SetHooks()
34 BASE_EXPORT void SetHooks(AllocHookFunc alloc_hook, FreeHookFunc free_hook);
82 void PartitionAllocHooks::SetObserverHooks(AllocationObserverHook* alloc_hook, in SetObserverHooks() argument90 (!alloc_hook && !free_hook)); in SetObserverHooks()91 allocation_observer_hook_ = alloc_hook; in SetObserverHooks()97 void PartitionAllocHooks::SetOverrideHooks(AllocationOverrideHook* alloc_hook, in SetOverrideHooks() argument104 (!alloc_hook && !free_hook && !realloc_hook)); in SetOverrideHooks()105 allocation_override_hook_ = alloc_hook; in SetOverrideHooks()
248 static void SetObserverHooks(AllocationObserverHook* alloc_hook,250 static void SetOverrideHooks(AllocationOverrideHook* alloc_hook,