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

Side by Side Diff: tools/memory_watcher/dllmain.cc

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/call_stack.cc ('k') | tools/memory_watcher/hotkey.h » ('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 // 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
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
OLDNEW
« no previous file with comments | « tools/memory_watcher/call_stack.cc ('k') | tools/memory_watcher/hotkey.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698