OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/process.h" | 5 #include "base/process/process.h" |
6 | 6 |
7 #include <memory> | |
Nico
2016/04/04 17:14:56
unused
dcheng
2016/04/04 17:43:39
Done.
| |
8 | |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "base/numerics/safe_conversions.h" | 10 #include "base/numerics/safe_conversions.h" |
10 #include "base/process/kill.h" | 11 #include "base/process/kill.h" |
11 #include "base/win/windows_version.h" | 12 #include "base/win/windows_version.h" |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 DWORD kBasicProcessAccess = | 16 DWORD kBasicProcessAccess = |
16 PROCESS_TERMINATE | PROCESS_QUERY_INFORMATION | SYNCHRONIZE; | 17 PROCESS_TERMINATE | PROCESS_QUERY_INFORMATION | SYNCHRONIZE; |
17 | 18 |
18 } // namespace | 19 } // namespace |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
181 | 182 |
182 return (::SetPriorityClass(Handle(), priority) != 0); | 183 return (::SetPriorityClass(Handle(), priority) != 0); |
183 } | 184 } |
184 | 185 |
185 int Process::GetPriority() const { | 186 int Process::GetPriority() const { |
186 DCHECK(IsValid()); | 187 DCHECK(IsValid()); |
187 return ::GetPriorityClass(Handle()); | 188 return ::GetPriorityClass(Handle()); |
188 } | 189 } |
189 | 190 |
190 } // namespace base | 191 } // namespace base |
OLD | NEW |