| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 IPC_MESSAGE_ROUTED1(AutomationMsg_HandleUnused, int) | 176 IPC_MESSAGE_ROUTED1(AutomationMsg_HandleUnused, int) |
| 177 | 177 |
| 178 // This message tells the AutomationProvider to provide the given | 178 // This message tells the AutomationProvider to provide the given |
| 179 // authentication data to the specified tab, in response to an HTTP/FTP | 179 // authentication data to the specified tab, in response to an HTTP/FTP |
| 180 // authentication challenge. | 180 // authentication challenge. |
| 181 // The response status will be negative on error. | 181 // The response status will be negative on error. |
| 182 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_SetAuth, | 182 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_SetAuth, |
| 183 int, // tab handle | 183 int, // tab handle |
| 184 std::wstring, // username | 184 std::wstring, // username |
| 185 std::wstring, // password | 185 std::wstring, // password |
| 186 int) // status | 186 int) // status |
| 187 | 187 |
| 188 // This message tells the AutomationProvider to cancel the login in the | 188 // This message tells the AutomationProvider to cancel the login in the |
| 189 // specified tab. | 189 // specified tab. |
| 190 // The response status will be negative on error. | 190 // The response status will be negative on error. |
| 191 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_CancelAuth, | 191 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_CancelAuth, |
| 192 int, // tab handle | 192 int, // tab handle |
| 193 int) // status | 193 int) // status |
| 194 | 194 |
| 195 // Requests that the automation provider ask history for the most recent | 195 // Requests that the automation provider ask history for the most recent |
| 196 // chain of redirects coming from the given URL. The response must be | 196 // chain of redirects coming from the given URL. The response must be |
| 197 // decoded by the caller manually; it contains an integer indicating the | 197 // decoded by the caller manually; it contains an integer indicating the |
| 198 // number of URLs, followed by that many wstrings indicating a chain of | 198 // number of URLs, followed by that many wstrings indicating a chain of |
| 199 // redirects. On failure, the count will be negative. | 199 // redirects. On failure, the count will be negative. |
| 200 IPC_SYNC_MESSAGE_ROUTED2_2(AutomationMsg_RedirectsFrom, | 200 IPC_SYNC_MESSAGE_ROUTED2_2(AutomationMsg_RedirectsFrom, |
| 201 int, // tab handle | 201 int, // tab handle |
| 202 GURL, // source URL | 202 GURL, // source URL |
| 203 bool /* succeeded */, | 203 bool /* succeeded */, |
| 204 std::vector<GURL> /* redirects */) | 204 std::vector<GURL> /* redirects */) |
| 205 | 205 |
| 206 // This message asks the AutomationProvider whether a tab is waiting for | 206 // This message asks the AutomationProvider whether a tab is waiting for |
| 207 // login info. | 207 // login info. |
| 208 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_NeedsAuth, | 208 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_NeedsAuth, |
| 209 int, // tab handle | 209 int, // tab handle |
| 210 bool) // status | 210 bool) // status |
| 211 | 211 |
| 212 // This message requests the AutomationProvider to apply a certain | 212 // This message requests the AutomationProvider to apply a certain |
| 213 // accelerator. It is completely asynchronous with the resulting accelerator | 213 // accelerator. It is completely asynchronous with the resulting accelerator |
| 214 // action. | 214 // action. |
| 215 IPC_SYNC_MESSAGE_ROUTED2_0(AutomationMsg_ApplyAccelerator, | 215 IPC_SYNC_MESSAGE_ROUTED2_0(AutomationMsg_ApplyAccelerator, |
| 216 int, // window handle | 216 int, // window handle |
| 217 int) // accelerator id like (IDC_BACK, | 217 int) // accelerator id like (IDC_BACK, |
| 218 // IDC_FORWARD, etc) | 218 // IDC_FORWARD, etc) |
| 219 // The list can be found at | 219 // The list can be found at |
| 220 // chrome/app/chrome_dll_resource.h | 220 // chrome/app/chrome_dll_resource.h |
| 221 | 221 |
| 222 // This message requests that the AutomationProvider executes a JavaScript, | 222 // This message requests that the AutomationProvider executes a JavaScript, |
| 223 // which is sent embedded in a 'javascript:' URL. | 223 // which is sent embedded in a 'javascript:' URL. |
| 224 // The javascript is executed in context of child frame whose xpath | 224 // The javascript is executed in context of child frame whose xpath |
| 225 // is passed as parameter (context_frame). The execution results in | 225 // is passed as parameter (context_frame). The execution results in |
| 226 // a serialized JSON string response. | 226 // a serialized JSON string response. |
| 227 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_DomOperation, | 227 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_DomOperation, |
| 228 int, // tab handle | 228 int, // tab handle |
| 229 std::wstring, // context_frame | 229 std::wstring, // context_frame |
| 230 std::wstring, // the javascript to be executed | 230 std::wstring, // the javascript to be executed |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 AutomationMsg_NavigationResponseValues) | 444 AutomationMsg_NavigationResponseValues) |
| 445 | 445 |
| 446 // This message is an outgoing message from Chrome to an external host. | 446 // This message is an outgoing message from Chrome to an external host. |
| 447 // It is a notification that the NavigationState was changed | 447 // It is a notification that the NavigationState was changed |
| 448 // Request: | 448 // Request: |
| 449 // -int: The flags specifying what changed | 449 // -int: The flags specifying what changed |
| 450 // (see TabContents::InvalidateTypes) | 450 // (see TabContents::InvalidateTypes) |
| 451 // Response: | 451 // Response: |
| 452 // None expected | 452 // None expected |
| 453 IPC_MESSAGE_ROUTED2(AutomationMsg_NavigationStateChanged, | 453 IPC_MESSAGE_ROUTED2(AutomationMsg_NavigationStateChanged, |
| 454 int, // tab handle | 454 int, // tab handle |
| 455 int) // TabContents::InvalidateTypes | 455 int) // TabContents::InvalidateTypes |
| 456 | 456 |
| 457 // This message is an outgoing message from Chrome to an external host. | 457 // This message is an outgoing message from Chrome to an external host. |
| 458 // It is a notification that the target URL has changed (the target URL | 458 // It is a notification that the target URL has changed (the target URL |
| 459 // is the URL of the link that the user is hovering on) | 459 // is the URL of the link that the user is hovering on) |
| 460 // Request: | 460 // Request: |
| 461 // -int: The tab handle | 461 // -int: The tab handle |
| 462 // -std::wstring: The new target URL | 462 // -std::wstring: The new target URL |
| 463 // Response: | 463 // Response: |
| 464 // None expected | 464 // None expected |
| 465 IPC_MESSAGE_ROUTED2(AutomationMsg_UpdateTargetUrl, int, std::wstring) | 465 IPC_MESSAGE_ROUTED2(AutomationMsg_UpdateTargetUrl, int, std::wstring) |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 int /* browser_handle */, | 932 int /* browser_handle */, |
| 933 bool /* is_visible */) | 933 bool /* is_visible */) |
| 934 | 934 |
| 935 // This message requests the number of blocked popups in a certain tab with | 935 // This message requests the number of blocked popups in a certain tab with |
| 936 // the given handle. The return value is the number of blocked popups, or -1 | 936 // the given handle. The return value is the number of blocked popups, or -1 |
| 937 // if this request failed. | 937 // if this request failed. |
| 938 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_BlockedPopupCount, | 938 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_BlockedPopupCount, |
| 939 int /* tab_handle */, | 939 int /* tab_handle */, |
| 940 int /* blocked_popup_count */) | 940 int /* blocked_popup_count */) |
| 941 | 941 |
| 942 |
| 943 // This message retrieves the locale of the browser process. On success |
| 944 // |chrome_locale| will contain the locale as reported by ICU. On failure |
| 945 // |chrome_locale| is the empty string. |
| 946 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_GetBrowserLocale, |
| 947 string16 /* chrome_locale */) |
| 942 IPC_END_MESSAGES(Automation) | 948 IPC_END_MESSAGES(Automation) |
| OLD | NEW |