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

Unified Diff: content/zygote/zygote_libc_override_linux.h

Issue 10736017: Share the zygote's fopen overrides with nacl_helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/zygote/zygote_libc_override_linux.h
diff --git a/content/zygote/zygote_libc_override_linux.h b/content/zygote/zygote_libc_override_linux.h
new file mode 100644
index 0000000000000000000000000000000000000000..f3f5f52cfbf24a1748191efb2679db94bb01db84
--- /dev/null
+++ b/content/zygote/zygote_libc_override_linux.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2012 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.
+
+#ifndef CONTENT_ZYGOTE_ZYGOTE_LIBC_OVERRIDE_LINUX_H_
Sergey Ulanov 2012/07/10 22:42:04 not sure if this is the best location for this fil
Nick Bray (chromium) 2012/07/11 00:06:11 Done.
+#define CONTENT_ZYGOTE_ZYGOTE_LIBC_OVERRIDE_LINUX_H_
+
+namespace content {
+
+#if !defined(CHROMIUM_SELINUX)
+
+// Used to control if calls to libc are intercepted or not.
+extern bool g_am_zygote_or_renderer;
Sergey Ulanov 2012/07/10 22:42:04 instead of exposing this variable it's better to h
Nick Bray (chromium) 2012/07/11 00:06:11 Done.
+
+#endif
Sergey Ulanov 2012/07/10 22:42:04 // !defined (CHROMIUM_SELINUX)
Nick Bray (chromium) 2012/07/11 00:06:11 Done.
+
+}
Sergey Ulanov 2012/07/10 22:42:04 // namespace content
Nick Bray (chromium) 2012/07/11 00:06:11 Done.
+
+#endif // CONTENT_ZYGOTE_ZYGOTE_LIBC_OVERRIDE_LINUX_H_

Powered by Google App Engine
This is Rietveld 408576698