Chromium Code Reviews| 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 the first pass, IPC_MESSAGE_MACROS_ENUMS should be defined, which will | 8 // In the first pass, IPC_MESSAGE_MACROS_ENUMS should be defined, which will |
| 9 // create enums for each of the messages defined with the IPC_MESSAGE_* macros. | 9 // create enums for each of the messages defined with the IPC_MESSAGE_* macros. |
| 10 // | 10 // |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 // ViewHostMsg_SyncMessageName::WriteReplyParams(reply_msg, out1, out2); | 39 // ViewHostMsg_SyncMessageName::WriteReplyParams(reply_msg, out1, out2); |
| 40 // Send(reply_msg); | 40 // Send(reply_msg); |
| 41 | 41 |
| 42 #include "chrome/common/ipc_message_utils.h" | 42 #include "chrome/common/ipc_message_utils.h" |
| 43 | 43 |
| 44 | 44 |
| 45 #ifndef MESSAGES_INTERNAL_FILE | 45 #ifndef MESSAGES_INTERNAL_FILE |
| 46 #error This file should only be included by X_messages.h, which needs to define MESSAGES_INTERNAL_FILE first. | 46 #error This file should only be included by X_messages.h, which needs to define MESSAGES_INTERNAL_FILE first. |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 // Trick scons and xcode into seeing the possible real dependencies since they | |
| 50 // don't understand #include MESSAGES_INTERNAL_FILE. See BUG 7828. | |
| 51 #if 0 | |
| 52 #include "chrome/common/ipc_sync_message_unittest.h" | |
|
jam
2009/03/02 21:43:52
why is this needed?
| |
| 53 #include "chrome/common/plugin_messages_internal.h" | |
| 54 #include "chrome/common/render_messages_internal.h" | |
| 55 #include "chrome/renderer/dev_tools_messages_internal.h" | |
| 56 #include "chrome/test/automation/automation_messages_internal.h" | |
| 57 #endif | |
| 58 | |
| 49 #ifndef IPC_MESSAGE_MACROS_INCLUDE_BLOCK | 59 #ifndef IPC_MESSAGE_MACROS_INCLUDE_BLOCK |
| 50 #define IPC_MESSAGE_MACROS_INCLUDE_BLOCK | 60 #define IPC_MESSAGE_MACROS_INCLUDE_BLOCK |
| 51 | 61 |
| 52 // Multi-pass include of X_messages_internal.h. Preprocessor magic allows | 62 // Multi-pass include of X_messages_internal.h. Preprocessor magic allows |
| 53 // us to use 1 header to define the enums and classes for our render messages. | 63 // us to use 1 header to define the enums and classes for our render messages. |
| 54 #define IPC_MESSAGE_MACROS_ENUMS | 64 #define IPC_MESSAGE_MACROS_ENUMS |
| 55 #include MESSAGES_INTERNAL_FILE | 65 #include MESSAGES_INTERNAL_FILE |
| 56 | 66 |
| 57 #define IPC_MESSAGE_MACROS_CLASSES | 67 #define IPC_MESSAGE_MACROS_CLASSES |
| 58 #include MESSAGES_INTERNAL_FILE | 68 #include MESSAGES_INTERNAL_FILE |
| (...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1132 public: \ | 1142 public: \ |
| 1133 enum { ID = msg_class##__ID }; \ | 1143 enum { ID = msg_class##__ID }; \ |
| 1134 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, type1_out* arg5, type2_out* arg6) \ | 1144 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, type1_out* arg5, type2_out* arg6) \ |
| 1135 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, type4_in>, \ | 1145 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, type4_in>, \ |
| 1136 Tuple2<type1_out&, type2_out&> >(routing_id, ID, \ | 1146 Tuple2<type1_out&, type2_out&> >(routing_id, ID, \ |
| 1137 MakeTuple(arg1, arg2, arg3, arg4), MakeRefTuple(*arg5, *arg6)) {} \ | 1147 MakeTuple(arg1, arg2, arg3, arg4), MakeRefTuple(*arg5, *arg6)) {} \ |
| 1138 }; | 1148 }; |
| 1139 | 1149 |
| 1140 #endif // #if defined() | 1150 #endif // #if defined() |
| 1141 | 1151 |
| OLD | NEW |