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

Unified Diff: content/common/sandbox_win.h

Issue 1923653002: Wire up process launch error codes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix debug and clang Created 4 years, 8 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/browser/utility_process_host_impl.cc ('k') | content/common/sandbox_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_win.h
diff --git a/content/common/sandbox_win.h b/content/common/sandbox_win.h
index 05320482bfd8e5dc0c1fb78dfdc882d58db43824..7bda68eaac36c260eff42452f8b83d3eb025ab1b 100644
--- a/content/common/sandbox_win.h
+++ b/content/common/sandbox_win.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include "content/common/content_export.h"
+#include "sandbox/win/src/sandbox_types.h"
#include "sandbox/win/src/security_level.h"
namespace base {
@@ -24,19 +25,21 @@ 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 base::CommandLine& cmd_line,
- sandbox::JobLevel job_level,
- uint32_t ui_exceptions,
- sandbox::TargetPolicy* policy);
+sandbox::ResultCode SetJobLevel(const base::CommandLine& cmd_line,
+ sandbox::JobLevel job_level,
+ uint32_t ui_exceptions,
+ sandbox::TargetPolicy* policy);
// Closes handles that are opened at process creation and initialization.
-void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy);
+sandbox::ResultCode AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy);
// Add AppContainer policy for |sid| on supported OS.
-void AddAppContainerPolicy(sandbox::TargetPolicy* policy, const wchar_t* sid);
+sandbox::ResultCode AddAppContainerPolicy(sandbox::TargetPolicy* policy,
+ const wchar_t* sid);
// Add the win32k lockdown policy on supported OS.
-bool AddWin32kLockdownPolicy(sandbox::TargetPolicy* policy, bool enable_opm);
+sandbox::ResultCode AddWin32kLockdownPolicy(sandbox::TargetPolicy* policy,
+ bool enable_opm);
bool InitBrokerServices(sandbox::BrokerServices* broker_services);
« no previous file with comments | « content/browser/utility_process_host_impl.cc ('k') | content/common/sandbox_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698