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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 | 45 |
46 #ifndef MESSAGES_INTERNAL_FILE | 46 #ifndef MESSAGES_INTERNAL_FILE |
47 #error This file should only be included by X_messages.h, which needs to define
MESSAGES_INTERNAL_FILE first. | 47 #error This file should only be included by X_messages.h, which needs to define
MESSAGES_INTERNAL_FILE first. |
48 #endif | 48 #endif |
49 | 49 |
50 // Trick scons and xcode into seeing the possible real dependencies since they | 50 // Trick scons and xcode into seeing the possible real dependencies since they |
51 // don't understand #include MESSAGES_INTERNAL_FILE. See http://crbug.com/7828 | 51 // don't understand #include MESSAGES_INTERNAL_FILE. See http://crbug.com/7828 |
52 #if 0 | 52 #if 0 |
53 #include "ipc/ipc_sync_message_unittest.h" | 53 #include "ipc/ipc_sync_message_unittest.h" |
| 54 #include "chrome/common/automation_messages_internal.h" |
| 55 #include "chrome/common/devtools_messages_internal.h" |
54 #include "chrome/common/plugin_messages_internal.h" | 56 #include "chrome/common/plugin_messages_internal.h" |
55 #include "chrome/common/render_messages_internal.h" | 57 #include "chrome/common/render_messages_internal.h" |
56 #include "chrome/common/devtools_messages_internal.h" | |
57 #include "chrome/test/automation/automation_messages_internal.h" | |
58 #include "chrome/common/worker_messages_internal.h" | 58 #include "chrome/common/worker_messages_internal.h" |
59 #endif | 59 #endif |
60 | 60 |
61 #ifndef IPC_MESSAGE_MACROS_INCLUDE_BLOCK | 61 #ifndef IPC_MESSAGE_MACROS_INCLUDE_BLOCK |
62 #define IPC_MESSAGE_MACROS_INCLUDE_BLOCK | 62 #define IPC_MESSAGE_MACROS_INCLUDE_BLOCK |
63 | 63 |
64 // Multi-pass include of X_messages_internal.h. Preprocessor magic allows | 64 // Multi-pass include of X_messages_internal.h. Preprocessor magic allows |
65 // us to use 1 header to define the enums and classes for our render messages. | 65 // us to use 1 header to define the enums and classes for our render messages. |
66 #define IPC_MESSAGE_MACROS_ENUMS | 66 #define IPC_MESSAGE_MACROS_ENUMS |
67 #include MESSAGES_INTERNAL_FILE | 67 #include MESSAGES_INTERNAL_FILE |
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1298 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in
, type5_in>, \ | 1298 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in
, type5_in>, \ |
1299 Tuple3<type1_out&, type2_out&, type3_out&> > { \ | 1299 Tuple3<type1_out&, type2_out&, type3_out&> > { \ |
1300 public: \ | 1300 public: \ |
1301 enum { ID = msg_class##__ID }; \ | 1301 enum { ID = msg_class##__ID }; \ |
1302 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const t
ype3_in& arg3, const type4_in& arg4, const type4_in& arg5, type1_out* arg6, type
2_out* arg7, type3_out* arg8); \ | 1302 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const t
ype3_in& arg3, const type4_in& arg4, const type4_in& arg5, type1_out* arg6, type
2_out* arg7, type3_out* arg8); \ |
1303 ~msg_class(); \ | 1303 ~msg_class(); \ |
1304 static void Log(const Message* msg, std::string* l); \ | 1304 static void Log(const Message* msg, std::string* l); \ |
1305 }; | 1305 }; |
1306 | 1306 |
1307 #endif // #if defined() | 1307 #endif // #if defined() |
OLD | NEW |