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

Side by Side Diff: mojo/edk/system/connection_manager_messages.h

Issue 2229573002: Change the canonical way to include the C macros.h to <mojo/macros.h>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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 | « mojo/edk/system/BUILD.gn ('k') | mojo/edk/system/core.cc » ('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 #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_
OLDNEW
« no previous file with comments | « mojo/edk/system/BUILD.gn ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698