OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef BASE_PROCESS_PROCESS_H_ | 5 #ifndef BASE_PROCESS_PROCESS_H_ |
6 #define BASE_PROCESS_PROCESS_H_ | 6 #define BASE_PROCESS_PROCESS_H_ |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/basictypes.h" | |
10 #include "base/move.h" | 9 #include "base/move.h" |
11 #include "base/process/process_handle.h" | 10 #include "base/process/process_handle.h" |
12 #include "base/time/time.h" | 11 #include "base/time/time.h" |
13 #include "build/build_config.h" | 12 #include "build/build_config.h" |
14 | 13 |
15 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
16 #include "base/win/scoped_handle.h" | 15 #include "base/win/scoped_handle.h" |
17 #endif | 16 #endif |
18 | 17 |
19 namespace base { | 18 namespace base { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // Exposed for testing. | 142 // Exposed for testing. |
144 // Given the contents of the /proc/<pid>/cgroup file, determine whether the | 143 // Given the contents of the /proc/<pid>/cgroup file, determine whether the |
145 // process is backgrounded or not. | 144 // process is backgrounded or not. |
146 BASE_EXPORT bool IsProcessBackgroundedCGroup( | 145 BASE_EXPORT bool IsProcessBackgroundedCGroup( |
147 const StringPiece& cgroup_contents); | 146 const StringPiece& cgroup_contents); |
148 #endif // defined(OS_CHROMEOS) | 147 #endif // defined(OS_CHROMEOS) |
149 | 148 |
150 } // namespace base | 149 } // namespace base |
151 | 150 |
152 #endif // BASE_PROCESS_PROCESS_H_ | 151 #endif // BASE_PROCESS_PROCESS_H_ |
OLD | NEW |