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

Unified Diff: chrome/browser/zygote_host_linux.h

Issue 177024: Linux: about:memory (Closed)
Patch Set: ... Created 11 years, 4 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 | « chrome/browser/resources/about_memory_linux.html ('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
diff --git a/chrome/browser/zygote_host_linux.h b/chrome/browser/zygote_host_linux.h
index 94ac92ee5b66125b73b4ce3ef5f580f3a1bdea67..516a18ba89c9a9c95f6fbc6777debe82ee3ff961 100644
--- a/chrome/browser/zygote_host_linux.h
+++ b/chrome/browser/zygote_host_linux.h
@@ -8,6 +8,8 @@
#include <string>
#include <vector>
+#include <unistd.h>
+
#include "base/global_descriptors_posix.h"
#include "base/process.h"
@@ -39,12 +41,15 @@ class ZygoteHost {
kCmdDidProcessCrash = 2, // Check if child process crashed.
};
+ pid_t pid() const { return pid_; }
+
private:
friend struct DefaultSingletonTraits<ZygoteHost>;
ZygoteHost();
void LaunchZygoteProcess();
int control_fd_; // the socket to the zygote
+ pid_t pid_;
};
#endif // CHROME_BROWSER_ZYGOTE_HOST_LINUX_H_
« no previous file with comments | « chrome/browser/resources/about_memory_linux.html ('k') | chrome/browser/zygote_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698