| OLD | NEW |
| 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 Loading... |
| 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 | |
| OLD | NEW |