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

Unified Diff: base/process/process_handle_linux.cc

Issue 19064002: Split ProcessHandle and its related routines into base/process/process_handle.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process/process_handle_freebsd.cc ('k') | base/process/process_handle_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_handle_linux.cc
diff --git a/base/process_util_linux.cc b/base/process/process_handle_linux.cc
similarity index 50%
rename from base/process_util_linux.cc
rename to base/process/process_handle_linux.cc
index e4a5a3437ba30d047605c70fd1a0d24c58cde482..91441f7b38c84a2502a900dc1ffff8f3a23d0b6e 100644
--- a/base/process_util_linux.cc
+++ b/base/process/process_handle_linux.cc
@@ -1,32 +1,14 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/process_util.h"
-
-#include <dirent.h>
-#include <malloc.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <unistd.h>
+#include "base/process/process_handle.h"
#include "base/file_util.h"
-#include "base/logging.h"
#include "base/process/internal_linux.h"
-#include "base/strings/string_number_conversions.h"
-#include "base/strings/string_split.h"
-#include "base/strings/string_util.h"
-#include "base/sys_info.h"
-#include "base/threading/thread_restrictions.h"
namespace base {
-#if defined(USE_LINUX_BREAKPAD)
-size_t g_oom_size = 0U;
-#endif
-
-const char kProcSelfExe[] = "/proc/self/exe";
-
ProcessId GetParentProcessId(ProcessHandle process) {
ProcessId pid =
internal::ReadProcStatsAndGetFieldAsInt(process, internal::VM_PPID);
@@ -45,9 +27,4 @@ FilePath GetProcessExecutablePath(ProcessHandle process) {
return exe_name;
}
-int GetNumberOfThreads(ProcessHandle process) {
- return internal::ReadProcStatsAndGetFieldAsInt(process,
- internal::VM_NUMTHREADS);
-}
-
} // namespace base
« no previous file with comments | « base/process/process_handle_freebsd.cc ('k') | base/process/process_handle_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698