OLD | NEW |
---|---|
1 // Copyright (c) 2006-2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
rvargas (doing something else)
2012/09/28 18:12:12
We were not supposed to touch dates anymore... yea
eroman
2012/09/28 19:28:29
Yeah, unfortunately the commit queue wouldn't let
| |
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_TYPES_H_ | 5 #ifndef SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ |
6 #define SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ | 6 #define SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ |
7 | 7 |
8 namespace sandbox { | 8 namespace sandbox { |
9 | 9 |
10 // Operation result codes returned by the sandbox API. | 10 // Operation result codes returned by the sandbox API. |
11 enum ResultCode { | 11 enum ResultCode { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 }; | 50 }; |
51 | 51 |
52 // If the sandbox cannot create a secure environment for the target, the | 52 // If the sandbox cannot create a secure environment for the target, the |
53 // target will be forcibly terminated. These are the process exit codes. | 53 // target will be forcibly terminated. These are the process exit codes. |
54 enum TerminationCodes { | 54 enum TerminationCodes { |
55 SBOX_FATAL_INTEGRITY = 7006, // Could not set the integrity level. | 55 SBOX_FATAL_INTEGRITY = 7006, // Could not set the integrity level. |
56 SBOX_FATAL_DROPTOKEN = 7007, // Could not lower the token. | 56 SBOX_FATAL_DROPTOKEN = 7007, // Could not lower the token. |
57 SBOX_FATAL_FLUSHANDLES = 7008, // Failed to flush registry handles. | 57 SBOX_FATAL_FLUSHANDLES = 7008, // Failed to flush registry handles. |
58 SBOX_FATAL_CACHEDISABLE = 7009, // Failed to forbid HCKU caching. | 58 SBOX_FATAL_CACHEDISABLE = 7009, // Failed to forbid HCKU caching. |
59 SBOX_FATAL_CLOSEHANDLES = 7010, // Failed to close pending handles. | 59 SBOX_FATAL_CLOSEHANDLES = 7010, // Failed to close pending handles. |
60 SBOX_FATAL_MITIGATION = 7011 // Could not set the mitigation policy. | 60 SBOX_FATAL_MITIGATION = 7011, // Could not set the mitigation policy. |
61 SBOX_FATAL_LAST | |
61 }; | 62 }; |
62 | 63 |
63 class BrokerServices; | 64 class BrokerServices; |
64 class TargetServices; | 65 class TargetServices; |
65 | 66 |
66 // Contains the pointer to a target or broker service. | 67 // Contains the pointer to a target or broker service. |
67 struct SandboxInterfaceInfo { | 68 struct SandboxInterfaceInfo { |
68 BrokerServices* broker_services; | 69 BrokerServices* broker_services; |
69 TargetServices* target_services; | 70 TargetServices* target_services; |
70 }; | 71 }; |
(...skipping 10 matching lines...) Expand all Loading... | |
81 INTERCEPTION_EAT, | 82 INTERCEPTION_EAT, |
82 INTERCEPTION_SIDESTEP, // Preamble patch | 83 INTERCEPTION_SIDESTEP, // Preamble patch |
83 INTERCEPTION_SMART_SIDESTEP, // Preamble patch but bypass internal calls | 84 INTERCEPTION_SMART_SIDESTEP, // Preamble patch but bypass internal calls |
84 INTERCEPTION_UNLOAD_MODULE, // Unload the module (don't patch) | 85 INTERCEPTION_UNLOAD_MODULE, // Unload the module (don't patch) |
85 INTERCEPTION_LAST // Placeholder for last item in the enumeration | 86 INTERCEPTION_LAST // Placeholder for last item in the enumeration |
86 }; | 87 }; |
87 | 88 |
88 } // namespace sandbox | 89 } // namespace sandbox |
89 | 90 |
90 #endif // SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ | 91 #endif // SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ |
OLD | NEW |