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_util.h" | 5 #include "base/process_util.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 #include <crt_externs.h> | 8 #include <crt_externs.h> |
9 #include <errno.h> | 9 #include <errno.h> |
10 #include <mach/mach.h> | 10 #include <mach/mach.h> |
11 #include <mach/mach_init.h> | 11 #include <mach/mach_init.h> |
12 #include <mach/mach_vm.h> | 12 #include <mach/mach_vm.h> |
13 #include <mach/shared_region.h> | 13 #include <mach/shared_region.h> |
14 #include <mach/task.h> | 14 #include <mach/task.h> |
15 #include <malloc/malloc.h> | 15 #include <malloc/malloc.h> |
16 #import <objc/runtime.h> | 16 #import <objc/runtime.h> |
17 #include <signal.h> | 17 #include <signal.h> |
18 #include <spawn.h> | 18 #include <spawn.h> |
19 #include <sys/event.h> | 19 #include <sys/event.h> |
20 #include <sys/sysctl.h> | 20 #include <sys/sysctl.h> |
21 #include <sys/types.h> | 21 #include <sys/types.h> |
22 #include <sys/wait.h> | 22 #include <sys/wait.h> |
23 | 23 |
24 #include <new> | 24 #include <new> |
25 #include <string> | 25 #include <string> |
26 | 26 |
| 27 #include "base/containers/hash_tables.h" |
27 #include "base/debug/debugger.h" | 28 #include "base/debug/debugger.h" |
28 #include "base/file_util.h" | 29 #include "base/file_util.h" |
29 #include "base/hash_tables.h" | |
30 #include "base/lazy_instance.h" | 30 #include "base/lazy_instance.h" |
31 #include "base/logging.h" | 31 #include "base/logging.h" |
32 #include "base/mac/mac_util.h" | 32 #include "base/mac/mac_util.h" |
33 #include "base/mac/scoped_mach_port.h" | 33 #include "base/mac/scoped_mach_port.h" |
34 #include "base/posix/eintr_wrapper.h" | 34 #include "base/posix/eintr_wrapper.h" |
35 #include "base/scoped_clear_errno.h" | 35 #include "base/scoped_clear_errno.h" |
36 #include "base/string_util.h" | 36 #include "base/string_util.h" |
37 #include "base/sys_info.h" | 37 #include "base/sys_info.h" |
38 #include "third_party/apple_apsl/CFBase.h" | 38 #include "third_party/apple_apsl/CFBase.h" |
39 #include "third_party/apple_apsl/malloc.h" | 39 #include "third_party/apple_apsl/malloc.h" |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 } | 900 } |
901 } | 901 } |
902 | 902 |
903 } // namespace | 903 } // namespace |
904 | 904 |
905 void EnsureProcessTerminated(ProcessHandle process) { | 905 void EnsureProcessTerminated(ProcessHandle process) { |
906 WaitForChildToDie(process, kWaitBeforeKillSeconds); | 906 WaitForChildToDie(process, kWaitBeforeKillSeconds); |
907 } | 907 } |
908 | 908 |
909 } // namespace base | 909 } // namespace base |
OLD | NEW |