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

Side by Side Diff: tools/memory_watcher/memory_hook.h

Issue 43082: NO CODE CHANGE (Closed)
Patch Set: Created 11 years, 9 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
« no previous file with comments | « tools/memory_watcher/hotkey.h ('k') | tools/memory_watcher/memory_hook.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // Static class for hooking Win32 API routines. For now, 5 // Static class for hooking Win32 API routines. For now,
6 // we only add one watcher at a time. 6 // we only add one watcher at a time.
7 // 7 //
8 // TODO(mbelshe): Support multiple watchers. 8 // TODO(mbelshe): Support multiple watchers.
9 9
10 #ifndef MEMORY_WATCHER_MEMORY_HOOK_ 10 #ifndef MEMORY_WATCHER_MEMORY_HOOK_
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // Close our private heap. 129 // Close our private heap.
130 bool CloseHeap(); 130 bool CloseHeap();
131 131
132 MemoryObserver* watcher_; 132 MemoryObserver* watcher_;
133 HANDLE heap_; // An internal accounting heap. 133 HANDLE heap_; // An internal accounting heap.
134 static bool hooked_; 134 static bool hooked_;
135 static MemoryHook* global_hook_; 135 static MemoryHook* global_hook_;
136 }; 136 };
137 137
138 #endif // MEMORY_WATCHER_MEMORY_HOOK_ 138 #endif // MEMORY_WATCHER_MEMORY_HOOK_
139
OLDNEW
« no previous file with comments | « tools/memory_watcher/hotkey.h ('k') | tools/memory_watcher/memory_hook.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698