OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/app/close_handle_hook_win.h" | 5 #include "chrome/app/close_handle_hook_win.h" |
6 | 6 |
7 #include <Windows.h> | 7 #include <Windows.h> |
8 #include <psapi.h> | 8 #include <psapi.h> |
9 | 9 |
| 10 #include <algorithm> |
10 #include <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "base/win/iat_patch_function.h" | 15 #include "base/win/iat_patch_function.h" |
15 #include "base/win/pe_image.h" | 16 #include "base/win/pe_image.h" |
16 #include "base/win/scoped_handle.h" | 17 #include "base/win/scoped_handle.h" |
17 #include "chrome/common/channel_info.h" | 18 #include "chrome/common/channel_info.h" |
18 #include "components/version_info/version_info.h" | 19 #include "components/version_info/version_info.h" |
19 | 20 |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 PatchLoadedModules(hooks); | 276 PatchLoadedModules(hooks); |
276 } else { | 277 } else { |
277 base::win::DisableHandleVerifier(); | 278 base::win::DisableHandleVerifier(); |
278 } | 279 } |
279 } | 280 } |
280 | 281 |
281 void RemoveHandleHooks() { | 282 void RemoveHandleHooks() { |
282 // We are partching all loaded modules without forcing them to stay in memory, | 283 // We are partching all loaded modules without forcing them to stay in memory, |
283 // removing patches is not safe. | 284 // removing patches is not safe. |
284 } | 285 } |
OLD | NEW |