| Index: mojo/spy/common.h
|
| diff --git a/mojo/spy/common.h b/mojo/spy/common.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a8bc83c9e29da791461350990b3d2e3d71fbdeaa
|
| --- /dev/null
|
| +++ b/mojo/spy/common.h
|
| @@ -0,0 +1,37 @@
|
| +// Copyright 2014 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.
|
| +
|
| +#ifndef MOJO_SPY_COMMON_H_
|
| +#define MOJO_SPY_COMMON_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +// Mojo message header structures. These are based off the Mojo spec.
|
| +
|
| +enum {
|
| + kMessageExpectsResponse = 1 << 0,
|
| + kMessageIsResponse = 1 << 1
|
| +};
|
| +
|
| +struct MojoCommonHeader {
|
| + uint32_t num_bytes;
|
| + uint32_t num_fields;
|
| +};
|
| +
|
| +struct MojoMessageHeader : public MojoCommonHeader {
|
| + uint32_t name;
|
| + uint32_t flags;
|
| + uint64_t request_id;
|
| +};
|
| +
|
| +struct MojoMessageData {
|
| + MojoMessageHeader header;
|
| +};
|
| +
|
| +} // namespace mojo
|
| +
|
| +#endif // MOJO_SPY_COMMON_H_
|
| +
|
|
|