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

Unified Diff: content/common/send_zygote_child_ping_linux.cc

Issue 687363004: Introduce content_nacl_nonsfi.gyp for nacl_helper_nonsfi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: content/common/send_zygote_child_ping_linux.cc
diff --git a/content/common/send_zygote_child_ping_linux.cc b/content/common/send_zygote_child_ping_linux.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1a4f49f8ae013d938456a8a042f4f11c714e73d4
--- /dev/null
+++ b/content/common/send_zygote_child_ping_linux.cc
@@ -0,0 +1,21 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/common/send_zygote_child_ping_linux.h"
+
+#include <vector>
+
+#include "base/posix/unix_domain_socket_linux.h"
+#include "content/common/zygote_commands_linux.h"
+
+namespace content {
+
+bool SendZygoteChildPing(int fd) {
+ return UnixDomainSocket::SendMsg(fd,
+ kZygoteChildPingMessage,
+ sizeof(kZygoteChildPingMessage),
+ std::vector<int>());
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698