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

Unified Diff: content/browser/zygote_host/zygote_host_impl_linux.h

Issue 11108019: linux: Crash browser on too-big messages to zygote. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update CHECKs Created 8 years, 2 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 | « base/posix/unix_domain_socket.cc ('k') | content/browser/zygote_host/zygote_host_impl_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/zygote_host/zygote_host_impl_linux.h
diff --git a/content/browser/zygote_host/zygote_host_impl_linux.h b/content/browser/zygote_host/zygote_host_impl_linux.h
index 460abc51c2229a7b6e9c6f3ad2c72ba9a844e653..8548a2ba16c2240d9ff04e1d0fb1b476693d150a 100644
--- a/content/browser/zygote_host/zygote_host_impl_linux.h
+++ b/content/browser/zygote_host/zygote_host_impl_linux.h
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "base/pickle.h"
#include "base/process_util.h"
#include "base/synchronization/lock.h"
#include "content/public/browser/file_descriptor_info.h"
@@ -47,9 +48,15 @@ class CONTENT_EXPORT ZygoteHostImpl : public content::ZygoteHost {
private:
friend struct DefaultSingletonTraits<ZygoteHostImpl>;
+
ZygoteHostImpl();
virtual ~ZygoteHostImpl();
+ // Sends |data| to the zygote via |control_fd_|. If |fds| is non-NULL, the
+ // included file descriptors will also be passed. The caller is responsible
+ // for acquiring |control_lock_|.
+ bool SendMessage(const Pickle& data, const std::vector<int>* fds);
+
ssize_t ReadReply(void* buf, size_t buflen);
int control_fd_; // the socket to the zygote
« no previous file with comments | « base/posix/unix_domain_socket.cc ('k') | content/browser/zygote_host/zygote_host_impl_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698