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 <shellapi.h> | 9 #include <shellapi.h> |
10 #include <windows.h> | 10 #include <windows.h> |
11 #include <userenv.h> | 11 #include <userenv.h> |
12 #include <psapi.h> | 12 #include <psapi.h> |
13 | 13 |
14 #include <ios> | 14 #include <ios> |
15 #include <limits> | 15 #include <limits> |
16 | 16 |
17 #include "base/bind.h" | 17 #include "base/bind.h" |
18 #include "base/bind_helpers.h" | 18 #include "base/bind_helpers.h" |
19 #include "base/command_line.h" | 19 #include "base/command_line.h" |
20 #include "base/debug/stack_trace.h" | 20 #include "base/debug/stack_trace.h" |
21 #include "base/logging.h" | 21 #include "base/logging.h" |
22 #include "base/memory/scoped_ptr.h" | |
23 #include "base/message_loop/message_loop.h" | 22 #include "base/message_loop/message_loop.h" |
24 #include "base/metrics/histogram.h" | 23 #include "base/metrics/histogram.h" |
25 #include "base/process/kill.h" | 24 #include "base/process/kill.h" |
26 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
27 #include "base/sys_info.h" | 26 #include "base/sys_info.h" |
28 #include "base/win/object_watcher.h" | 27 #include "base/win/object_watcher.h" |
29 #include "base/win/scoped_handle.h" | 28 #include "base/win/scoped_handle.h" |
30 #include "base/win/scoped_process_information.h" | 29 #include "base/win/scoped_process_information.h" |
31 #include "base/win/startup_information.h" | 30 #include "base/win/startup_information.h" |
32 #include "base/win/windows_version.h" | 31 #include "base/win/windows_version.h" |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 | 385 |
387 bool GetAppOutput(const StringPiece16& cl, std::string* output) { | 386 bool GetAppOutput(const StringPiece16& cl, std::string* output) { |
388 return GetAppOutputInternal(cl, false, output); | 387 return GetAppOutputInternal(cl, false, output); |
389 } | 388 } |
390 | 389 |
391 void RaiseProcessToHighPriority() { | 390 void RaiseProcessToHighPriority() { |
392 SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); | 391 SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); |
393 } | 392 } |
394 | 393 |
395 } // namespace base | 394 } // namespace base |
OLD | NEW |