OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef MOJO_SPY_COMMON_H_ |
| 6 #define MOJO_SPY_COMMON_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 |
| 10 namespace mojo { |
| 11 |
| 12 // Mojo message header structures. These are based off the Mojo spec. |
| 13 |
| 14 enum { |
| 15 kMessageExpectsResponse = 1 << 0, |
| 16 kMessageIsResponse = 1 << 1 |
| 17 }; |
| 18 |
| 19 struct MojoCommonHeader { |
| 20 uint32_t num_bytes; |
| 21 uint32_t num_fields; |
| 22 }; |
| 23 |
| 24 struct MojoMessageHeader : public MojoCommonHeader { |
| 25 uint32_t name; |
| 26 uint32_t flags; |
| 27 uint64_t request_id; |
| 28 }; |
| 29 |
| 30 struct MojoMessageData { |
| 31 MojoMessageHeader header; |
| 32 }; |
| 33 |
| 34 } // namespace mojo |
| 35 |
| 36 #endif // MOJO_SPY_COMMON_H_ |
| 37 |
OLD | NEW |