OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_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 #include "base/process/kill.h" | 8 #include "base/process/kill.h" |
9 #include "base/process/launch.h" | 9 #include "base/process/launch.h" |
10 | 10 |
11 namespace sandbox { | 11 namespace sandbox { |
12 | 12 |
13 // Operation result codes returned by the sandbox API. | 13 // Operation result codes returned by the sandbox API. |
14 // | 14 // |
15 // Note: These codes are listed in a histogram and any new codes should be added | 15 // Note: These codes are listed in a histogram and any new codes should be added |
16 // at the end. | 16 // at the end. If the underlying type is changed then the forward declaration in |
| 17 // sandbox_init.h must be updated. |
17 // | 18 // |
18 enum ResultCode : int { | 19 enum ResultCode : int { |
19 SBOX_ALL_OK = 0, | 20 SBOX_ALL_OK = 0, |
20 // Error is originating on the win32 layer. Call GetlastError() for more | 21 // Error is originating on the win32 layer. Call GetlastError() for more |
21 // information. | 22 // information. |
22 SBOX_ERROR_GENERIC = 1, | 23 SBOX_ERROR_GENERIC = 1, |
23 // An invalid combination of parameters was given to the API. | 24 // An invalid combination of parameters was given to the API. |
24 SBOX_ERROR_BAD_PARAMS = 2, | 25 SBOX_ERROR_BAD_PARAMS = 2, |
25 // The desired operation is not supported at this time. | 26 // The desired operation is not supported at this time. |
26 SBOX_ERROR_UNSUPPORTED = 3, | 27 SBOX_ERROR_UNSUPPORTED = 3, |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 INTERCEPTION_EAT, | 150 INTERCEPTION_EAT, |
150 INTERCEPTION_SIDESTEP, // Preamble patch | 151 INTERCEPTION_SIDESTEP, // Preamble patch |
151 INTERCEPTION_SMART_SIDESTEP, // Preamble patch but bypass internal calls | 152 INTERCEPTION_SMART_SIDESTEP, // Preamble patch but bypass internal calls |
152 INTERCEPTION_UNLOAD_MODULE, // Unload the module (don't patch) | 153 INTERCEPTION_UNLOAD_MODULE, // Unload the module (don't patch) |
153 INTERCEPTION_LAST // Placeholder for last item in the enumeration | 154 INTERCEPTION_LAST // Placeholder for last item in the enumeration |
154 }; | 155 }; |
155 | 156 |
156 } // namespace sandbox | 157 } // namespace sandbox |
157 | 158 |
158 #endif // SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ | 159 #endif // SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ |
OLD | NEW |