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

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

Issue 1505743002: Remove allocator_extension_thunks since this layer is not required (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@allocator_clean_win
Patch Set: rebase Created 5 years 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_thunks.h ('k') | base/base.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/allocator/allocator_extension_thunks.h"
6
7 #include <cstddef> // for NULL
8
9 namespace base {
10 namespace allocator {
11 namespace thunks {
12
13 // This slightly odd translation unit exists because of the peculularity of how
14 // allocator_unittests work on windows. That target has to perform
15 // tcmalloc-specific initialization on windows, but it cannot depend on base
16 // otherwise. This target sits in the middle - base and allocator_unittests
17 // can depend on it. This file can't depend on anything else in base, including
18 // logging.
19
20 static ReleaseFreeMemoryFunction g_release_free_memory_function = NULL;
21 static GetNumericPropertyFunction g_get_numeric_property_function = NULL;
22
23 void SetReleaseFreeMemoryFunction(
24 ReleaseFreeMemoryFunction release_free_memory_function) {
25 g_release_free_memory_function = release_free_memory_function;
26 }
27
28 ReleaseFreeMemoryFunction GetReleaseFreeMemoryFunction() {
29 return g_release_free_memory_function;
30 }
31
32 void SetGetNumericPropertyFunction(
33 GetNumericPropertyFunction get_numeric_property_function) {
34 g_get_numeric_property_function = get_numeric_property_function;
35 }
36
37 GetNumericPropertyFunction GetGetNumericPropertyFunction() {
38 return g_get_numeric_property_function;
39 }
40
41 } // namespace thunks
42 } // namespace allocator
43 } // namespace base
OLDNEW
« no previous file with comments | « base/allocator/allocator_extension_thunks.h ('k') | base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698