OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
6 // header guard. | 6 // header guard. |
7 // | 7 // |
8 // In your XXX_messages_internal.h file, before defining any messages do: | 8 // In your XXX_messages_internal.h file, before defining any messages do: |
9 // #define IPC_MESSAGE_START XMsgStart | 9 // #define IPC_MESSAGE_START XMsgStart |
10 // XMstStart value is from the IPCMessageStart enum in ipc_message_utils.h, and | 10 // XMstStart value is from the IPCMessageStart enum in ipc_message_utils.h, and |
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1024 ipc_message__.type()) | 1024 ipc_message__.type()) |
1025 | 1025 |
1026 #define IPC_END_MESSAGE_MAP() \ | 1026 #define IPC_END_MESSAGE_MAP() \ |
1027 DCHECK(msg_is_ok__); \ | 1027 DCHECK(msg_is_ok__); \ |
1028 } \ | 1028 } \ |
1029 } | 1029 } |
1030 | 1030 |
1031 #define IPC_END_MESSAGE_MAP_EX() \ | 1031 #define IPC_END_MESSAGE_MAP_EX() \ |
1032 } \ | 1032 } \ |
1033 } | 1033 } |
| 1034 |
| 1035 // This corresponds to an enum value from IPCMessageStart. |
| 1036 #define IPC_MESSAGE_CLASS(message) \ |
| 1037 message.type() >> 16 |
OLD | NEW |