| 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_THUNKS_EXTENSION_H | 5 #ifndef BASE_ALLOCATOR_ALLOCATOR_THUNKS_EXTENSION_H |
| 6 #define BASE_ALLOCATOR_ALLOCATOR_THUNKS_EXTENSION_H | 6 #define BASE_ALLOCATOR_ALLOCATOR_THUNKS_EXTENSION_H |
| 7 #pragma once | |
| 8 | 7 |
| 9 namespace base { | 8 namespace base { |
| 10 namespace allocator { | 9 namespace allocator { |
| 11 namespace thunks { | 10 namespace thunks { |
| 12 | 11 |
| 13 // WARNING: You probably don't want to use this file unless you are routing a | 12 // WARNING: You probably don't want to use this file unless you are routing a |
| 14 // new allocator extension from a specific allocator implementation to base. | 13 // new allocator extension from a specific allocator implementation to base. |
| 15 // See allocator_extension.h to see the interface that base exports. | 14 // See allocator_extension.h to see the interface that base exports. |
| 16 | 15 |
| 17 typedef void GetStatsFunction(char*, int); | 16 typedef void GetStatsFunction(char*, int); |
| 18 void SetGetStatsFunction(GetStatsFunction* get_stats_function); | 17 void SetGetStatsFunction(GetStatsFunction* get_stats_function); |
| 19 GetStatsFunction* GetGetStatsFunction(); | 18 GetStatsFunction* GetGetStatsFunction(); |
| 20 | 19 |
| 21 typedef void ReleaseFreeMemoryFunction(); | 20 typedef void ReleaseFreeMemoryFunction(); |
| 22 void SetReleaseFreeMemoryFunction( | 21 void SetReleaseFreeMemoryFunction( |
| 23 ReleaseFreeMemoryFunction* release_free_memory_function); | 22 ReleaseFreeMemoryFunction* release_free_memory_function); |
| 24 ReleaseFreeMemoryFunction* GetReleaseFreeMemoryFunction(); | 23 ReleaseFreeMemoryFunction* GetReleaseFreeMemoryFunction(); |
| 25 | 24 |
| 26 } // namespace thunks | 25 } // namespace thunks |
| 27 } // namespace allocator | 26 } // namespace allocator |
| 28 } // namespace base | 27 } // namespace base |
| 29 | 28 |
| 30 #endif | 29 #endif |
| OLD | NEW |