| 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_SRC_CROSSCALL_SERVER_H_ | 5 #ifndef SANDBOX_SRC_CROSSCALL_SERVER_H_ |
| 6 #define SANDBOX_SRC_CROSSCALL_SERVER_H_ | 6 #define SANDBOX_SRC_CROSSCALL_SERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 void SetCallError(ResultCode error, CrossCallReturn* call_return); | 136 void SetCallError(ResultCode error, CrossCallReturn* call_return); |
| 137 | 137 |
| 138 // Sets the internal status of call_return to signify the that IPC call | 138 // Sets the internal status of call_return to signify the that IPC call |
| 139 // completed successfully. | 139 // completed successfully. |
| 140 void SetCallSuccess(CrossCallReturn* call_return); | 140 void SetCallSuccess(CrossCallReturn* call_return); |
| 141 | 141 |
| 142 // Represents the client process that initiated the IPC which boils down to the | 142 // Represents the client process that initiated the IPC which boils down to the |
| 143 // process handle and the job object handle that contains the client process. | 143 // process handle and the job object handle that contains the client process. |
| 144 struct ClientInfo { | 144 struct ClientInfo { |
| 145 HANDLE process; | 145 HANDLE process; |
| 146 HANDLE job_object; | |
| 147 DWORD process_id; | 146 DWORD process_id; |
| 148 }; | 147 }; |
| 149 | 148 |
| 150 // All IPC-related information to be passed to the IPC handler. | 149 // All IPC-related information to be passed to the IPC handler. |
| 151 struct IPCInfo { | 150 struct IPCInfo { |
| 152 int ipc_tag; | 151 int ipc_tag; |
| 153 const ClientInfo* client_info; | 152 const ClientInfo* client_info; |
| 154 CrossCallReturn return_info; | 153 CrossCallReturn return_info; |
| 155 }; | 154 }; |
| 156 | 155 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 CallbackGeneric callback; | 216 CallbackGeneric callback; |
| 218 }; | 217 }; |
| 219 | 218 |
| 220 // List of IPC Calls supported by the class. | 219 // List of IPC Calls supported by the class. |
| 221 std::vector<IPCCall> ipc_calls_; | 220 std::vector<IPCCall> ipc_calls_; |
| 222 }; | 221 }; |
| 223 | 222 |
| 224 } // namespace sandbox | 223 } // namespace sandbox |
| 225 | 224 |
| 226 #endif // SANDBOX_SRC_CROSSCALL_SERVER_H_ | 225 #endif // SANDBOX_SRC_CROSSCALL_SERVER_H_ |
| OLD | NEW |