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 3 // found in the LICENSE file. 4 5 // Multiply-included file, no traditional include guard. 6 #include "build/build_config.h" 7 8 #include "ipc/ipc_message_macros.h" 9 #define IPC_MESSAGE_START IPCTestMsgStart 10 11 #if defined(OS_WIN) 12 #include "base/memory/shared_memory_handle.h" 13 #include "ipc/handle_win.h" 14 15 IPC_MESSAGE_CONTROL3(TestHandleWinMsg, int, IPC::HandleWin, int) 16 IPC_MESSAGE_CONTROL2(TestTwoHandleWinMsg, IPC::HandleWin, IPC::HandleWin) 17 IPC_MESSAGE_CONTROL1(TestSharedMemoryHandleMsg1, base::SharedMemoryHandle) 18 #endif // defined(OS_WIN) 19 20 #if defined(OS_MACOSX) 21 #include "base/file_descriptor_posix.h" 22 #include "base/memory/shared_memory_handle.h" 23 24 IPC_MESSAGE_CONTROL3(TestSharedMemoryHandleMsg1, 25 int, 26 base::SharedMemoryHandle, 27 int) 28 IPC_MESSAGE_CONTROL2(TestSharedMemoryHandleMsg2, 29 base::SharedMemoryHandle, 30 base::SharedMemoryHandle) 31 IPC_MESSAGE_CONTROL4(TestSharedMemoryHandleMsg3, 32 base::FileDescriptor, 33 base::SharedMemoryHandle, 34 base::FileDescriptor, 35 base::SharedMemoryHandle) 36 IPC_MESSAGE_CONTROL1(TestSharedMemoryHandleMsg4, int) 37 38 #endif // defined(OS_MACOSX) 39