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

Unified Diff: chrome/browser/nacl_fork_delegate.h

Issue 6995121: New NaCl zygote implementation 2 (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Dropping mods to content/browser/DEPS Created 9 years, 6 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: chrome/browser/nacl_fork_delegate.h
diff --git a/chrome/browser/nacl_fork_delegate.h b/chrome/browser/nacl_fork_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..27c577863c0025e8ed970f94e99f1002bad13daf
--- /dev/null
+++ b/chrome/browser/nacl_fork_delegate.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2011 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 CHROME_BROWSER_NACL_FORK_DELEGATE_H_
+#define CHROME_BROWSER_NACL_FORK_DELEGATE_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "content/common/zygote_fork_delegate.h"
+
+class NaClForkDelegate : public ZygoteForkDelegate {
+ public:
+ NaClForkDelegate();
+ ~NaClForkDelegate();
+ virtual void Init(const bool sandboxed,
+ const int browserdesc,
+ const int sandboxdesc);
+ virtual bool CanHelp(const std::string& process_type);
+ virtual pid_t Fork(const std::vector<int>& fds);
+
+ private:
+ pid_t Pid() {
+ return pid_;
+ };
+ int FD() {
+ return fd_;
+ };
+
+ bool sandboxed_;
+ int fd_;
+ pid_t pid_;
+};
+
+#endif // CHROME_BROWSER_NACL_FORK_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698