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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/scoped_vector.h" | 16 #include "base/memory/scoped_vector.h" |
17 #include "base/pickle.h" | 17 #include "base/pickle.h" |
18 #include "base/shared_memory.h" | 18 #include "base/shared_memory.h" |
19 #include "base/synchronization/condition_variable.h" | 19 #include "base/synchronization/condition_variable.h" |
20 #include "base/synchronization/lock.h" | 20 #include "base/synchronization/lock.h" |
21 #include "base/task_runner.h" | 21 #include "base/task_runner.h" |
22 #include "ipc/ipc_listener.h" | 22 #include "ipc/ipc_listener.h" |
| 23 #include "ppapi/c/pp_stdint.h" |
23 #include "ppapi/proxy/handle_converter.h" | 24 #include "ppapi/proxy/handle_converter.h" |
24 | 25 |
25 struct NaClDesc; | 26 struct NaClDesc; |
26 struct NaClImcTypedMsgHdr; | 27 struct NaClImcTypedMsgHdr; |
27 struct PP_Size; | 28 struct PP_Size; |
28 | 29 |
29 namespace IPC { | 30 namespace IPC { |
30 class Channel; | 31 class Channel; |
31 struct ChannelHandle; | 32 struct ChannelHandle; |
32 } | 33 } |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 179 |
179 // To be accessed inside of lock_ only. | 180 // To be accessed inside of lock_ only. |
180 LockedData locked_data_; | 181 LockedData locked_data_; |
181 | 182 |
182 // To be accessed on the I/O thread (via task runner) only. | 183 // To be accessed on the I/O thread (via task runner) only. |
183 IOThreadData io_thread_data_; | 184 IOThreadData io_thread_data_; |
184 | 185 |
185 DISALLOW_COPY_AND_ASSIGN(NaClIPCAdapter); | 186 DISALLOW_COPY_AND_ASSIGN(NaClIPCAdapter); |
186 }; | 187 }; |
187 | 188 |
| 189 // Export TranslatePepperFileReadWriteOpenFlags for testing. |
| 190 int TranslatePepperFileReadWriteOpenFlagsForTesting(int32_t pp_open_flags); |
| 191 |
188 #endif // CHROME_NACL_NACL_IPC_ADAPTER_H_ | 192 #endif // CHROME_NACL_NACL_IPC_ADAPTER_H_ |
OLD | NEW |