disable two ClientCertStoreChromeOSTest.* unit_tests on Valgrind bots
[chromium-blink-merge.git] / ipc / attachment_broker_messages.h
blobf0e103d007f9a55768624bad6fadd56d963f1bf8
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.
5 // IPC messages used by the attachment broker.
6 // Multiply-included message file, hence no include guard.
8 #include "base/process/process_handle.h"
9 #include "ipc/brokerable_attachment.h"
10 #include "ipc/ipc_export.h"
11 #include "ipc/ipc_message_macros.h"
13 #if defined(OS_WIN)
14 #include "ipc/handle_attachment_win.h"
15 #endif // defined(OS_WIN)
17 // ----------------------------------------------------------------------------
18 // Serialization of structs.
19 // ----------------------------------------------------------------------------
21 #if defined(OS_WIN)
22 // Define the serialization for Permissions.
23 IPC_ENUM_TRAITS_MAX_VALUE(HandleWin::Permissions, HandleWin::MAX_PERMISSIONS);
25 IPC_STRUCT_TRAITS_BEGIN(IPC::internal::HandleAttachmentWin::WireFormat)
26 IPC_STRUCT_TRAITS_MEMBER(handle)
27 IPC_STRUCT_TRAITS_MEMBER(destination_process)
28 IPC_STRUCT_TRAITS_MEMBER(permissions)
29 IPC_STRUCT_TRAITS_MEMBER(attachment_id)
30 IPC_STRUCT_TRAITS_END()
31 #endif // defined(OS_WIN)
33 #undef IPC_MESSAGE_EXPORT
34 #define IPC_MESSAGE_EXPORT IPC_EXPORT
35 #define IPC_MESSAGE_START AttachmentBrokerMsgStart
37 // ----------------------------------------------------------------------------
38 // Messages sent from the broker to a non-broker process.
39 // ----------------------------------------------------------------------------
41 #if defined(OS_WIN)
42 // Sent from a broker to a non-broker to indicate that a windows HANDLE has been
43 // brokered. Contains all information necessary for the non-broker to translate
44 // a BrokerAttachment::AttachmentId to a BrokerAttachment.
45 IPC_MESSAGE_CONTROL1(
46 AttachmentBrokerMsg_WinHandleHasBeenDuplicated,
47 IPC::internal::HandleAttachmentWin::WireFormat /* wire_format */)
48 #endif // defined(OS_WIN)
50 // ----------------------------------------------------------------------------
51 // Messages sent from a non-broker process to a broker process.
52 // ----------------------------------------------------------------------------
54 #if defined(OS_WIN)
55 // Sent from a non-broker to a broker to request the duplication of a HANDLE
56 // into a different process (possibly the broker process, or even the original
57 // process).
58 IPC_MESSAGE_CONTROL1(
59 AttachmentBrokerMsg_DuplicateWinHandle,
60 IPC::internal::HandleAttachmentWin::WireFormat /* wire_format */)
61 #endif // defined(OS_WIN)