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 #ifndef MOJO_EDK_SYSTEM_CONNECTION_MANAGER_MESSAGES_H_ | 5 #ifndef MOJO_EDK_SYSTEM_CONNECTION_MANAGER_MESSAGES_H_ |
6 #define MOJO_EDK_SYSTEM_CONNECTION_MANAGER_MESSAGES_H_ | 6 #define MOJO_EDK_SYSTEM_CONNECTION_MANAGER_MESSAGES_H_ |
7 | 7 |
| 8 #include <mojo/macros.h> |
8 #include <string.h> | 9 #include <string.h> |
9 | 10 |
10 #include "mojo/edk/system/process_identifier.h" | 11 #include "mojo/edk/system/process_identifier.h" |
11 #include "mojo/public/c/system/macros.h" | |
12 | 12 |
13 namespace mojo { | 13 namespace mojo { |
14 namespace system { | 14 namespace system { |
15 | 15 |
16 // Align as 8 bytes to force 32/64-bit architectures to match size. | 16 // Align as 8 bytes to force 32/64-bit architectures to match size. |
17 struct MOJO_ALIGNAS(8) ConnectionManagerAckSuccessConnectData { | 17 struct MOJO_ALIGNAS(8) ConnectionManagerAckSuccessConnectData { |
18 // Set to the process identifier of the process that the receiver of this ack | 18 // Set to the process identifier of the process that the receiver of this ack |
19 // ack should connect to. | 19 // ack should connect to. |
20 ProcessIdentifier peer_process_identifier; | 20 ProcessIdentifier peer_process_identifier; |
21 | 21 |
22 // Whether the receiver of this ack is the first party in the connection. This | 22 // Whether the receiver of this ack is the first party in the connection. This |
23 // is typically used to decide whether the receiver should initiate the | 23 // is typically used to decide whether the receiver should initiate the |
24 // message (or data) pipe (i.e., allocate endpoint IDs, etc.). | 24 // message (or data) pipe (i.e., allocate endpoint IDs, etc.). |
25 bool is_first; | 25 bool is_first; |
26 }; | 26 }; |
27 | 27 |
28 } // namespace system | 28 } // namespace system |
29 } // namespace mojo | 29 } // namespace mojo |
30 | 30 |
31 #endif // MOJO_EDK_SYSTEM_CONNECTION_MANAGER_MESSAGES_H_ | 31 #endif // MOJO_EDK_SYSTEM_CONNECTION_MANAGER_MESSAGES_H_ |
OLD | NEW |