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

Side by Side Diff: mojo/spy/common.h

Issue 354043003: Add support for logging information about mojo messages retrieved by the mojo debugger (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Presubmit warnings Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/spy/spy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 <stdint.h>
9
10 namespace mojo {
11
12 #pragma pack(push, 1)
13
14 // Mojo message header structures. These are based off the Mojo spec.
15
16 enum {
17 kMessageExpectsResponse = 1 << 0,
18 kMessageIsResponse = 1 << 1
19 };
20
21 struct MojoCommonHeader {
22 uint32_t num_bytes;
23 uint32_t num_fields;
24 };
25
26 struct MojoMessageHeader : public MojoCommonHeader {
27 uint32_t name;
28 uint32_t flags;
29 };
30
31 struct MojoRequestHeader : public MojoMessageHeader {
32 uint64_t request_id;
33 };
34
35 struct MojoMessageData {
36 MojoRequestHeader header;
37 };
38
39 #pragma pack(pop)
40
41 } // namespace mojo
42
43 #endif // MOJO_SPY_COMMON_H_
OLDNEW
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/spy/spy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698