| Index: base/allocator/allocator_extension_thunks.h
|
| diff --git a/base/allocator/allocator_extension_thunks.h b/base/allocator/allocator_extension_thunks.h
|
| index 4a46b450dbd5e04d64aee9129837f5ef93841e7d..3b0e4edc088c276378ef2e1a274368e3431599da 100644
|
| --- a/base/allocator/allocator_extension_thunks.h
|
| +++ b/base/allocator/allocator_extension_thunks.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef BASE_ALLOCATOR_ALLOCATOR_THUNKS_EXTENSION_H
|
| #define BASE_ALLOCATOR_ALLOCATOR_THUNKS_EXTENSION_H
|
|
|
| +#include <stddef.h> // for size_t
|
| +
|
| namespace base {
|
| namespace allocator {
|
| namespace thunks {
|
| @@ -13,14 +15,18 @@ namespace thunks {
|
| // new allocator extension from a specific allocator implementation to base.
|
| // See allocator_extension.h to see the interface that base exports.
|
|
|
| -typedef void GetStatsFunction(char*, int);
|
| -void SetGetStatsFunction(GetStatsFunction* get_stats_function);
|
| -GetStatsFunction* GetGetStatsFunction();
|
| +typedef bool (*GetPropertyFunction)(const char* name, size_t* value);
|
| +void SetGetPropertyFunction(GetPropertyFunction get_property_function);
|
| +GetPropertyFunction GetGetPropertyFunction();
|
| +
|
| +typedef void (*GetStatsFunction)(char* buffer, int buffer_length);
|
| +void SetGetStatsFunction(GetStatsFunction get_stats_function);
|
| +GetStatsFunction GetGetStatsFunction();
|
|
|
| -typedef void ReleaseFreeMemoryFunction();
|
| +typedef void (*ReleaseFreeMemoryFunction)();
|
| void SetReleaseFreeMemoryFunction(
|
| - ReleaseFreeMemoryFunction* release_free_memory_function);
|
| -ReleaseFreeMemoryFunction* GetReleaseFreeMemoryFunction();
|
| + ReleaseFreeMemoryFunction release_free_memory_function);
|
| +ReleaseFreeMemoryFunction GetReleaseFreeMemoryFunction();
|
|
|
| } // namespace thunks
|
| } // namespace allocator
|
|
|