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

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

Issue 2138173002: Hookup the generic heap intercept for Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix dangling use of ::g_win_new_mode. Created 4 years, 5 months 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
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 <limits.h>
6 #include <malloc.h>
7 #include <new.h>
8 #include <windows.h>
9 #include <stddef.h>
10
11
12 namespace base {
Primiano Tucci (use gerrit) 2016/07/12 14:51:05 I'd add a TODO to this file saying that once the u
Sigurður Ásgeirsson 2016/07/14 19:04:27 Done.
13 namespace allocator {
14
15 extern bool g_is_win_shim_layer_initialized;
16
17 void* WinHeapMalloc(size_t size);
18 void WinHeapFree(void* size);
19 void* WinHeapRealloc(void* ptr, size_t size);
20 void* WinHeapCalloc(size_t n, size_t elem_size);
21
22 // Call the new handler, if one has been set.
23 // Returns true on successfully calling the handler, false otherwise.
24 bool WinCallNewHandler(size_t size);
25
26 } // namespace allocator
27 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698