| 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 #include "base/allocator/allocator_extension.h" | 5 #include "base/allocator/allocator_extension.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace base { | 9 namespace base { |
| 10 namespace allocator { | 10 namespace allocator { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 thunks::SetGetStatsFunction(get_stats_function); | 45 thunks::SetGetStatsFunction(get_stats_function); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void SetReleaseFreeMemoryFunction( | 48 void SetReleaseFreeMemoryFunction( |
| 49 thunks::ReleaseFreeMemoryFunction release_free_memory_function) { | 49 thunks::ReleaseFreeMemoryFunction release_free_memory_function) { |
| 50 DCHECK_EQ(thunks::GetReleaseFreeMemoryFunction(), | 50 DCHECK_EQ(thunks::GetReleaseFreeMemoryFunction(), |
| 51 reinterpret_cast<thunks::ReleaseFreeMemoryFunction>(NULL)); | 51 reinterpret_cast<thunks::ReleaseFreeMemoryFunction>(NULL)); |
| 52 thunks::SetReleaseFreeMemoryFunction(release_free_memory_function); | 52 thunks::SetReleaseFreeMemoryFunction(release_free_memory_function); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void SetGetNumericPropertyFunction( |
| 56 thunks::GetNumericPropertyFunction get_numeric_property_function) { |
| 57 DCHECK_EQ(thunks::GetGetNumericPropertyFunction(), |
| 58 reinterpret_cast<thunks::GetNumericPropertyFunction>(NULL)); |
| 59 thunks::SetGetNumericPropertyFunction(get_numeric_property_function); |
| 60 } |
| 61 |
| 55 } // namespace allocator | 62 } // namespace allocator |
| 56 } // namespace base | 63 } // namespace base |
| OLD | NEW |