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

Unified Diff: chrome/browser/zygote_host_linux.h

Issue 359001: Revert 30938 - Add support for getting the real process id from within the su... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | « chrome/browser/renderer_host/render_sandbox_host_linux.cc ('k') | chrome/browser/zygote_host_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/zygote_host_linux.h
===================================================================
--- chrome/browser/zygote_host_linux.h (revision 30938)
+++ chrome/browser/zygote_host_linux.h (working copy)
@@ -5,26 +5,24 @@
#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:
- void Init(const std::string& sandbox_cmd);
+ ~ZygoteHost();
pid_t ForkRenderer(const std::vector<std::string>& command_line,
const base::GlobalDescriptors::Mapping& mapping);
@@ -48,11 +46,10 @@
private:
friend struct DefaultSingletonTraits<ZygoteHost>;
ZygoteHost();
- ~ZygoteHost();
+ void LaunchZygoteProcess();
int control_fd_; // the socket to the zygote
pid_t pid_;
- bool init_;
};
#endif // CHROME_BROWSER_ZYGOTE_HOST_LINUX_H_
Property changes on: chrome/browser/zygote_host_linux.h
___________________________________________________________________
Deleted: svn:eol-style
- LF
« no previous file with comments | « chrome/browser/renderer_host/render_sandbox_host_linux.cc ('k') | chrome/browser/zygote_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698