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 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_MESSAGES_H__ | 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_MESSAGES_H__ |
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_MESSAGES_H__ | 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_MESSAGES_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "chrome/common/ipc_message.h" | |
12 #include "chrome/common/ipc_message_utils.h" | 11 #include "chrome/common/ipc_message_utils.h" |
13 | 12 |
14 enum AutomationMsg_NavigationResponseValues { | 13 enum AutomationMsg_NavigationResponseValues { |
15 AUTOMATION_MSG_NAVIGATION_ERROR = 0, | 14 AUTOMATION_MSG_NAVIGATION_ERROR = 0, |
16 AUTOMATION_MSG_NAVIGATION_SUCCESS, | 15 AUTOMATION_MSG_NAVIGATION_SUCCESS, |
17 AUTOMATION_MSG_NAVIGATION_AUTH_NEEDED, | 16 AUTOMATION_MSG_NAVIGATION_AUTH_NEEDED, |
18 }; | 17 }; |
19 | 18 |
20 // Two-pass include of render_messages_internal. Preprocessor magic allows | 19 #define MESSAGES_INTERNAL_FILE \ |
21 // us to use 1 header to define the enums and classes for our render messages. | 20 "chrome/test/automation/automation_messages_internal.h" |
22 #define IPC_MESSAGE_MACROS_ENUMS | 21 #include "chrome/common/ipc_message_macros.h" |
23 #include "chrome/test/automation/automation_messages_internal.h" | |
24 | |
25 #ifdef IPC_MESSAGE_MACROS_LOG_ENABLED | |
26 # undef IPC_MESSAGE_MACROS_LOG | |
27 # define IPC_MESSAGE_MACROS_CLASSES | |
28 #include "chrome/test/automation/automation_messages_internal.h" | |
29 | |
30 # undef IPC_MESSAGE_MACROS_CLASSES | |
31 # define IPC_MESSAGE_MACROS_LOG | |
32 #include "chrome/test/automation/automation_messages_internal.h" | |
33 #else | |
34 // No debug strings requested, just define the classes | |
35 # define IPC_MESSAGE_MACROS_CLASSES | |
36 #include "chrome/test/automation/automation_messages_internal.h" | |
37 #endif | |
38 | |
39 | 22 |
40 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_MESSAGES_H__ | 23 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_MESSAGES_H__ |
41 | 24 |
OLD | NEW |