Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: ipc/attachment_broker_messages.h

Issue 1205713002: Make attachment broker a subclass of IPC::Listener. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@attachment_broker3_listener_base
Patch Set: Update copyright date. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ipc/attachment_broker.h ('k') | ipc/attachment_broker_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // IPC messages used by the attachment broker. 5 // IPC messages used by the attachment broker.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "ipc/brokerable_attachment.h" 8 #include "ipc/brokerable_attachment.h"
9 #include "ipc/ipc_export.h"
9 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
10 11
11 #if defined(OS_WIN) 12 #if defined(OS_WIN)
12 #include "ipc/handle_attachment_win.h" 13 #include "ipc/handle_attachment_win.h"
13 #endif // defined(OS_WIN) 14 #endif // defined(OS_WIN)
14 15
15 // ---------------------------------------------------------------------------- 16 // ----------------------------------------------------------------------------
16 // Serialization of structs. 17 // Serialization of structs.
17 // ---------------------------------------------------------------------------- 18 // ----------------------------------------------------------------------------
18 19
19 #if defined(OS_WIN) 20 #if defined(OS_WIN)
20 IPC_STRUCT_TRAITS_BEGIN(IPC::internal::HandleAttachmentWin::WireFormat) 21 IPC_STRUCT_TRAITS_BEGIN(IPC::internal::HandleAttachmentWin::WireFormat)
21 IPC_STRUCT_TRAITS_MEMBER(handle) 22 IPC_STRUCT_TRAITS_MEMBER(handle)
22 IPC_STRUCT_TRAITS_MEMBER(destination_process) 23 IPC_STRUCT_TRAITS_MEMBER(destination_process)
23 IPC_STRUCT_TRAITS_MEMBER(attachment_id) 24 IPC_STRUCT_TRAITS_MEMBER(attachment_id)
24 IPC_STRUCT_TRAITS_END() 25 IPC_STRUCT_TRAITS_END()
25 #endif // defined(OS_WIN) 26 #endif // defined(OS_WIN)
26 27
28 #undef IPC_MESSAGE_EXPORT
29 #define IPC_MESSAGE_EXPORT IPC_EXPORT
27 #define IPC_MESSAGE_START AttachmentBrokerMsgStart 30 #define IPC_MESSAGE_START AttachmentBrokerMsgStart
28 31
29 // ---------------------------------------------------------------------------- 32 // ----------------------------------------------------------------------------
30 // Messages sent from the broker to a non-broker process. 33 // Messages sent from the broker to a non-broker process.
31 // ---------------------------------------------------------------------------- 34 // ----------------------------------------------------------------------------
32 35
33 #if defined(OS_WIN) 36 #if defined(OS_WIN)
34 // Sent from a broker to a non-broker to indicate that a windows HANDLE has been 37 // Sent from a broker to a non-broker to indicate that a windows HANDLE has been
35 // brokered. Contains all information necessary for the non-broker to translate 38 // brokered. Contains all information necessary for the non-broker to translate
36 // a BrokerAttachment::AttachmentId to a BrokerAttachment. 39 // a BrokerAttachment::AttachmentId to a BrokerAttachment.
37 IPC_MESSAGE_CONTROL1( 40 IPC_MESSAGE_CONTROL1(
38 AttachmentBrokerMsg_WinHandleHasBeenDuplicated, 41 AttachmentBrokerMsg_WinHandleHasBeenDuplicated,
39 IPC::internal::HandleAttachmentWin::WireFormat /* wire_format */) 42 IPC::internal::HandleAttachmentWin::WireFormat /* wire_format */)
40 #endif // defined(OS_WIN) 43 #endif // defined(OS_WIN)
41 44
42 // ---------------------------------------------------------------------------- 45 // ----------------------------------------------------------------------------
43 // Messages sent from a non-broker process to a broker process. 46 // Messages sent from a non-broker process to a broker process.
44 // ---------------------------------------------------------------------------- 47 // ----------------------------------------------------------------------------
45 48
46 #if defined(OS_WIN) 49 #if defined(OS_WIN)
47 // Sent from a non-broker to a broker to request the duplication of a HANDLE 50 // Sent from a non-broker to a broker to request the duplication of a HANDLE
48 // into a different process (possibly the broker process, or even the original 51 // into a different process (possibly the broker process, or even the original
49 // process). 52 // process).
50 IPC_MESSAGE_CONTROL1( 53 IPC_MESSAGE_CONTROL1(
51 AttachmentBrokerMsg_DuplicateWinHandle, 54 AttachmentBrokerMsg_DuplicateWinHandle,
52 IPC::internal::HandleAttachmentWin::WireFormat /* wire_format */) 55 IPC::internal::HandleAttachmentWin::WireFormat /* wire_format */)
53 #endif // defined(OS_WIN) 56 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « ipc/attachment_broker.h ('k') | ipc/attachment_broker_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698