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