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

Unified Diff: components/nacl/zygote/nacl_fork_delegate_linux.h

Issue 279693002: Split NaCl SFI and non-SFI helpers into separate processes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to mseaborn feedback Created 6 years, 7 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: components/nacl/zygote/nacl_fork_delegate_linux.h
diff --git a/components/nacl/zygote/nacl_fork_delegate_linux.h b/components/nacl/zygote/nacl_fork_delegate_linux.h
index 4cc105c728903876f1b215b1e4c114cfc3fde6bd..10520fcc2da29630c866b2dba1818478ed29086c 100644
--- a/components/nacl/zygote/nacl_fork_delegate_linux.h
+++ b/components/nacl/zygote/nacl_fork_delegate_linux.h
@@ -12,6 +12,15 @@
#include "base/compiler_specific.h"
#include "content/public/common/zygote_fork_delegate_linux.h"
+template <typename>
+class ScopedVector;
+
+namespace nacl {
+
+// Appends any ZygoteForkDelegate instances needed by NaCl to |*delegates|.
+void AddNaClZygoteForkDelegates(
+ ScopedVector<content::ZygoteForkDelegate>* delegates);
+
// The NaClForkDelegate is created during Chrome linux zygote
// initialization, and provides "fork()" functionality with
// NaCl specific process characteristics (specifically address
@@ -19,7 +28,7 @@
// A new delegate is passed in as an argument to ZygoteMain().
class NaClForkDelegate : public content::ZygoteForkDelegate {
public:
- NaClForkDelegate();
+ NaClForkDelegate(bool nonsfi_mode);
virtual ~NaClForkDelegate();
virtual void Init(int sandboxdesc, bool enable_layer1_sandbox) OVERRIDE;
@@ -49,8 +58,11 @@ class NaClForkDelegate : public content::ZygoteForkDelegate {
kNaClHelperStatusBoundary // Must be one greater than highest value used.
};
+ const bool nonsfi_mode_;
NaClHelperStatus status_;
int fd_;
};
+} // namespace nacl
+
#endif // COMPONENTS_NACL_ZYGOTE_NACL_FORK_DELEGATE_LINUX_H_
« no previous file with comments | « components/nacl/renderer/ppb_nacl_private_impl.cc ('k') | components/nacl/zygote/nacl_fork_delegate_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698