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

Side by Side Diff: base/process_util_freebsd.cc

Issue 12092078: Move string_number_conversions to base/strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge, sort headers Created 7 years, 10 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/prefs/json_pref_store_unittest.cc ('k') | base/process_util_linux.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) 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_util.h" 5 #include "base/process_util.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 #include <dirent.h> 8 #include <dirent.h>
9 #include <dlfcn.h> 9 #include <dlfcn.h>
10 #include <errno.h> 10 #include <errno.h>
11 #include <fcntl.h> 11 #include <fcntl.h>
12 #include <sys/sysctl.h>
12 #include <sys/time.h> 13 #include <sys/time.h>
13 #include <sys/types.h> 14 #include <sys/types.h>
15 #include <sys/user.h>
14 #include <sys/wait.h> 16 #include <sys/wait.h>
15 #include <sys/sysctl.h>
16 #include <sys/user.h>
17 #include <time.h> 17 #include <time.h>
18 #include <unistd.h> 18 #include <unistd.h>
19 19
20 #include "base/file_util.h" 20 #include "base/file_util.h"
21 #include "base/logging.h" 21 #include "base/logging.h"
22 #include "base/string_number_conversions.h"
23 #include "base/string_split.h" 22 #include "base/string_split.h"
24 #include "base/string_tokenizer.h" 23 #include "base/string_tokenizer.h"
25 #include "base/string_util.h" 24 #include "base/string_util.h"
25 #include "base/strings/string_number_conversions.h"
26 #include "base/sys_info.h" 26 #include "base/sys_info.h"
27 27
28 namespace base { 28 namespace base {
29 29
30 ProcessId GetParentProcessId(ProcessHandle process) { 30 ProcessId GetParentProcessId(ProcessHandle process) {
31 struct kinfo_proc info; 31 struct kinfo_proc info;
32 size_t length; 32 size_t length;
33 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process }; 33 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process };
34 34
35 if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0) 35 if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0)
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 void EnableTerminationOnHeapCorruption() { 284 void EnableTerminationOnHeapCorruption() {
285 // Nothing to do. 285 // Nothing to do.
286 } 286 }
287 287
288 bool AdjustOOMScore(ProcessId process, int score) { 288 bool AdjustOOMScore(ProcessId process, int score) {
289 NOTIMPLEMENTED(); 289 NOTIMPLEMENTED();
290 return false; 290 return false;
291 } 291 }
292 292
293 } // namespace base 293 } // namespace base
OLDNEW
« no previous file with comments | « base/prefs/json_pref_store_unittest.cc ('k') | base/process_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698