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

Unified Diff: base/process_util.h

Issue 6902177: linux components: expose more BASE_API used by Chrome itself (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyrights Created 9 years, 8 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
Index: base/process_util.h
diff --git a/base/process_util.h b/base/process_util.h
index bb8f30ec55e598b805d3b92f6a8de0de66e79dbd..5810ce38f282d3e1c91f2b0962f909252bd09ff6 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -165,7 +165,7 @@ BASE_API ProcessId GetProcId(ProcessHandle process);
#if defined(OS_LINUX)
// Returns the path to the executable of the given process.
-FilePath GetProcessExecutablePath(ProcessHandle process);
+BASE_API FilePath GetProcessExecutablePath(ProcessHandle process);
// Parse the data found in /proc/<pid>/stat and return the sum of the
// CPU-related ticks. Returns -1 on parse error.
@@ -177,7 +177,7 @@ static const char kAdjustOOMScoreSwitch[] = "--adjust-oom-score";
// This adjusts /proc/process/oom_adj so the Linux OOM killer will prefer
// 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);
+BASE_API bool AdjustOOMScore(ProcessId process, int score);
#endif
#if defined(OS_POSIX)
@@ -187,7 +187,7 @@ BASE_API ProcessId GetParentProcessId(ProcessHandle process);
// Close all file descriptors, except those which are a destination in the
// given multimap. Only call this function in a child process where you know
// that there aren't any other threads.
-void CloseSuperfluousFds(const InjectiveMultimap& saved_map);
+BASE_API void CloseSuperfluousFds(const InjectiveMultimap& saved_map);
#endif
#if defined(OS_WIN)
« base/linux_util.h ('K') | « base/linux_util.h ('k') | base/safe_strerror_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698