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_SHAREDMEM_IPC_SERVER_H_ | 5 #ifndef SANDBOX_SRC_SHAREDMEM_IPC_SERVER_H_ |
6 #define SANDBOX_SRC_SHAREDMEM_IPC_SERVER_H_ | 6 #define SANDBOX_SRC_SHAREDMEM_IPC_SERVER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 #include "sandbox/src/crosscall_params.h" | 12 #include "sandbox/win/src/crosscall_params.h" |
13 #include "sandbox/src/crosscall_server.h" | 13 #include "sandbox/win/src/crosscall_server.h" |
14 #include "sandbox/src/sharedmem_ipc_client.h" | 14 #include "sandbox/win/src/sharedmem_ipc_client.h" |
15 | 15 |
16 // IPC transport implementation that uses shared memory. | 16 // IPC transport implementation that uses shared memory. |
17 // This is the server side | 17 // This is the server side |
18 // | 18 // |
19 // The server side has knowledge about the layout of the shared memory | 19 // The server side has knowledge about the layout of the shared memory |
20 // and the state transitions. Both are explained in sharedmem_ipc_client.h | 20 // and the state transitions. Both are explained in sharedmem_ipc_client.h |
21 // | 21 // |
22 // As opposed to SharedMemIPClient, the Server object should be one for the | 22 // As opposed to SharedMemIPClient, the Server object should be one for the |
23 // entire lifetime of the target process. The server is in charge of creating | 23 // entire lifetime of the target process. The server is in charge of creating |
24 // the events (ping, pong) both for the client and for the target that are used | 24 // the events (ping, pong) both for the client and for the target that are used |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 // The dispatcher handles 'ready' IPC calls. | 119 // The dispatcher handles 'ready' IPC calls. |
120 Dispatcher* call_dispatcher_; | 120 Dispatcher* call_dispatcher_; |
121 | 121 |
122 DISALLOW_COPY_AND_ASSIGN(SharedMemIPCServer); | 122 DISALLOW_COPY_AND_ASSIGN(SharedMemIPCServer); |
123 }; | 123 }; |
124 | 124 |
125 } // namespace sandbox | 125 } // namespace sandbox |
126 | 126 |
127 #endif // SANDBOX_SRC_SHAREDMEM_IPC_SERVER_H_ | 127 #endif // SANDBOX_SRC_SHAREDMEM_IPC_SERVER_H_ |
OLD | NEW |