summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/base/process_util.h b/base/process_util.h
index cc91c67..135b92e 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -169,6 +169,14 @@ bool LaunchApp(const CommandLine& cl,
// successfully.
bool GetAppOutput(const CommandLine& cl, std::string* output);
+#if defined(OS_POSIX)
+// A restricted version of |GetAppOutput()| which (a) clears the environment,
+// and (b) stores at most |max_output| bytes; also, it doesn't search the path
+// for the command.
+bool GetAppOutputRestricted(const CommandLine& cl,
+ std::string* output, size_t max_output);
+#endif
+
// Used to filter processes by process ID.
class ProcessFilter {
public: