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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 | 1169 |
1170 // Instructs the renderer to save the current page to MHTML. | 1170 // Instructs the renderer to save the current page to MHTML. |
1171 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, | 1171 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, |
1172 int /* job_id */, | 1172 int /* job_id */, |
1173 IPC::PlatformFileForTransit /* file handle */) | 1173 IPC::PlatformFileForTransit /* file handle */) |
1174 | 1174 |
1175 // Temporary message to diagnose an unexpected condition in TabContents. | 1175 // Temporary message to diagnose an unexpected condition in TabContents. |
1176 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, | 1176 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, |
1177 GURL /* data */) | 1177 GURL /* data */) |
1178 | 1178 |
| 1179 // Enable or disable inverting of web content pixels, for users who prefer |
| 1180 // white-on-black. |
| 1181 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, |
| 1182 bool /* invert */) |
1179 | 1183 |
| 1184 // ----------------------------------------------------------------------------- |
1180 // Messages sent from the renderer to the browser. | 1185 // Messages sent from the renderer to the browser. |
1181 | 1186 |
1182 // Sent by the renderer when it is creating a new window. The browser creates | 1187 // Sent by the renderer when it is creating a new window. The browser creates |
1183 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 1188 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
1184 // MSG_ROUTING_NONE, the view couldn't be created. | 1189 // MSG_ROUTING_NONE, the view couldn't be created. |
1185 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, | 1190 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, |
1186 ViewHostMsg_CreateWindow_Params, | 1191 ViewHostMsg_CreateWindow_Params, |
1187 int /* route_id */, | 1192 int /* route_id */, |
1188 int32 /* surface_id */, | 1193 int32 /* surface_id */, |
1189 int64 /* cloned_session_storage_namespace_id */) | 1194 int64 /* cloned_session_storage_namespace_id */) |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1636 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeNumTouchEvents, | 1641 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeNumTouchEvents, |
1637 int /* count */) | 1642 int /* count */) |
1638 | 1643 |
1639 // A message from HTML-based UI. When (trusted) Javascript calls | 1644 // A message from HTML-based UI. When (trusted) Javascript calls |
1640 // send(message, args), this message is sent to the browser. | 1645 // send(message, args), this message is sent to the browser. |
1641 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, | 1646 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, |
1642 GURL /* source_url */, | 1647 GURL /* source_url */, |
1643 std::string /* message */, | 1648 std::string /* message */, |
1644 base::ListValue /* args */) | 1649 base::ListValue /* args */) |
1645 | 1650 |
1646 // A renderer sends this to the browser process when it wants to | 1651 // A renderer sends this to the browser process when it wants to create a ppapi |
1647 // create a ppapi plugin. The browser will create the plugin process if | 1652 // plugin. The browser will create the plugin process if necessary, and will |
1648 // necessary, and will return a handle to the channel on success. | 1653 // return a handle to the channel on success. |
1649 // On error an empty string is returned. | 1654 // |
1650 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, | 1655 // The plugin_child_id is the ChildProcessHost ID assigned in the browser |
| 1656 // process. This ID is valid only in the context of the browser process and is |
| 1657 // used to identify the proper process when the renderer notifies it that the |
| 1658 // plugin is hung. |
| 1659 // |
| 1660 // On error an empty string and null handles are returned. |
| 1661 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_OpenChannelToPepperPlugin, |
1651 FilePath /* path */, | 1662 FilePath /* path */, |
1652 base::ProcessHandle /* plugin_process_handle */, | 1663 base::ProcessHandle /* plugin_process_handle */, |
1653 IPC::ChannelHandle /* handle to channel */) | 1664 IPC::ChannelHandle /* handle to channel */, |
| 1665 int /* plugin_child_id */) |
1654 | 1666 |
1655 // A renderer sends this to the browser process when it wants to | 1667 // A renderer sends this to the browser process when it wants to |
1656 // create a ppapi broker. The browser will create the broker process | 1668 // create a ppapi broker. The browser will create the broker process |
1657 // if necessary, and will return a handle to the channel on success. | 1669 // if necessary, and will return a handle to the channel on success. |
1658 // On error an empty string is returned. | 1670 // On error an empty string is returned. |
1659 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. | 1671 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. |
1660 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, | 1672 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, |
1661 int /* routing_id */, | 1673 int /* routing_id */, |
1662 int /* request_id */, | 1674 int /* request_id */, |
1663 FilePath /* path */) | 1675 FilePath /* path */) |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1986 | 1998 |
1987 // Following message is used to communicate the values received by the | 1999 // Following message is used to communicate the values received by the |
1988 // callback binding the JS to Cpp. | 2000 // callback binding the JS to Cpp. |
1989 // An instance of browser that has an automation host listening to it can | 2001 // An instance of browser that has an automation host listening to it can |
1990 // have a javascript send a native value (string, number, boolean) to the | 2002 // have a javascript send a native value (string, number, boolean) to the |
1991 // listener in Cpp. (DomAutomationController) | 2003 // listener in Cpp. (DomAutomationController) |
1992 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, | 2004 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, |
1993 std::string /* json_string */, | 2005 std::string /* json_string */, |
1994 int /* automation_id */) | 2006 int /* automation_id */) |
1995 | 2007 |
1996 // Enable or disable inverting of web content pixels, for users who prefer | 2008 // Sent to the browser when the renderer detects it is blocked on a pepper |
1997 // white-on-black. | 2009 // plugin message for too long. This is also sent when it becomes unhung |
1998 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, | 2010 // (according to the value of is_hung). The browser can give the user the |
1999 bool /* invert */) | 2011 // option of killing the plugin. |
| 2012 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, |
| 2013 int /* plugin_child_id */, |
| 2014 FilePath /* path */, |
| 2015 bool /* is_hung */) |
OLD | NEW |