| 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 // The memory_watcher.dll is hooked by simply linking it. When we get the | 5 // The memory_watcher.dll is hooked by simply linking it. When we get the |
| 6 // windows notification that this DLL is loaded, we do a few things: | 6 // windows notification that this DLL is loaded, we do a few things: |
| 7 // 1) Register a Hot Key. | 7 // 1) Register a Hot Key. |
| 8 // Only one process can hook the Hot Key, so one will get it, and the | 8 // Only one process can hook the Hot Key, so one will get it, and the |
| 9 // others will silently fail. | 9 // others will silently fail. |
| 10 // 2) Create a thread to wait on an event. | 10 // 2) Create a thread to wait on an event. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 break; | 136 break; |
| 137 } | 137 } |
| 138 return TRUE; | 138 return TRUE; |
| 139 } | 139 } |
| 140 | 140 |
| 141 __declspec(dllexport) void __cdecl SetLogName(char* name) { | 141 __declspec(dllexport) void __cdecl SetLogName(char* name) { |
| 142 g_memory_watcher->SetLogName(name); | 142 g_memory_watcher->SetLogName(name); |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // extern "C" | 145 } // extern "C" |
| 146 | |
| OLD | NEW |