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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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\ | 47 #error This file should only be included by X_messages.h, which needs to define\ |
48 MESSAGES_INTERNAL_FILE first. | 48 MESSAGES_INTERNAL_FILE first. |
49 #endif | 49 #endif |
50 | 50 |
51 // Trick scons and xcode into seeing the possible real dependencies since they | 51 // Trick scons and xcode into seeing the possible real dependencies since they |
52 // don't understand #include MESSAGES_INTERNAL_FILE. See http://crbug.com/7828 | 52 // don't understand #include MESSAGES_INTERNAL_FILE. See http://crbug.com/7828 |
53 #if 0 | 53 #if 0 |
54 #include "ipc/ipc_sync_message_unittest.h" | 54 #include "ipc/ipc_sync_message_unittest.h" |
| 55 #include "chrome/common/automation_messages_internal.h" |
| 56 #include "chrome/common/devtools_messages_internal.h" |
55 #include "chrome/common/plugin_messages_internal.h" | 57 #include "chrome/common/plugin_messages_internal.h" |
56 #include "chrome/common/render_messages_internal.h" | 58 #include "chrome/common/render_messages_internal.h" |
57 #include "chrome/common/devtools_messages_internal.h" | |
58 #include "chrome/test/automation/automation_messages_internal.h" | |
59 #include "chrome/common/worker_messages_internal.h" | 59 #include "chrome/common/worker_messages_internal.h" |
60 #endif | 60 #endif |
61 | 61 |
62 #ifndef IPC_MESSAGE_MACROS_INCLUDE_BLOCK | 62 #ifndef IPC_MESSAGE_MACROS_INCLUDE_BLOCK |
63 #define IPC_MESSAGE_MACROS_INCLUDE_BLOCK | 63 #define IPC_MESSAGE_MACROS_INCLUDE_BLOCK |
64 | 64 |
65 // Multi-pass include of X_messages_internal.h. Preprocessor magic allows | 65 // Multi-pass include of X_messages_internal.h. Preprocessor magic allows |
66 // us to use 1 header to define the enums and classes for our render messages. | 66 // us to use 1 header to define the enums and classes for our render messages. |
67 #define IPC_MESSAGE_MACROS_ENUMS | 67 #define IPC_MESSAGE_MACROS_ENUMS |
68 #include MESSAGES_INTERNAL_FILE | 68 #include MESSAGES_INTERNAL_FILE |
(...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in
, type5_in>, \ | 1322 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in
, type5_in>, \ |
1323 Tuple3<type1_out&, type2_out&, type3_out&> > { \ | 1323 Tuple3<type1_out&, type2_out&, type3_out&> > { \ |
1324 public: \ | 1324 public: \ |
1325 enum { ID = msg_class##__ID }; \ | 1325 enum { ID = msg_class##__ID }; \ |
1326 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); \ | 1326 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); \ |
1327 ~msg_class(); \ | 1327 ~msg_class(); \ |
1328 static void Log(const Message* msg, std::string* l); \ | 1328 static void Log(const Message* msg, std::string* l); \ |
1329 }; | 1329 }; |
1330 | 1330 |
1331 #endif // #if defined() | 1331 #endif // #if defined() |
OLD | NEW |