OLD | NEW |
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 "base/process/process_handle.h" | 8 #include "base/process/process_handle.h" |
9 #include "ipc/brokerable_attachment.h" | 9 #include "ipc/brokerable_attachment.h" |
10 #include "ipc/ipc_export.h" | 10 #include "ipc/ipc_export.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #endif // defined(OS_WIN) | 44 #endif // defined(OS_WIN) |
45 | 45 |
46 // ---------------------------------------------------------------------------- | 46 // ---------------------------------------------------------------------------- |
47 // Messages sent from a non-broker process to a broker process. | 47 // Messages sent from a non-broker process to a broker process. |
48 // ---------------------------------------------------------------------------- | 48 // ---------------------------------------------------------------------------- |
49 | 49 |
50 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
51 // Sent from a non-broker to a broker to request the duplication of a HANDLE | 51 // Sent from a non-broker to a broker to request the duplication of a HANDLE |
52 // into a different process (possibly the broker process, or even the original | 52 // into a different process (possibly the broker process, or even the original |
53 // process). | 53 // process). |
54 // TODO(erikchen): https://code.google.com/p/chromium/issues/detail?id=513431 | 54 IPC_MESSAGE_CONTROL1( |
55 // *sender_pid* should be unforgeably generated by the receiving channel. | |
56 IPC_MESSAGE_CONTROL2( | |
57 AttachmentBrokerMsg_DuplicateWinHandle, | 55 AttachmentBrokerMsg_DuplicateWinHandle, |
58 IPC::internal::HandleAttachmentWin::WireFormat /* wire_format */, | 56 IPC::internal::HandleAttachmentWin::WireFormat /* wire_format */) |
59 base::ProcessId /* sender_pid */) | |
60 #endif // defined(OS_WIN) | 57 #endif // defined(OS_WIN) |
OLD | NEW |