OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/process/launch.h" | 5 #include "base/process/launch.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <io.h> | 8 #include <io.h> |
9 #include <windows.h> | 9 #include <windows.h> |
10 #include <userenv.h> | 10 #include <userenv.h> |
11 #include <psapi.h> | 11 #include <psapi.h> |
12 | 12 |
13 #include <ios> | 13 #include <ios> |
14 | 14 |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/bind_helpers.h" | 16 #include "base/bind_helpers.h" |
17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
18 #include "base/debug/stack_trace.h" | 18 #include "base/debug/stack_trace.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
21 #include "base/message_loop.h" | 21 #include "base/message_loop/message_loop.h" |
22 #include "base/metrics/histogram.h" | 22 #include "base/metrics/histogram.h" |
23 #include "base/process/kill.h" | 23 #include "base/process/kill.h" |
24 #include "base/sys_info.h" | 24 #include "base/sys_info.h" |
25 #include "base/win/object_watcher.h" | 25 #include "base/win/object_watcher.h" |
26 #include "base/win/scoped_handle.h" | 26 #include "base/win/scoped_handle.h" |
27 #include "base/win/scoped_process_information.h" | 27 #include "base/win/scoped_process_information.h" |
28 #include "base/win/windows_version.h" | 28 #include "base/win/windows_version.h" |
29 | 29 |
30 // userenv.dll is required for CreateEnvironmentBlock(). | 30 // userenv.dll is required for CreateEnvironmentBlock(). |
31 #pragma comment(lib, "userenv.lib") | 31 #pragma comment(lib, "userenv.lib") |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 WaitForSingleObject(proc_info.process_handle(), INFINITE); | 274 WaitForSingleObject(proc_info.process_handle(), INFINITE); |
275 | 275 |
276 return true; | 276 return true; |
277 } | 277 } |
278 | 278 |
279 void RaiseProcessToHighPriority() { | 279 void RaiseProcessToHighPriority() { |
280 SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); | 280 SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); |
281 } | 281 } |
282 | 282 |
283 } // namespace base | 283 } // namespace base |
OLD | NEW |