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

Unified Diff: base/allocator/allocator_interception_mac.h

Issue 2676093003: mac: Hook up allocator shim during app startup. (Closed)
Patch Set: Remove unused include. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/allocator/allocator_check.cc ('k') | base/allocator/allocator_interception_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/allocator/allocator_interception_mac.h
diff --git a/base/allocator/allocator_interception_mac.h b/base/allocator/allocator_interception_mac.h
index 694d66b34be23f32c8ea7217d4b9a75289441222..ff9b0b1b85c76e19c498bc89cb2e9671ac07a87a 100644
--- a/base/allocator/allocator_interception_mac.h
+++ b/base/allocator/allocator_interception_mac.h
@@ -8,6 +8,7 @@
#include <malloc/malloc.h>
#include <stddef.h>
+#include "base/base_export.h"
#include "third_party/apple_apsl/malloc.h"
namespace base {
@@ -58,6 +59,8 @@ void StoreFunctionsForDefaultZone(MallocZoneFunctions* functions);
// |functions|.
void ReplaceFunctionsForDefaultZone(const MallocZoneFunctions* functions);
+extern bool g_replaced_default_zone;
+
// Calls the original implementation of malloc/calloc prior to interception.
bool UncheckedMallocMac(size_t size, void** result);
bool UncheckedCallocMac(size_t num_items, size_t size, void** result);
@@ -66,7 +69,7 @@ bool UncheckedCallocMac(size_t num_items, size_t size, void** result);
// Foundation and Objective-C allocations.
// Has no effect on the default malloc zone if the allocator shim already
// performs that interception.
-void InterceptAllocationsMac();
+BASE_EXPORT void InterceptAllocationsMac();
} // namespace allocator
} // namespace base
« no previous file with comments | « base/allocator/allocator_check.cc ('k') | base/allocator/allocator_interception_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698