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

Unified Diff: mojo/edk/system/ports/event.h

Issue 1676803002: [mojo-edk] Minor clean-up in the ports layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/system/ports/BUILD.gn ('k') | mojo/edk/system/ports/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/ports/event.h
diff --git a/mojo/edk/system/ports/event.h b/mojo/edk/system/ports/event.h
index aec9f6b43b98f26c1f425b4235edc1ceb30d4374..62bcdc2d06f0034be84710f7dd44950fb0cc64e7 100644
--- a/mojo/edk/system/ports/event.h
+++ b/mojo/edk/system/ports/event.h
@@ -9,15 +9,15 @@
#include "mojo/edk/system/ports/message.h"
#include "mojo/edk/system/ports/name.h"
-#include "mojo/public/c/system/macros.h"
namespace mojo {
namespace edk {
namespace ports {
-// TODO: Add static assertions of alignment.
+struct PortDescriptor {
+ PortDescriptor();
+ ~PortDescriptor();
-struct MOJO_ALIGNAS(8) PortDescriptor {
NodeName peer_node_name;
PortName peer_port_name;
NodeName referring_node_name;
@@ -26,9 +26,12 @@ struct MOJO_ALIGNAS(8) PortDescriptor {
uint64_t next_sequence_num_to_receive;
uint64_t last_sequence_num_to_receive;
bool peer_closed;
+ uint8_t padding0;
+ uint16_t padding1;
+ uint32_t padding2;
};
-enum struct EventType : uint32_t {
+enum EventType : uint32_t {
kUser,
kPortAccepted,
kObserveProxy,
« no previous file with comments | « mojo/edk/system/ports/BUILD.gn ('k') | mojo/edk/system/ports/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698