Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: ipc/ipc_message_impl_macros.h

Issue 4758001: Part 2 of reapplying r64637. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Window recompile after rebase? Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/test/reliability/page_load_test.cc ('k') | ipc/ipc_message_macros.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 scons and 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/devtools_messages_internal.h" 26 #include "chrome/common/devtools_messages_internal.h"
26 #include "chrome/common/gpu_messages_internal.h" 27 #include "chrome/common/gpu_messages_internal.h"
27 #include "chrome/common/nacl_messages_internal.h" 28 #include "chrome/common/nacl_messages_internal.h"
28 #include "chrome/common/plugin_messages_internal.h" 29 #include "chrome/common/plugin_messages_internal.h"
29 #include "chrome/common/render_messages_internal.h" 30 #include "chrome/common/render_messages_internal.h"
30 #include "chrome/common/service_messages_internal.h" 31 #include "chrome/common/service_messages_internal.h"
31 #include "chrome/common/utility_messages_internal.h" 32 #include "chrome/common/utility_messages_internal.h"
32 #include "chrome/common/worker_messages_internal.h" 33 #include "chrome/common/worker_messages_internal.h"
33 #include "chrome/test/automation/automation_messages_internal.h"
34 #endif 34 #endif
35 35
36 // These are probalby still defined because of ipc_message_macros.h should be 36 // These are probalby still defined because of ipc_message_macros.h should be
37 // included before us for the class/method declarations. 37 // included before us for the class/method declarations.
38 #undef IPC_BEGIN_MESSAGES 38 #undef IPC_BEGIN_MESSAGES
39 #undef IPC_END_MESSAGES 39 #undef IPC_END_MESSAGES
40 #undef IPC_MESSAGE_CONTROL0 40 #undef IPC_MESSAGE_CONTROL0
41 #undef IPC_MESSAGE_CONTROL1 41 #undef IPC_MESSAGE_CONTROL1
42 #undef IPC_MESSAGE_CONTROL2 42 #undef IPC_MESSAGE_CONTROL2
43 #undef IPC_MESSAGE_CONTROL3 43 #undef IPC_MESSAGE_CONTROL3
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 #define IPC_MESSAGE_MACROS_INCLUDE_BLOCK 700 #define IPC_MESSAGE_MACROS_INCLUDE_BLOCK
701 701
702 // Redefine MESSAGES_INTERNAL_FILE just for the header check in 702 // Redefine MESSAGES_INTERNAL_FILE just for the header check in
703 // ipc_messages_macros.h that happens before it breaks on the header guard. 703 // ipc_messages_macros.h that happens before it breaks on the header guard.
704 #define MESSAGES_INTERNAL_FILE MESSAGES_INTERNAL_IMPL_FILE 704 #define MESSAGES_INTERNAL_FILE MESSAGES_INTERNAL_IMPL_FILE
705 705
706 // Include our INTERNAL file first to get the normal expansion. 706 // Include our INTERNAL file first to get the normal expansion.
707 #include MESSAGES_INTERNAL_IMPL_FILE 707 #include MESSAGES_INTERNAL_IMPL_FILE
708 708
709 #endif // IPC_IPC_MESSAGE_IMPL_MACROS_H_ 709 #endif // IPC_IPC_MESSAGE_IMPL_MACROS_H_
OLDNEW
« no previous file with comments | « chrome_frame/test/reliability/page_load_test.cc ('k') | ipc/ipc_message_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698