| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous | 7 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous |
| 8 // messages), or one that's been assigned by the proxy (for calls | 8 // messages), or one that's been assigned by the proxy (for calls |
| 9 // which expect a response). The routing_id shouldn't be used for | 9 // which expect a response). The routing_id shouldn't be used for |
| 10 // any other purpose in these message types. | 10 // any other purpose in these message types. |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 GURL, | 386 GURL, |
| 387 GURL, | 387 GURL, |
| 388 int) | 388 int) |
| 389 | 389 |
| 390 // This message requests the provider to wait until the specified tab has | 390 // This message requests the provider to wait until the specified tab has |
| 391 // finished restoring after session restore. | 391 // finished restoring after session restore. |
| 392 // Request: | 392 // Request: |
| 393 // - int: handle of the tab | 393 // - int: handle of the tab |
| 394 // Response: | 394 // Response: |
| 395 // - bool: whether the operation was successful. | 395 // - bool: whether the operation was successful. |
| 396 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForTabToBeRestored, | 396 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_WaitForTabToBeRestored, |
| 397 int, bool) | 397 int, bool) |
| 398 | 398 |
| 399 // This message is an outgoing message from Chrome to an external host. | 399 // This message is an outgoing message from Chrome to an external host. |
| 400 // It is a notification that a navigation happened | 400 // It is a notification that a navigation happened |
| 401 // Request: | 401 // Request: |
| 402 // | 402 // |
| 403 // Response: | 403 // Response: |
| 404 // None expected | 404 // None expected |
| 405 IPC_MESSAGE_ROUTED1(AutomationMsg_DidNavigate, | 405 IPC_MESSAGE_ROUTED1(AutomationMsg_DidNavigate, |
| 406 NavigationInfo) | 406 NavigationInfo) |
| 407 | 407 |
| 408 // This message requests the different security states of the page displayed | 408 // This message requests the different security states of the page displayed |
| 409 // in the specified tab. | 409 // in the specified tab. |
| 410 // Request: | 410 // Request: |
| 411 // - int: handle of the tab | 411 // - int: handle of the tab |
| 412 // Response: | 412 // Response: |
| 413 // - bool: whether the operation was successful. | 413 // - bool: whether the operation was successful. |
| 414 // - SecurityStyle: the security style of the tab. | 414 // - SecurityStyle: the security style of the tab. |
| 415 // - net::CertStatus: the status of the server's ssl cert (0 means no errors or | 415 // - net::CertStatus: the status of the server's ssl cert (0 means no errors or |
| 416 // no ssl was used). | 416 // no ssl was used). |
| 417 // - int: the insecure content state, 0 means no insecure contents. | 417 // - int: the insecure content state, 0 means no insecure contents. |
| 418 | 418 |
| 419 IPC_SYNC_MESSAGE_CONTROL1_4(AutomationMsg_GetSecurityState, | 419 IPC_SYNC_MESSAGE_CONTROL1_4(AutomationMsg_DEPRECATED_GetSecurityState, |
| 420 int, | 420 int, |
| 421 bool, | 421 bool, |
| 422 content::SecurityStyle, | 422 content::SecurityStyle, |
| 423 net::CertStatus, | 423 net::CertStatus, |
| 424 int) | 424 int) |
| 425 | 425 |
| 426 // This message requests the page type of the page displayed in the specified | 426 // This message requests the page type of the page displayed in the specified |
| 427 // tab (normal, error or interstitial). | 427 // tab (normal, error or interstitial). |
| 428 // Request: | 428 // Request: |
| 429 // - int: handle of the tab | 429 // - int: handle of the tab |
| 430 // Response: | 430 // Response: |
| 431 // - bool: whether the operation was successful. | 431 // - bool: whether the operation was successful. |
| 432 // - PageType: the type of the page currently displayed. | 432 // - PageType: the type of the page currently displayed. |
| 433 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetPageType, | 433 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_GetPageType, |
| 434 int, | 434 int, |
| 435 bool, | 435 bool, |
| 436 content::PageType) | 436 content::PageType) |
| 437 | 437 |
| 438 // This message simulates the user action on the SSL blocking page showing in | 438 // This message simulates the user action on the SSL blocking page showing in |
| 439 // the specified tab. This message is only effective if an interstitial page | 439 // the specified tab. This message is only effective if an interstitial page |
| 440 // is showing in the tab. | 440 // is showing in the tab. |
| 441 // Request: | 441 // Request: |
| 442 // - int: handle of the tab | 442 // - int: handle of the tab |
| 443 // - bool: whether to proceed or abort the navigation | 443 // - bool: whether to proceed or abort the navigation |
| 444 // Response: | 444 // Response: |
| 445 // - AutomationMsg_NavigationResponseValues: result of the operation. | 445 // - AutomationMsg_NavigationResponseValues: result of the operation. |
| 446 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_ActionOnSSLBlockingPage, | 446 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_ActionOnSSLBlockingPage, |
| 447 int, | 447 int, |
| 448 bool, | 448 bool, |
| 449 AutomationMsg_NavigationResponseValues) | 449 AutomationMsg_NavigationResponseValues) |
| 450 | 450 |
| 451 // Message to request that a browser window is brought to the front and | 451 // Message to request that a browser window is brought to the front and |
| 452 // activated. | 452 // activated. |
| 453 // Request: | 453 // Request: |
| 454 // - int: handle of the browser window. | 454 // - int: handle of the browser window. |
| 455 // Response: | 455 // Response: |
| 456 // - bool: True if the browser is brought to the front. | 456 // - bool: True if the browser is brought to the front. |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 | 1001 |
| 1002 // Sent when the automation mouse event has been processed. | 1002 // Sent when the automation mouse event has been processed. |
| 1003 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, | 1003 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, |
| 1004 bool /* success */, | 1004 bool /* success */, |
| 1005 std::string /* error message */) | 1005 std::string /* error message */) |
| 1006 | 1006 |
| 1007 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. | 1007 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. |
| 1008 // This is the section for renderer -> browser automation messages. If it is | 1008 // This is the section for renderer -> browser automation messages. If it is |
| 1009 // an automation <-> browser message, put it above this section. The "no line | 1009 // an automation <-> browser message, put it above this section. The "no line |
| 1010 // number change" applies only to the automation <-> browser messages. | 1010 // number change" applies only to the automation <-> browser messages. |
| OLD | NEW |