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

Side by Side Diff: base/allocator/allocator_extension_thunks.h

Issue 1468033002: Remove unused memory functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused functions from base/allocator Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « base/allocator/allocator_extension.cc ('k') | base/allocator/allocator_extension_thunks.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 {
11 namespace allocator { 11 namespace allocator {
12 namespace thunks { 12 namespace thunks {
13 13
14 // WARNING: You probably don't want to use this file unless you are routing a 14 // WARNING: You probably don't want to use this file unless you are routing a
15 // new allocator extension from a specific allocator implementation to base. 15 // new allocator extension from a specific allocator implementation to base.
16 // See allocator_extension.h to see the interface that base exports. 16 // See allocator_extension.h to see the interface that base exports.
17 17
18 typedef bool (*GetAllocatorWasteSizeFunction)(size_t* size);
19 void SetGetAllocatorWasteSizeFunction(
20 GetAllocatorWasteSizeFunction get_allocator_waste_size_function);
21 GetAllocatorWasteSizeFunction GetGetAllocatorWasteSizeFunction();
22
23 typedef void (*GetStatsFunction)(char* buffer, int buffer_length); 18 typedef void (*GetStatsFunction)(char* buffer, int buffer_length);
24 void SetGetStatsFunction(GetStatsFunction get_stats_function); 19 void SetGetStatsFunction(GetStatsFunction get_stats_function);
25 GetStatsFunction GetGetStatsFunction(); 20 GetStatsFunction GetGetStatsFunction();
26 21
27 typedef void (*ReleaseFreeMemoryFunction)(); 22 typedef void (*ReleaseFreeMemoryFunction)();
28 void SetReleaseFreeMemoryFunction( 23 void SetReleaseFreeMemoryFunction(
29 ReleaseFreeMemoryFunction release_free_memory_function); 24 ReleaseFreeMemoryFunction release_free_memory_function);
30 ReleaseFreeMemoryFunction GetReleaseFreeMemoryFunction(); 25 ReleaseFreeMemoryFunction GetReleaseFreeMemoryFunction();
31 26
32 typedef bool (*GetNumericPropertyFunction)(const char* name, size_t* value); 27 typedef bool (*GetNumericPropertyFunction)(const char* name, size_t* value);
33 void SetGetNumericPropertyFunction( 28 void SetGetNumericPropertyFunction(
34 GetNumericPropertyFunction get_numeric_property_function); 29 GetNumericPropertyFunction get_numeric_property_function);
35 GetNumericPropertyFunction GetGetNumericPropertyFunction(); 30 GetNumericPropertyFunction GetGetNumericPropertyFunction();
36 31
37 } // namespace thunks 32 } // namespace thunks
38 } // namespace allocator 33 } // namespace allocator
39 } // namespace base 34 } // namespace base
40 35
41 #endif // BASE_ALLOCATOR_ALLOCATOR_EXTENSION_THUNKS_H_ 36 #endif // BASE_ALLOCATOR_ALLOCATOR_EXTENSION_THUNKS_H_
OLDNEW
« no previous file with comments | « base/allocator/allocator_extension.cc ('k') | base/allocator/allocator_extension_thunks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698