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_ |