ExtensionInstallDialogView: fix scrolling behavior on Views (Win,Linux)
[chromium-blink-merge.git] / ipc / attachment_broker_messages.h
blobee136812f44adf5da2da1e848caa5ecf791b146e
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 "ipc/brokerable_attachment.h"
9 #include "ipc/ipc_export.h"
10 #include "ipc/ipc_message_macros.h"
12 #if defined(OS_WIN)
13 #include "ipc/handle_attachment_win.h"
14 #endif // defined(OS_WIN)
16 // ----------------------------------------------------------------------------
17 // Serialization of structs.
18 // ----------------------------------------------------------------------------
20 #if defined(OS_WIN)
21 IPC_STRUCT_TRAITS_BEGIN(IPC::internal::HandleAttachmentWin::WireFormat)
22 IPC_STRUCT_TRAITS_MEMBER(handle)
23 IPC_STRUCT_TRAITS_MEMBER(destination_process)
24 IPC_STRUCT_TRAITS_MEMBER(attachment_id)
25 IPC_STRUCT_TRAITS_END()
26 #endif // defined(OS_WIN)
28 #undef IPC_MESSAGE_EXPORT
29 #define IPC_MESSAGE_EXPORT IPC_EXPORT
30 #define IPC_MESSAGE_START AttachmentBrokerMsgStart
32 // ----------------------------------------------------------------------------
33 // Messages sent from the broker to a non-broker process.
34 // ----------------------------------------------------------------------------
36 #if defined(OS_WIN)
37 // Sent from a broker to a non-broker to indicate that a windows HANDLE has been
38 // brokered. Contains all information necessary for the non-broker to translate
39 // a BrokerAttachment::AttachmentId to a BrokerAttachment.
40 IPC_MESSAGE_CONTROL1(
41 AttachmentBrokerMsg_WinHandleHasBeenDuplicated,
42 IPC::internal::HandleAttachmentWin::WireFormat /* wire_format */)
43 #endif // defined(OS_WIN)
45 // ----------------------------------------------------------------------------
46 // Messages sent from a non-broker process to a broker process.
47 // ----------------------------------------------------------------------------
49 #if defined(OS_WIN)
50 // Sent from a non-broker to a broker to request the duplication of a HANDLE
51 // into a different process (possibly the broker process, or even the original
52 // process).
53 IPC_MESSAGE_CONTROL1(
54 AttachmentBrokerMsg_DuplicateWinHandle,
55 IPC::internal::HandleAttachmentWin::WireFormat /* wire_format */)
56 #endif // defined(OS_WIN)