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 CHROME_NACL_NACL_IPC_ADAPTER_H_ | 5 #ifndef CHROME_NACL_NACL_IPC_ADAPTER_H_ |
6 #define CHROME_NACL_NACL_IPC_ADAPTER_H_ | 6 #define CHROME_NACL_NACL_IPC_ADAPTER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 struct NaClDesc; | 24 struct NaClDesc; |
25 struct NaClImcTypedMsgHdr; | 25 struct NaClImcTypedMsgHdr; |
26 struct PP_Size; | 26 struct PP_Size; |
27 | 27 |
28 namespace IPC { | 28 namespace IPC { |
29 class Channel; | 29 class Channel; |
30 struct ChannelHandle; | 30 struct ChannelHandle; |
31 } | 31 } |
32 | 32 |
33 namespace nacl { | |
34 class DescWrapper; | |
35 } | |
36 | |
37 namespace ppapi { | 33 namespace ppapi { |
38 class HostResource; | 34 class HostResource; |
39 } | 35 } |
40 | 36 |
41 // Adapts a Chrome IPC channel to an IPC channel that we expose to Native | 37 // Adapts a Chrome IPC channel to an IPC channel that we expose to Native |
42 // Client. This provides a mapping in both directions, so when IPC messages | 38 // Client. This provides a mapping in both directions, so when IPC messages |
43 // come in from another process, we rewrite them and allow them to be received | 39 // come in from another process, we rewrite them and allow them to be received |
44 // via a recvmsg-like interface in the NaCl code. When NaCl code calls sendmsg, | 40 // via a recvmsg-like interface in the NaCl code. When NaCl code calls sendmsg, |
45 // we implement that as sending IPC messages on the channel. | 41 // we implement that as sending IPC messages on the channel. |
46 // | 42 // |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // To be accessed inside of lock_ only. | 178 // To be accessed inside of lock_ only. |
183 LockedData locked_data_; | 179 LockedData locked_data_; |
184 | 180 |
185 // To be accessed on the I/O thread (via task runner) only. | 181 // To be accessed on the I/O thread (via task runner) only. |
186 IOThreadData io_thread_data_; | 182 IOThreadData io_thread_data_; |
187 | 183 |
188 DISALLOW_COPY_AND_ASSIGN(NaClIPCAdapter); | 184 DISALLOW_COPY_AND_ASSIGN(NaClIPCAdapter); |
189 }; | 185 }; |
190 | 186 |
191 #endif // CHROME_NACL_NACL_IPC_ADAPTER_H_ | 187 #endif // CHROME_NACL_NACL_IPC_ADAPTER_H_ |
OLD | NEW |