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

Unified Diff: content/common/sandbox_win.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
Index: content/common/sandbox_win.h
===================================================================
--- content/common/sandbox_win.h (revision 188735)
+++ content/common/sandbox_win.h (working copy)
@@ -2,20 +2,35 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMMON_SANDBOX_POLICY_H_
-#define CONTENT_COMMON_SANDBOX_POLICY_H_
+#ifndef CONTENT_COMMON_SANDBOX_WIN_H_
+#define CONTENT_COMMON_SANDBOX_WIN_H_
+#include "sandbox/win/src/security_level.h"
+
+class CommandLine;
+
namespace sandbox {
class BrokerServices;
+class TargetPolicy;
class TargetServices;
}
namespace content {
+// Wrapper around sandbox::TargetPolicy::SetJobLevel that checks if the sandbox
+// should be let to run without a job object assigned.
+void SetJobLevel(const CommandLine& cmd_line,
+ sandbox::JobLevel job_level,
+ uint32 ui_exceptions,
+ sandbox::TargetPolicy* policy);
+
+// Closes handles that are opened at process creation and initialization.
+void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy);
+
bool InitBrokerServices(sandbox::BrokerServices* broker_services);
bool InitTargetServices(sandbox::TargetServices* target_services);
} // namespace content
-#endif // CONTENT_COMMON_SANDBOX_POLICY_H_
+#endif // CONTENT_COMMON_SANDBOX_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698