1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_MESSAGE_INTERNAL_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_MESSAGE_INTERNAL_H_
8 #include "mojo/public/cpp/bindings/lib/bindings_internal.h"
16 kMessageExpectsResponse
= 1 << 0,
17 kMessageIsResponse
= 1 << 1
20 struct MessageHeader
: internal::StructHeader
{
24 MOJO_COMPILE_ASSERT(sizeof(MessageHeader
) == 16, bad_sizeof_MessageHeader
);
26 struct MessageHeaderWithRequestID
: MessageHeader
{
29 MOJO_COMPILE_ASSERT(sizeof(MessageHeaderWithRequestID
) == 24,
30 bad_sizeof_MessageHeaderWithRequestID
);
36 MOJO_COMPILE_ASSERT(sizeof(MessageData
) == sizeof(MessageHeader
),
37 bad_sizeof_MessageData
);
41 } // namespace internal
44 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_MESSAGE_INTERNAL_H_