OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BASE_ALLOCATOR_ALLOCATOR_EXTENSION_THUNKS_H_ | 5 #ifndef BASE_ALLOCATOR_ALLOCATOR_EXTENSION_THUNKS_H_ |
6 #define BASE_ALLOCATOR_ALLOCATOR_EXTENSION_THUNKS_H_ | 6 #define BASE_ALLOCATOR_ALLOCATOR_EXTENSION_THUNKS_H_ |
7 | 7 |
8 #include <stddef.h> // for size_t | 8 #include <stddef.h> // for size_t |
9 | 9 |
10 namespace base { | 10 namespace base { |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 typedef void (*GetStatsFunction)(char* buffer, int buffer_length); | 23 typedef void (*GetStatsFunction)(char* buffer, int buffer_length); |
24 void SetGetStatsFunction(GetStatsFunction get_stats_function); | 24 void SetGetStatsFunction(GetStatsFunction get_stats_function); |
25 GetStatsFunction GetGetStatsFunction(); | 25 GetStatsFunction GetGetStatsFunction(); |
26 | 26 |
27 typedef void (*ReleaseFreeMemoryFunction)(); | 27 typedef void (*ReleaseFreeMemoryFunction)(); |
28 void SetReleaseFreeMemoryFunction( | 28 void SetReleaseFreeMemoryFunction( |
29 ReleaseFreeMemoryFunction release_free_memory_function); | 29 ReleaseFreeMemoryFunction release_free_memory_function); |
30 ReleaseFreeMemoryFunction GetReleaseFreeMemoryFunction(); | 30 ReleaseFreeMemoryFunction GetReleaseFreeMemoryFunction(); |
31 | 31 |
| 32 typedef bool (*GetNumericPropertyFunction)(const char* name, size_t* value); |
| 33 void SetGetNumericPropertyFunction( |
| 34 GetNumericPropertyFunction get_numeric_property_function); |
| 35 GetNumericPropertyFunction GetGetNumericPropertyFunction(); |
| 36 |
32 } // namespace thunks | 37 } // namespace thunks |
33 } // namespace allocator | 38 } // namespace allocator |
34 } // namespace base | 39 } // namespace base |
35 | 40 |
36 #endif // BASE_ALLOCATOR_ALLOCATOR_EXTENSION_THUNKS_H_ | 41 #endif // BASE_ALLOCATOR_ALLOCATOR_EXTENSION_THUNKS_H_ |
OLD | NEW |