OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // The file ipc_messsage_macros.h defines the classes for individual | 5 // The file ipc_messsage_macros.h defines the classes for individual |
6 // messages. This file works similarly, except that it defines the | 6 // messages. This file works similarly, except that it defines the |
7 // implementations of the constructors and the logging methods. (These only | 7 // implementations of the constructors and the logging methods. (These only |
8 // have to be generated once). It is meant to be included in a XXX_messages.cc | 8 // have to be generated once). It is meant to be included in a XXX_messages.cc |
9 // file. | 9 // file. |
10 | 10 |
11 #ifndef IPC_IPC_MESSAGE_IMPL_MACROS_H_ | 11 #ifndef IPC_IPC_MESSAGE_IMPL_MACROS_H_ |
12 #define IPC_IPC_MESSAGE_IMPL_MACROS_H_ | 12 #define IPC_IPC_MESSAGE_IMPL_MACROS_H_ |
13 | 13 |
14 #include "ipc/ipc_message_utils.h" | 14 #include "ipc/ipc_message_utils.h" |
15 #include "ipc/ipc_message_utils_impl.h" | 15 #include "ipc/ipc_message_utils_impl.h" |
16 | 16 |
17 #ifndef MESSAGES_INTERNAL_IMPL_FILE | 17 #ifndef MESSAGES_INTERNAL_IMPL_FILE |
18 #error This file should only be included by X_messages.cc, which needs to define
MESSAGES_INTERNAL_IMPL_FILE first. | 18 #error This file should only be included by X_messages.cc, which needs to define
MESSAGES_INTERNAL_IMPL_FILE first. |
19 #endif | 19 #endif |
20 | 20 |
21 // Trick scons and xcode into seeing the possible real dependencies since they | 21 // Trick xcode into seeing the possible real dependencies since they |
22 // don't understand #include MESSAGES_INTERNAL_FILE. See http://crbug.com/7828 | 22 // don't understand #include MESSAGES_INTERNAL_FILE. See http://crbug.com/7828 |
23 #if 0 | 23 #if 0 |
24 #include "ipc/ipc_sync_message_unittest.h" | 24 #include "ipc/ipc_sync_message_unittest.h" |
25 #include "chrome/common/automation_messages_internal.h" | 25 #include "chrome/common/automation_messages_internal.h" |
26 #include "chrome/common/devtools_messages_internal.h" | 26 #include "chrome/common/devtools_messages_internal.h" |
27 #include "chrome/common/gpu_messages_internal.h" | 27 #include "chrome/common/gpu_messages_internal.h" |
28 #include "chrome/common/nacl_messages_internal.h" | 28 #include "chrome/common/nacl_messages_internal.h" |
29 #include "chrome/common/plugin_messages_internal.h" | 29 #include "chrome/common/plugin_messages_internal.h" |
30 #include "chrome/common/render_messages_internal.h" | 30 #include "chrome/common/render_messages_internal.h" |
31 #include "chrome/common/service_messages_internal.h" | 31 #include "chrome/common/service_messages_internal.h" |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 #define IPC_MESSAGE_MACROS_INCLUDE_BLOCK | 701 #define IPC_MESSAGE_MACROS_INCLUDE_BLOCK |
702 | 702 |
703 // Redefine MESSAGES_INTERNAL_FILE just for the header check in | 703 // Redefine MESSAGES_INTERNAL_FILE just for the header check in |
704 // ipc_messages_macros.h that happens before it breaks on the header guard. | 704 // ipc_messages_macros.h that happens before it breaks on the header guard. |
705 #define MESSAGES_INTERNAL_FILE MESSAGES_INTERNAL_IMPL_FILE | 705 #define MESSAGES_INTERNAL_FILE MESSAGES_INTERNAL_IMPL_FILE |
706 | 706 |
707 // Include our INTERNAL file first to get the normal expansion. | 707 // Include our INTERNAL file first to get the normal expansion. |
708 #include MESSAGES_INTERNAL_IMPL_FILE | 708 #include MESSAGES_INTERNAL_IMPL_FILE |
709 | 709 |
710 #endif // IPC_IPC_MESSAGE_IMPL_MACROS_H_ | 710 #endif // IPC_IPC_MESSAGE_IMPL_MACROS_H_ |
OLD | NEW |