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

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

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/event.h ('k') | mojo/edk/system/ports/node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/ports/event.cc
diff --git a/mojo/edk/system/ports/event.cc b/mojo/edk/system/ports/event.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5d79a3007d6055e5d4ee538f85a7796e46b06f93
--- /dev/null
+++ b/mojo/edk/system/ports/event.cc
@@ -0,0 +1,36 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "mojo/edk/system/ports/event.h"
+
+namespace mojo {
+namespace edk {
+namespace ports {
+
+namespace {
+
+const size_t kEventMessageAlignment = 8;
+
+} // namespace
+
+static_assert(sizeof(PortDescriptor) % kEventMessageAlignment == 0,
+ "Invalid PordDescriptor size");
+static_assert(sizeof(EventHeader) % kEventMessageAlignment == 0,
+ "Invalid EventHeader size");
+static_assert(sizeof(UserEventData) % kEventMessageAlignment == 0,
+ "Invalid UserEventData size");
+static_assert(sizeof(ObserveProxyEventData) % kEventMessageAlignment == 0,
+ "Invalid ObserveProxyEventData size");
+static_assert(sizeof(ObserveProxyAckEventData) % kEventMessageAlignment == 0,
+ "Invalid ObserveProxyAckEventData size");
+static_assert(sizeof(ObserveClosureEventData) % kEventMessageAlignment == 0,
+ "Invalid ObserveClosureEventData size");
+
+PortDescriptor::PortDescriptor() {}
+
+PortDescriptor::~PortDescriptor() {}
+
+} // namespace ports
+} // namespace edk
+} // namespace mojo
« no previous file with comments | « mojo/edk/system/ports/event.h ('k') | mojo/edk/system/ports/node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698