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

Side by Side Diff: ipc/ipc_message_macros.h

Issue 4200007: Refactor automation messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome_frame no longer depends on tab_contents.h 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 | « ipc/ipc_message_impl_macros.h ('k') | no next file » | 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) 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
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
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()
OLDNEW
« no previous file with comments | « ipc/ipc_message_impl_macros.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698