From eece6c3ca617b0d3c37ce137aba1d2079ab892e4 Mon Sep 17 00:00:00 2001 From: erikchen Date: Tue, 7 Jul 2015 15:13:11 -0700 Subject: Stub in more IPC attachment brokering functionality. This CL fills in most of the logic for sending a Windows HANDLE from a non-broker process to the broker process. This consists of several small changes: - Create the new IPC messages AttachmentBrokerMsg_WinHandleHasBeenBrokered and AttachmentBrokerMsg_RequestBrokerageOfWinHandle. - Add a sender_ member variable to AttachmentBrokerWin. - Define the wire format for HandleAttachmentWin. - Add logic to ChannelWin to send AttachmentBrokerMsg_RequestBrokerageOfWinHandle for each HANDLE attachment. BUG=466437 Review URL: https://codereview.chromium.org/1188923003 Cr-Commit-Position: refs/heads/master@{#337689} --- ipc/ipc.gypi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ipc/ipc.gypi') diff --git a/ipc/ipc.gypi b/ipc/ipc.gypi index 65979d1..9a9407e 100644 --- a/ipc/ipc.gypi +++ b/ipc/ipc.gypi @@ -12,10 +12,12 @@ ['ipc_target==1', { 'sources': [ 'attachment_broker.h', + 'attachment_broker_messages.h', 'attachment_broker_win.cc', 'attachment_broker_win.h', 'brokerable_attachment.cc', 'brokerable_attachment.h', + 'handle_attachment_win.cc', 'handle_attachment_win.h', 'ipc_channel.cc', 'ipc_channel.h', @@ -37,6 +39,8 @@ 'ipc_export.h', 'ipc_forwarding_message_filter.cc', 'ipc_forwarding_message_filter.h', + 'ipc_handle_win.cc', + 'ipc_handle_win.h', 'ipc_listener.h', 'ipc_logging.cc', 'ipc_logging.h', @@ -46,6 +50,8 @@ 'ipc_message_attachment.h', 'ipc_message_attachment_set.cc', 'ipc_message_attachment_set.h', + 'ipc_message_generator.cc', + 'ipc_message_generator.h', 'ipc_message_macros.h', 'ipc_message_start.h', 'ipc_message_utils.cc', -- cgit v1.1