Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: content/common/view_messages.h

Issue 10014013: Add a hang monitor for Pepper plugins (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/content_renderer.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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 */)
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698