summaryrefslogtreecommitdiffstats
path: root/chrome/browser/zygote_host_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/zygote_host_linux.h')
-rw-r--r--chrome/browser/zygote_host_linux.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome/browser/zygote_host_linux.h b/chrome/browser/zygote_host_linux.h
index 516a18b..5b4244c 100644
--- a/chrome/browser/zygote_host_linux.h
+++ b/chrome/browser/zygote_host_linux.h
@@ -5,24 +5,26 @@
#ifndef CHROME_BROWSER_ZYGOTE_HOST_LINUX_H_
#define CHROME_BROWSER_ZYGOTE_HOST_LINUX_H_
+#include <unistd.h>
+
#include <string>
#include <vector>
-#include <unistd.h>
-
#include "base/global_descriptors_posix.h"
#include "base/process.h"
template<typename Type>
struct DefaultSingletonTraits;
+static const char kZygoteMagic[] = "ZYGOTE_OK";
+
// http://code.google.com/p/chromium/wiki/LinuxZygote
// The zygote host is the interface, in the browser process, to the zygote
// process.
class ZygoteHost {
public:
- ~ZygoteHost();
+ void Init(const std::string& sandbox_cmd);
pid_t ForkRenderer(const std::vector<std::string>& command_line,
const base::GlobalDescriptors::Mapping& mapping);
@@ -46,10 +48,11 @@ class ZygoteHost {
private:
friend struct DefaultSingletonTraits<ZygoteHost>;
ZygoteHost();
- void LaunchZygoteProcess();
+ ~ZygoteHost();
int control_fd_; // the socket to the zygote
pid_t pid_;
+ bool init_;
};
#endif // CHROME_BROWSER_ZYGOTE_HOST_LINUX_H_