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

Unified Diff: content/public/common/sandboxed_process_launcher_delegate.h

Issue 12805004: Remove mention of the nacl process in content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « content/public/common/sandbox_init.cc ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/sandboxed_process_launcher_delegate.h
===================================================================
--- content/public/common/sandboxed_process_launcher_delegate.h (revision 0)
+++ content/public/common/sandboxed_process_launcher_delegate.h (revision 0)
@@ -0,0 +1,44 @@
+// 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_PUBLIC_COMMON_SANDBOXED_PROCESS_LAUNCHER_DELEGATE_H_
+#define CONTENT_PUBLIC_COMMON_SANDBOXED_PROCESS_LAUNCHER_DELEGATE_H_
+
+#include "base/process.h"
+
+namespace base {
+class FilePath;
+}
+
+namespace sandbox {
+class TargetPolicy;
+}
+
+namespace content {
+
+// Allows a caller of StartSandboxedProcess to control the sandbox policy, i.e.
+// to loosen it if needed.
+// The methods below will be called on the PROCESS_LAUNCHER thread.
+class SandboxedProcessLauncherDelegate {
+ public:
+ virtual ~SandboxedProcessLauncherDelegate() {}
+
+ // Called before the default sandbox is applied. If the default policy is too
+ // restrictive, the caller should set |disable_default_policy| to true and
+ // apply their policy in PreSpawnTarget. |exposed_dir| is used to allow a
+ //directory through the sandbox.
+ virtual void PreSandbox(bool* disable_default_policy,
+ base::FilePath* exposed_dir) {}
+
+ // Called right before spawning the process.
+ virtual void PreSpawnTarget(sandbox::TargetPolicy* policy,
+ bool* success) {}
+
+ // Called right after the process is launched, but before its thread is run.
+ virtual void PostSpawnTarget(base::ProcessHandle process) {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_SANDBOXED_PROCESS_LAUNCHER_DELEGATE_H_
Property changes on: content\public\common\sandboxed_process_launcher_delegate.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « content/public/common/sandbox_init.cc ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698