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

Side by Side Diff: sandbox/src/sandbox_types.h

Issue 113190: Add support for alternate window station. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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_SRC_SANDBOX_TYPES_H_ 5 #ifndef SANDBOX_SRC_SANDBOX_TYPES_H_
6 #define SANDBOX_SRC_SANDBOX_TYPES_H_ 6 #define SANDBOX_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 12 matching lines...) Expand all
24 // The ipc service did not complete. 24 // The ipc service did not complete.
25 SBOX_ERROR_FAILED_IPC = 6, 25 SBOX_ERROR_FAILED_IPC = 6,
26 // The requested handle was not found. 26 // The requested handle was not found.
27 SBOX_ERROR_NO_HANDLE = 7, 27 SBOX_ERROR_NO_HANDLE = 7,
28 // This function was not expected to be called at this time. 28 // This function was not expected to be called at this time.
29 SBOX_ERROR_UNEXPECTED_CALL = 8, 29 SBOX_ERROR_UNEXPECTED_CALL = 8,
30 // WaitForAllTargets is already called. 30 // WaitForAllTargets is already called.
31 SBOX_ERROR_WAIT_ALREADY_CALLED = 9, 31 SBOX_ERROR_WAIT_ALREADY_CALLED = 9,
32 // A channel error prevented DoCall from executing. 32 // A channel error prevented DoCall from executing.
33 SBOX_ERROR_CHANNEL_ERROR = 10, 33 SBOX_ERROR_CHANNEL_ERROR = 10,
34 // Failed to create the alternate desktop.
35 SBOX_ERROR_CANNOT_CREATE_DESKTOP = 11,
36 // Failed to create the alternate window station.
37 SBOX_ERROR_CANNOT_CREATE_WINSTATION = 12,
38 // Failed to switch back to the interactive window station.
39 SBOX_ERROR_FAILED_TO_SWITCH_BACK_WINSTATION = 13,
34 // Placeholder for last item of the enum. 40 // Placeholder for last item of the enum.
35 SBOX_ERROR_LAST 41 SBOX_ERROR_LAST
36 }; 42 };
37 43
38 // If the sandbox cannot create a secure environment for the target, the 44 // If the sandbox cannot create a secure environment for the target, the
39 // target will be forcibly terminated. These are the process exit codes. 45 // target will be forcibly terminated. These are the process exit codes.
40 enum TerminationCodes { 46 enum TerminationCodes {
41 SBOX_FATAL_INTEGRITY = 7006, // Could not set the integrity level. 47 SBOX_FATAL_INTEGRITY = 7006, // Could not set the integrity level.
42 SBOX_FATAL_DROPTOKEN = 7007, // Could not lower the token. 48 SBOX_FATAL_DROPTOKEN = 7007, // Could not lower the token.
43 SBOX_FATAL_FLUSHANDLES = 7008, // Failed to flush registry handles. 49 SBOX_FATAL_FLUSHANDLES = 7008, // Failed to flush registry handles.
(...skipping 21 matching lines...) Expand all
65 INTERCEPTION_EAT, 71 INTERCEPTION_EAT,
66 INTERCEPTION_SIDESTEP, // Preamble patch 72 INTERCEPTION_SIDESTEP, // Preamble patch
67 INTERCEPTION_SMART_SIDESTEP, // Preamble patch but bypass internal calls 73 INTERCEPTION_SMART_SIDESTEP, // Preamble patch but bypass internal calls
68 INTERCEPTION_UNLOAD_MODULE, // Unload the module (don't patch) 74 INTERCEPTION_UNLOAD_MODULE, // Unload the module (don't patch)
69 INTERCEPTION_LAST // Placeholder for last item in the enumeration 75 INTERCEPTION_LAST // Placeholder for last item in the enumeration
70 }; 76 };
71 77
72 } // namespace sandbox 78 } // namespace sandbox
73 79
74 #endif // SANDBOX_SRC_SANDBOX_TYPES_H_ 80 #endif // SANDBOX_SRC_SANDBOX_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698