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" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "sandbox/src/crosscall_params.h" | 12 #include "sandbox/win/src/crosscall_params.h" |
13 | 13 |
14 // This is the IPC server interface for CrossCall: The IPC for the Sandbox | 14 // This is the IPC server interface for CrossCall: The IPC for the Sandbox |
15 // On the server, CrossCall needs two things: | 15 // On the server, CrossCall needs two things: |
16 // 1) threads: Or better said, someone to provide them, that is what the | 16 // 1) threads: Or better said, someone to provide them, that is what the |
17 // ThreadProvider interface is defined for. These thread(s) are | 17 // ThreadProvider interface is defined for. These thread(s) are |
18 // the ones that will actually execute the IPC data retrieval. | 18 // the ones that will actually execute the IPC data retrieval. |
19 // | 19 // |
20 // 2) a dispatcher: This interface represents the way to route and process | 20 // 2) a dispatcher: This interface represents the way to route and process |
21 // an IPC call given the IPC tag. | 21 // an IPC call given the IPC tag. |
22 // | 22 // |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 CallbackGeneric callback; | 215 CallbackGeneric callback; |
216 }; | 216 }; |
217 | 217 |
218 // List of IPC Calls supported by the class. | 218 // List of IPC Calls supported by the class. |
219 std::vector<IPCCall> ipc_calls_; | 219 std::vector<IPCCall> ipc_calls_; |
220 }; | 220 }; |
221 | 221 |
222 } // namespace sandbox | 222 } // namespace sandbox |
223 | 223 |
224 #endif // SANDBOX_SRC_CROSSCALL_SERVER_H_ | 224 #endif // SANDBOX_SRC_CROSSCALL_SERVER_H_ |
OLD | NEW |