| 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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 // This message informs the browser process to remove the history entries | 850 // This message informs the browser process to remove the history entries |
| 851 // for the specified types across all time ranges. See | 851 // for the specified types across all time ranges. See |
| 852 // browsing_data_remover.h for a list of REMOVE_* types supported in the | 852 // browsing_data_remover.h for a list of REMOVE_* types supported in the |
| 853 // remove_mask parameter. | 853 // remove_mask parameter. |
| 854 IPC_MESSAGE_CONTROL1(AutomationMsg_RemoveBrowsingData, | 854 IPC_MESSAGE_CONTROL1(AutomationMsg_RemoveBrowsingData, |
| 855 int) | 855 int) |
| 856 | 856 |
| 857 // Generic pyauto pattern to help avoid future addition of | 857 // Generic pyauto pattern to help avoid future addition of |
| 858 // automation messages. | 858 // automation messages. |
| 859 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequest, | 859 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequest, |
| 860 int /* window_index */, | 860 int /* browser_handle */, |
| 861 std::string /* JSON request */, | 861 std::string /* JSON request */, |
| 862 std::string /* JSON response */, | 862 std::string /* JSON response */, |
| 863 bool /* success */) | 863 bool /* success */) |
| 864 | 864 |
| 865 // Resets to the default theme. | 865 // Resets to the default theme. |
| 866 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_ResetToDefaultTheme) | 866 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_ResetToDefaultTheme) |
| 867 | 867 |
| 868 // This message requests the external tab identified by the tab handle | 868 // This message requests the external tab identified by the tab handle |
| 869 // passed in be closed. | 869 // passed in be closed. |
| 870 // Request: | 870 // Request: |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 // code can be removed if that limitation is fixed. | 943 // code can be removed if that limitation is fixed. |
| 944 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_GetTracingOutput, | 944 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_GetTracingOutput, |
| 945 std::string /* trace_chunk */, | 945 std::string /* trace_chunk */, |
| 946 bool /* success */) | 946 bool /* success */) |
| 947 | 947 |
| 948 // Used on Mac OS X to read the number of active Mach ports used in the browser | 948 // Used on Mac OS X to read the number of active Mach ports used in the browser |
| 949 // process. | 949 // process. |
| 950 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetMachPortCount, | 950 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetMachPortCount, |
| 951 int /* number of Mach ports */) | 951 int /* number of Mach ports */) |
| 952 | 952 |
| 953 // Generic pyauto pattern to help avoid future addition of | |
| 954 // automation messages. | |
| 955 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequestWithBrowserHandle, | |
| 956 int /* browser_handle */, | |
| 957 std::string /* JSON request */, | |
| 958 std::string /* JSON response */, | |
| 959 bool /* success */) | |
| 960 | |
| 961 // Browser -> renderer messages. | 953 // Browser -> renderer messages. |
| 962 | 954 |
| 963 // Requests a snapshot. | 955 // Requests a snapshot. |
| 964 IPC_MESSAGE_ROUTED0(AutomationMsg_SnapshotEntirePage) | 956 IPC_MESSAGE_ROUTED0(AutomationMsg_SnapshotEntirePage) |
| 965 | 957 |
| 966 #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) | 958 #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) |
| 967 // Requests to dump a heap profile. | 959 // Requests to dump a heap profile. |
| 968 IPC_MESSAGE_ROUTED1(AutomationMsg_HeapProfilerDump, | 960 IPC_MESSAGE_ROUTED1(AutomationMsg_HeapProfilerDump, |
| 969 std::string /* reason */) | 961 std::string /* reason */) |
| 970 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) | 962 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1001 | 993 |
| 1002 // Sent when the automation mouse event has been processed. | 994 // Sent when the automation mouse event has been processed. |
| 1003 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, | 995 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, |
| 1004 bool /* success */, | 996 bool /* success */, |
| 1005 std::string /* error message */) | 997 std::string /* error message */) |
| 1006 | 998 |
| 1007 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. | 999 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. |
| 1008 // This is the section for renderer -> browser automation messages. If it is | 1000 // 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 | 1001 // an automation <-> browser message, put it above this section. The "no line |
| 1010 // number change" applies only to the automation <-> browser messages. | 1002 // number change" applies only to the automation <-> browser messages. |
| OLD | NEW |