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 |