OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include "ipc/handle_win.h" | 8 #include "ipc/handle_win.h" |
9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
10 #define IPC_MESSAGE_START IPCTestMsgStart | 10 #define IPC_MESSAGE_START IPCTestMsgStart |
11 | 11 |
12 IPC_MESSAGE_CONTROL3(TestHandleWinMsg, int, IPC::HandleWin, int) | 12 IPC_MESSAGE_CONTROL3(TestHandleWinMsg, int, IPC::HandleWin, int) |
13 IPC_MESSAGE_CONTROL2(TestTwoHandleWinMsg, IPC::HandleWin, IPC::HandleWin) | 13 IPC_MESSAGE_CONTROL2(TestTwoHandleWinMsg, IPC::HandleWin, IPC::HandleWin) |
14 #endif // defined(OS_WIN) | 14 #endif // defined(OS_WIN) |
15 | |
16 #if defined(OS_MACOSX) | |
17 #include "base/file_descriptor_posix.h" | |
18 #include "base/memory/shared_memory_handle.h" | |
19 #include "ipc/ipc_message_macros.h" | |
20 #define IPC_MESSAGE_START IPCTestMsgStart | |
Tom Sepez
2015/10/09 22:38:47
Do we need this redefinition (line 10)?
erikchen
2015/10/09 23:14:44
The #define must happen after
#include "ipc/ipc_
| |
21 | |
22 IPC_MESSAGE_CONTROL3(TestSharedMemoryHandleMsg1, | |
23 int, | |
24 base::SharedMemoryHandle, | |
25 int) | |
26 IPC_MESSAGE_CONTROL2(TestSharedMemoryHandleMsg2, | |
27 base::SharedMemoryHandle, | |
28 base::SharedMemoryHandle) | |
29 IPC_MESSAGE_CONTROL4(TestSharedMemoryHandleMsg3, | |
30 base::FileDescriptor, | |
31 base::SharedMemoryHandle, | |
32 base::FileDescriptor, | |
33 base::SharedMemoryHandle) | |
34 #endif // defined(OS_WIN) | |
Tom Sepez
2015/10/09 22:38:47
OS_MAXCOSX
erikchen
2015/10/09 23:14:44
Done.
| |
OLD | NEW |