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

Unified Diff: base/process_util.h

Issue 333008: Mac: Implement about:memory. (Closed)
Patch Set: Merged ToT. Created 11 years, 1 month 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/mac_util_unittest.mm ('k') | base/process_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util.h
diff --git a/base/process_util.h b/base/process_util.h
index cc91c67df902f1aa2fb673fd1849317e8b02bb32..135b92e062630a9b9cad0dc66d3386d87ab732b9 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:
« no previous file with comments | « base/mac_util_unittest.mm ('k') | base/process_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698