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" | |
viettrungluu
2014/06/30 19:16:54
You should probably only include <stdint.h> instea
ananta
2014/07/03 00:04:40
Done.
| |
9 | |
10 namespace mojo { | |
11 | |
12 #pragma pack(push, 1) | |
13 | |
viettrungluu
2014/06/30 19:16:54
nit: extra blank line
ananta
2014/07/03 00:04:40
Done.
| |
14 | |
15 // Mojo message header structures. These are based off the Mojo spec. | |
16 | |
17 enum { | |
18 kMessageExpectsResponse = 1 << 0, | |
19 kMessageIsResponse = 1 << 1 | |
20 }; | |
21 | |
22 struct MojoCommonHeader { | |
23 uint32_t num_bytes; | |
24 uint32_t num_fields; | |
25 }; | |
26 | |
27 struct MojoMessageHeader : public MojoCommonHeader { | |
28 uint32_t name; | |
29 uint32_t flags; | |
30 uint64_t request_id; | |
31 }; | |
32 | |
33 struct MojoMessageData { | |
34 MojoMessageHeader header; | |
35 }; | |
36 | |
37 #pragma pack(pop) | |
38 | |
39 } // namespace mojo | |
40 | |
41 #endif // MOJO_SPY_COMMON_H_ | |
42 | |
viettrungluu
2014/06/30 19:16:54
nit: extra blank line
ananta
2014/07/03 00:04:40
Done.
| |
OLD | NEW |