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

Side by Side Diff: sandbox/win/src/crosscall_server.h

Issue 1227863003: Sandbox: Remove job_object from (IPCInfo::)ClientInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | sandbox/win/src/sharedmem_ipc_server.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | sandbox/win/src/sharedmem_ipc_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698