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 // Defines the IPC messages used by the automation interface. | 5 // Defines the IPC messages used by the automation interface. |
6 | 6 |
7 // This header is meant to be included in multiple passes, hence no traditional | 7 // This header is meant to be included in multiple passes, hence no traditional |
8 // header guard. | 8 // header guard. |
9 // See ipc_message_macros.h for explanation of the macros and passes. | 9 // See ipc_message_macros.h for explanation of the macros and passes. |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 // which expect a response). The routing_id shouldn't be used for | 24 // which expect a response). The routing_id shouldn't be used for |
25 // any other purpose in these message types. | 25 // any other purpose in these message types. |
26 | 26 |
27 // NOTE: All the new IPC messages should go at the end (before IPC_END_MESSAGES) | 27 // NOTE: All the new IPC messages should go at the end (before IPC_END_MESSAGES) |
28 // The IPC message IDs are part of an enum and hence the value | 28 // The IPC message IDs are part of an enum and hence the value |
29 // assumed to be constant across the builds may change. | 29 // assumed to be constant across the builds may change. |
30 // The messages AutomationMsg_WindowHWND* in particular should not change | 30 // The messages AutomationMsg_WindowHWND* in particular should not change |
31 // since the PageCyclerReferenceTest depends on the correctness of the | 31 // since the PageCyclerReferenceTest depends on the correctness of the |
32 // message IDs across the builds. | 32 // message IDs across the builds. |
33 | 33 |
34 IPC_BEGIN_MESSAGES(Automation) | 34 // By using a start value of 0 for automation messages, we keep backward |
| 35 // compatability with old builds. |
| 36 IPC_BEGIN_MESSAGES(Automation, 0) |
35 | 37 |
36 // This message is fired when the AutomationProvider is up and running | 38 // This message is fired when the AutomationProvider is up and running |
37 // in the app (the app is not fully up at this point). | 39 // in the app (the app is not fully up at this point). |
38 IPC_MESSAGE_ROUTED0(AutomationMsg_Hello) | 40 IPC_MESSAGE_ROUTED0(AutomationMsg_Hello) |
39 | 41 |
40 // This message is fired when the initial tab(s) are finished loading. | 42 // This message is fired when the initial tab(s) are finished loading. |
41 IPC_MESSAGE_ROUTED0(AutomationMsg_InitialLoadsComplete) | 43 IPC_MESSAGE_ROUTED0(AutomationMsg_InitialLoadsComplete) |
42 | 44 |
43 // This message notifies the AutomationProvider to append a new tab the window | 45 // This message notifies the AutomationProvider to append a new tab the window |
44 // with the given handle. The response contains the index of the new tab, or | 46 // with the given handle. The response contains the index of the new tab, or |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 int) // status | 199 int) // status |
198 | 200 |
199 // Requests that the automation provider ask history for the most recent | 201 // Requests that the automation provider ask history for the most recent |
200 // chain of redirects coming from the given URL. The response must be | 202 // chain of redirects coming from the given URL. The response must be |
201 // decoded by the caller manually; it contains an integer indicating the | 203 // decoded by the caller manually; it contains an integer indicating the |
202 // number of URLs, followed by that many wstrings indicating a chain of | 204 // number of URLs, followed by that many wstrings indicating a chain of |
203 // redirects. On failure, the count will be negative. | 205 // redirects. On failure, the count will be negative. |
204 IPC_MESSAGE_ROUTED2(AutomationMsg_RedirectsFromRequest, | 206 IPC_MESSAGE_ROUTED2(AutomationMsg_RedirectsFromRequest, |
205 int, // tab handle | 207 int, // tab handle |
206 GURL) // source URL | 208 GURL) // source URL |
207 IPC_MESSAGE_ROUTED2(AutomationMsg_RedirectsFromResponse, | 209 IPC_MESSAGE_EMPTY(AutomationMsg_RedirectsFromResponse) |
208 bool /* succeeded */, | |
209 std::vector<GURL> /* redirects */) | |
210 | 210 |
211 // This message asks the AutomationProvider whether a tab is waiting for | 211 // This message asks the AutomationProvider whether a tab is waiting for |
212 // login info. | 212 // login info. |
213 IPC_MESSAGE_ROUTED1(AutomationMsg_NeedsAuthRequest, | 213 IPC_MESSAGE_ROUTED1(AutomationMsg_NeedsAuthRequest, |
214 int) // tab handle | 214 int) // tab handle |
215 IPC_MESSAGE_ROUTED1(AutomationMsg_NeedsAuthResponse, | 215 IPC_MESSAGE_ROUTED1(AutomationMsg_NeedsAuthResponse, |
216 bool) // status | 216 bool) // status |
217 | 217 |
218 // This message requests the AutomationProvider to apply a certain | 218 // This message requests the AutomationProvider to apply a certain |
219 // accelerator. It is completely asynchronous with the resulting accelerator | 219 // accelerator. It is completely asynchronous with the resulting accelerator |
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 std::wstring /* overrided encoding name */) | 887 std::wstring /* overrided encoding name */) |
888 IPC_MESSAGE_ROUTED1(AutomationMsg_OverrideEncodingResponse, | 888 IPC_MESSAGE_ROUTED1(AutomationMsg_OverrideEncodingResponse, |
889 bool /* success */) | 889 bool /* success */) |
890 | 890 |
891 // Used to disable the dialog box that prompts the user for a path when | 891 // Used to disable the dialog box that prompts the user for a path when |
892 // saving a web page. | 892 // saving a web page. |
893 IPC_MESSAGE_ROUTED1(AutomationMsg_SavePackageShouldPromptUser, | 893 IPC_MESSAGE_ROUTED1(AutomationMsg_SavePackageShouldPromptUser, |
894 bool /* false if we want to not show the dialog */) | 894 bool /* false if we want to not show the dialog */) |
895 | 895 |
896 IPC_END_MESSAGES(Automation) | 896 IPC_END_MESSAGES(Automation) |
OLD | NEW |