Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: base/allocator/allocator_interception_mac.h

Issue 2658083002: Revert of Move logic from memory_mac to allocator_interception_mac. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/BUILD.gn ('k') | base/allocator/allocator_interception_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | base/allocator/allocator_interception_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698