Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: base/process_util_posix.cc

Issue 3071012: Cleanup: Remove unneeded headers from base/ (part 1) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/message_pump_win.cc ('k') | base/shared_memory_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <dirent.h> 5 #include <dirent.h>
6 #include <errno.h> 6 #include <errno.h>
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <signal.h> 8 #include <signal.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <sys/resource.h> 10 #include <sys/resource.h>
11 #include <sys/time.h> 11 #include <sys/time.h>
12 #include <sys/types.h> 12 #include <sys/types.h>
13 #include <sys/wait.h> 13 #include <sys/wait.h>
14 #include <unistd.h> 14 #include <unistd.h>
15 15
16 #include <limits> 16 #include <limits>
17 #include <set> 17 #include <set>
18 18
19 #include "base/command_line.h" 19 #include "base/command_line.h"
20 #include "base/compiler_specific.h" 20 #include "base/compiler_specific.h"
21 #include "base/debug_util.h" 21 #include "base/debug_util.h"
22 #include "base/dir_reader_posix.h" 22 #include "base/dir_reader_posix.h"
23 #include "base/eintr_wrapper.h" 23 #include "base/eintr_wrapper.h"
24 #include "base/logging.h" 24 #include "base/logging.h"
25 #include "base/platform_thread.h" 25 #include "base/platform_thread.h"
26 #include "base/process_util.h" 26 #include "base/process_util.h"
27 #include "base/rand_util.h"
28 #include "base/scoped_ptr.h" 27 #include "base/scoped_ptr.h"
29 #include "base/string_util.h" 28 #include "base/string_util.h"
30 #include "base/time.h" 29 #include "base/time.h"
31 #include "base/waitable_event.h" 30 #include "base/waitable_event.h"
32 31
33 #if defined(OS_MACOSX) 32 #if defined(OS_MACOSX)
34 #include <crt_externs.h> 33 #include <crt_externs.h>
35 #define environ (*_NSGetEnviron()) 34 #define environ (*_NSGetEnviron())
36 #include "base/mach_ipc_mac.h" 35 #include "base/mach_ipc_mac.h"
36 #include "base/rand_util.h"
37 #else 37 #else
38 extern char** environ; 38 extern char** environ;
39 #endif 39 #endif
40 40
41 namespace base { 41 namespace base {
42 42
43 namespace { 43 namespace {
44 44
45 int WaitpidWithTimeout(ProcessHandle handle, int64 wait_milliseconds, 45 int WaitpidWithTimeout(ProcessHandle handle, int64 wait_milliseconds,
46 bool* success) { 46 bool* success) {
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 const ProcessFilter* filter) { 892 const ProcessFilter* filter) {
893 bool exited_cleanly = 893 bool exited_cleanly =
894 WaitForProcessesToExit(executable_name, wait_milliseconds, 894 WaitForProcessesToExit(executable_name, wait_milliseconds,
895 filter); 895 filter);
896 if (!exited_cleanly) 896 if (!exited_cleanly)
897 KillProcesses(executable_name, exit_code, filter); 897 KillProcesses(executable_name, exit_code, filter);
898 return exited_cleanly; 898 return exited_cleanly;
899 } 899 }
900 900
901 } // namespace base 901 } // namespace base
OLDNEW
« no previous file with comments | « base/message_pump_win.cc ('k') | base/shared_memory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698