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

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: Fixed indentation 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
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 "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
OLDNEW
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/spy/spy.cc » ('j') | mojo/spy/websocket_server.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698