| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ | 5 #ifndef SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ |
| 6 #define SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ | 6 #define SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual MitigationFlags GetProcessMitigations() OVERRIDE; | 56 virtual MitigationFlags GetProcessMitigations() OVERRIDE; |
| 57 virtual ResultCode SetDelayedProcessMitigations( | 57 virtual ResultCode SetDelayedProcessMitigations( |
| 58 MitigationFlags flags) OVERRIDE; | 58 MitigationFlags flags) OVERRIDE; |
| 59 virtual MitigationFlags GetDelayedProcessMitigations() OVERRIDE; | 59 virtual MitigationFlags GetDelayedProcessMitigations() OVERRIDE; |
| 60 virtual void SetStrictInterceptions() OVERRIDE; | 60 virtual void SetStrictInterceptions() OVERRIDE; |
| 61 virtual ResultCode SetStdoutHandle(HANDLE handle) OVERRIDE; | 61 virtual ResultCode SetStdoutHandle(HANDLE handle) OVERRIDE; |
| 62 virtual ResultCode SetStderrHandle(HANDLE handle) OVERRIDE; | 62 virtual ResultCode SetStderrHandle(HANDLE handle) OVERRIDE; |
| 63 virtual ResultCode AddRule(SubSystem subsystem, Semantics semantics, | 63 virtual ResultCode AddRule(SubSystem subsystem, Semantics semantics, |
| 64 const wchar_t* pattern) OVERRIDE; | 64 const wchar_t* pattern) OVERRIDE; |
| 65 virtual ResultCode AddDllToUnload(const wchar_t* dll_name); | 65 virtual ResultCode AddDllToUnload(const wchar_t* dll_name); |
| 66 virtual ResultCode AddKernelObjectToClose(const char16* handle_type, | 66 virtual ResultCode AddKernelObjectToClose( |
| 67 const char16* handle_name) OVERRIDE; | 67 const base::char16* handle_type, |
| 68 const base::char16* handle_name) OVERRIDE; |
| 68 | 69 |
| 69 // Dispatcher: | 70 // Dispatcher: |
| 70 virtual Dispatcher* OnMessageReady(IPCParams* ipc, | 71 virtual Dispatcher* OnMessageReady(IPCParams* ipc, |
| 71 CallbackGeneric* callback) OVERRIDE; | 72 CallbackGeneric* callback) OVERRIDE; |
| 72 virtual bool SetupService(InterceptionManager* manager, int service) OVERRIDE; | 73 virtual bool SetupService(InterceptionManager* manager, int service) OVERRIDE; |
| 73 | 74 |
| 74 // Creates a Job object with the level specified in a previous call to | 75 // Creates a Job object with the level specified in a previous call to |
| 75 // SetJobLevel(). | 76 // SetJobLevel(). |
| 76 ResultCode MakeJobObject(HANDLE* job); | 77 ResultCode MakeJobObject(HANDLE* job); |
| 77 | 78 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 152 |
| 152 static HDESK alternate_desktop_handle_; | 153 static HDESK alternate_desktop_handle_; |
| 153 static HWINSTA alternate_winstation_handle_; | 154 static HWINSTA alternate_winstation_handle_; |
| 154 | 155 |
| 155 DISALLOW_COPY_AND_ASSIGN(PolicyBase); | 156 DISALLOW_COPY_AND_ASSIGN(PolicyBase); |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 } // namespace sandbox | 159 } // namespace sandbox |
| 159 | 160 |
| 160 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ | 161 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ |
| OLD | NEW |