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

Unified Diff: content/public/common/child_process_sandbox_support_linux.h

Issue 240463005: Stop using chrome-sandbox to determine real pids (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix an embarassing number of compile errors Created 6 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
« no previous file with comments | « content/common/sandbox_linux/sandbox_linux.h ('k') | content/public/common/zygote_fork_delegate_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/child_process_sandbox_support_linux.h
diff --git a/content/public/common/child_process_sandbox_support_linux.h b/content/public/common/child_process_sandbox_support_linux.h
index 9e1cde273ad35201ff0353fec356ca8bf134b9dd..d9f96c71638fb1573cb2eb5f25edca01bb9002f4 100644
--- a/content/public/common/child_process_sandbox_support_linux.h
+++ b/content/public/common/child_process_sandbox_support_linux.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <string>
+#include "base/process/process_handle.h"
#include "content/common/content_export.h"
#include "ppapi/c/trusted/ppb_browser_font_trusted.h"
@@ -50,6 +51,15 @@ CONTENT_EXPORT int MatchFontWithFallback(
CONTENT_EXPORT bool GetFontTable(int fd, uint32_t table_tag, off_t offset,
uint8_t* output, size_t* output_length);
+// Asks the browser process to write the calling process's PID (as seen from
+// the browser process's namespace) to fd, which should be the writing end of
+// a pipe shared with the zygote process.
+// Additionally, if pid is not NULL, then the PID value is stored there;
+// otherwise, the PID value is guaranteed to never be passed to the caller's
+// address space.
+// Returns true on success.
+CONTENT_EXPORT bool SendRealPidToZygote(int fd, base::ProcessId* pid);
+
}; // namespace content
#endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_
« no previous file with comments | « content/common/sandbox_linux/sandbox_linux.h ('k') | content/public/common/zygote_fork_delegate_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698