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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 int /* request_id */, | 629 int /* request_id */, |
630 std::string /* data */) | 630 std::string /* data */) |
631 | 631 |
632 IPC_MESSAGE_ROUTED2(AutomationMsg_RequestEnd, | 632 IPC_MESSAGE_ROUTED2(AutomationMsg_RequestEnd, |
633 int /* request_id */, | 633 int /* request_id */, |
634 net::URLRequestStatus /* status */) | 634 net::URLRequestStatus /* status */) |
635 | 635 |
636 IPC_MESSAGE_CONTROL1(AutomationMsg_PrintAsync, | 636 IPC_MESSAGE_CONTROL1(AutomationMsg_PrintAsync, |
637 int /* tab_handle */) | 637 int /* tab_handle */) |
638 | 638 |
639 IPC_MESSAGE_ROUTED2(AutomationMsg_SetCookieAsync, | 639 IPC_MESSAGE_ROUTED2(AutomationMsg_DEPRECATED_SetCookieAsync, |
640 GURL /* url */, | 640 GURL /* url */, |
641 std::string /* cookie */) | 641 std::string /* cookie */) |
642 | 642 |
643 IPC_MESSAGE_CONTROL1(AutomationMsg_SelectAll, | 643 IPC_MESSAGE_CONTROL1(AutomationMsg_SelectAll, |
644 int /* tab handle */) | 644 int /* tab handle */) |
645 | 645 |
646 IPC_MESSAGE_CONTROL1(AutomationMsg_Cut, | 646 IPC_MESSAGE_CONTROL1(AutomationMsg_Cut, |
647 int /* tab handle */) | 647 int /* tab handle */) |
648 | 648 |
649 IPC_MESSAGE_CONTROL1(AutomationMsg_Copy, | 649 IPC_MESSAGE_CONTROL1(AutomationMsg_Copy, |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 int /* tab handle */) | 782 int /* tab handle */) |
783 | 783 |
784 #if defined(OS_WIN) | 784 #if defined(OS_WIN) |
785 // An incoming message from an automation host to Chrome. Signals that | 785 // An incoming message from an automation host to Chrome. Signals that |
786 // the browser containing |tab_handle| has moved. | 786 // the browser containing |tab_handle| has moved. |
787 IPC_MESSAGE_CONTROL1(AutomationMsg_BrowserMove, | 787 IPC_MESSAGE_CONTROL1(AutomationMsg_BrowserMove, |
788 int /* tab handle */) | 788 int /* tab handle */) |
789 #endif | 789 #endif |
790 | 790 |
791 // Used to get cookies for the given URL. | 791 // Used to get cookies for the given URL. |
792 IPC_MESSAGE_ROUTED2(AutomationMsg_GetCookiesFromHost, | 792 IPC_MESSAGE_ROUTED2(AutomationMsg_DEPRECATED_GetCookiesFromHost, |
793 GURL /* url */, | 793 GURL /* url */, |
794 int /* opaque_cookie_id */) | 794 int /* opaque_cookie_id */) |
795 | 795 |
796 IPC_MESSAGE_CONTROL5(AutomationMsg_GetCookiesHostResponse, | 796 IPC_MESSAGE_CONTROL5(AutomationMsg_DEPRECATED_GetCookiesHostResponse, |
797 int /* tab_handle */, | 797 int /* tab_handle */, |
798 bool /* success */, | 798 bool /* success */, |
799 GURL /* url */, | 799 GURL /* url */, |
800 std::string /* cookies */, | 800 std::string /* cookies */, |
801 int /* opaque_cookie_id */) | 801 int /* opaque_cookie_id */) |
802 | 802 |
803 // Return the bookmarks encoded as a JSON string. | 803 // Return the bookmarks encoded as a JSON string. |
804 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_GetBookmarksAsJSON, | 804 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_GetBookmarksAsJSON, |
805 int /* browser_handle */, | 805 int /* browser_handle */, |
806 std::string /* bookmarks as a JSON string */, | 806 std::string /* bookmarks as a JSON string */, |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetMachPortCount, | 942 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetMachPortCount, |
943 int /* number of Mach ports */) | 943 int /* number of Mach ports */) |
944 | 944 |
945 // Generic pyauto pattern to help avoid future addition of | 945 // Generic pyauto pattern to help avoid future addition of |
946 // automation messages. | 946 // automation messages. |
947 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequest, | 947 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequest, |
948 int /* window_index */, | 948 int /* window_index */, |
949 std::string /* JSON request */, | 949 std::string /* JSON request */, |
950 std::string /* JSON response */, | 950 std::string /* JSON response */, |
951 bool /* success */) | 951 bool /* success */) |
OLD | NEW |