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

Unified Diff: content/common/sandbox_win.h

Issue 1851213002: Remove sandbox on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nacl compile issues Created 4 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/common/sandbox_util.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 f2800fd5d2804503a237ffbacbfb6e83ea3a43da..c3afea96824fd45811e80ed1ae5252ba4eae92af 100644
--- a/content/common/sandbox_win.h
+++ b/content/common/sandbox_win.h
@@ -7,40 +7,17 @@
#include <stdint.h>
-#include "content/common/content_export.h"
-#include "sandbox/win/src/security_level.h"
-
-namespace base {
-class CommandLine;
-}
+#include <windows.h>
-namespace sandbox {
-class BrokerServices;
-class TargetPolicy;
-class TargetServices;
-}
+#include "content/common/content_export.h"
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);
-
-// Closes handles that are opened at process creation and initialization.
-void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy);
-
-// Add AppContainer policy for |sid| on supported OS.
-void AddAppContainerPolicy(sandbox::TargetPolicy* policy, const wchar_t* sid);
-
-// Add the win32k lockdown policy on supported OS.
-bool AddWin32kLockdownPolicy(sandbox::TargetPolicy* policy);
-
-bool InitBrokerServices(sandbox::BrokerServices* broker_services);
-
-bool InitTargetServices(sandbox::TargetServices* target_services);
+bool BrokerDuplicateHandle(HANDLE source_handle,
+ DWORD target_process_id,
+ HANDLE* target_handle,
+ DWORD desired_access,
+ DWORD options);
} // namespace content
« no previous file with comments | « content/common/sandbox_util.cc ('k') | content/common/sandbox_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698