summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base__process_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-base__process_util.h')
-rw-r--r--www/chromium/files/patch-base__process_util.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/www/chromium/files/patch-base__process_util.h b/www/chromium/files/patch-base__process_util.h
index 6554558d1af9..9315b5589b92 100644
--- a/www/chromium/files/patch-base__process_util.h
+++ b/www/chromium/files/patch-base__process_util.h
@@ -1,12 +1,12 @@
---- base/process_util.h.orig 2011-03-21 07:38:40.133112029 +0200
-+++ base/process_util.h 2011-03-21 07:51:24.970111144 +0200
+--- base/process_util.h.orig 2011-04-15 11:01:37.000000000 +0300
++++ base/process_util.h 2011-04-15 21:36:54.331640613 +0300
@@ -28,6 +28,10 @@
#include <sys/types.h>
#endif
+#if defined(OS_FREEBSD)
+struct kinfo_proc;
-+#endif
++#endif /* defined(OS_FREEBSD) */
+
#include <list>
#include <string>
@@ -17,20 +17,26 @@
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
- // Returns the ID for the parent of the given process.
- ProcessId GetParentProcessId(ProcessHandle process);
+ // Returns the path to the executable of the given process.
+ FilePath GetProcessExecutablePath(ProcessHandle process);
-@@ -172,7 +176,9 @@
- // CPU-related ticks. Returns -1 on parse error.
+@@ -170,13 +174,14 @@
// Exposed for testing.
int ParseProcStatCPU(const std::string& input);
-+#endif
-+#if defined(OS_LINUX)
++#elif defined(OS_LINUX)
static const char kAdjustOOMScoreSwitch[] = "--adjust-oom-score";
// This adjusts /proc/process/oom_adj so the Linux OOM killer will prefer
-@@ -439,7 +445,7 @@
+ // certain process types over others. The range for the adjustment is
+ // [-17,15], with [0,15] being user accessible.
+ bool AdjustOOMScore(ProcessId process, int score);
+-#endif
++#endif /* defined(OS_LINUX) || defined(OS_FREEBSD) */
+
+ #if defined(OS_POSIX)
+ // Returns the ID for the parent of the given process.
+@@ -439,7 +444,7 @@
#if defined(OS_WIN)
HANDLE snapshot_;
bool started_iteration_;